fix bool vs Compatibool ref used in flattenBackends (#12538)
* fix bool vs Compatobool value used in flattendBackends * remove log line * update test case
This commit is contained in:
parent
f895302630
commit
c18ad6ed25
|
@ -1922,7 +1922,7 @@ func flattenBackends(backendList []*gofastly.Backend) []map[string]interface{} {
|
|||
nb := map[string]interface{}{
|
||||
"name": b.Name,
|
||||
"address": b.Address,
|
||||
"auto_loadbalance": gofastly.CBool(b.AutoLoadbalance),
|
||||
"auto_loadbalance": b.AutoLoadbalance,
|
||||
"between_bytes_timeout": int(b.BetweenBytesTimeout),
|
||||
"connect_timeout": int(b.ConnectTimeout),
|
||||
"error_threshold": int(b.ErrorThreshold),
|
||||
|
@ -1930,7 +1930,7 @@ func flattenBackends(backendList []*gofastly.Backend) []map[string]interface{} {
|
|||
"max_conn": int(b.MaxConn),
|
||||
"port": int(b.Port),
|
||||
"shield": b.Shield,
|
||||
"ssl_check_cert": gofastly.CBool(b.SSLCheckCert),
|
||||
"ssl_check_cert": b.SSLCheckCert,
|
||||
"ssl_hostname": b.SSLHostname,
|
||||
"ssl_cert_hostname": b.SSLCertHostname,
|
||||
"ssl_sni_hostname": b.SSLSNIHostname,
|
||||
|
|
|
@ -84,14 +84,14 @@ func TestResourceFastlyFlattenBackend(t *testing.T) {
|
|||
"name": "test.notexample.com",
|
||||
"address": "www.notexample.com",
|
||||
"port": 80,
|
||||
"auto_loadbalance": gofastly.CBool(true),
|
||||
"auto_loadbalance": true,
|
||||
"between_bytes_timeout": 10000,
|
||||
"connect_timeout": 1000,
|
||||
"error_threshold": 0,
|
||||
"first_byte_timeout": 15000,
|
||||
"max_conn": 200,
|
||||
"request_condition": "",
|
||||
"ssl_check_cert": gofastly.CBool(true),
|
||||
"ssl_check_cert": true,
|
||||
"ssl_hostname": "",
|
||||
"ssl_cert_hostname": "",
|
||||
"ssl_sni_hostname": "",
|
||||
|
|
Loading…
Reference in New Issue