aboutsummaryrefslogtreecommitdiffhomepage
path: root/statuscake/resource_statuscaketest_test.go
diff options
context:
space:
mode:
authorIvan Schwarz <ivos.schwarz@gmail.com>2019-06-14 15:55:36 +0200
committerIvan Schwarz <ivos.schwarz@gmail.com>2019-06-14 15:55:36 +0200
commit31ca64bb28cb66f0b41661afe66b6811254ef09e (patch)
treec11962f795e99be533cebfda5023b38e2e2ef659 /statuscake/resource_statuscaketest_test.go
parent24c95871c559e4d0a284f4c245d6e7afaeb5b9a7 (diff)
downloadterraform-provider-statuscake-31ca64bb28cb66f0b41661afe66b6811254ef09e.tar.gz
terraform-provider-statuscake-31ca64bb28cb66f0b41661afe66b6811254ef09e.tar.zst
terraform-provider-statuscake-31ca64bb28cb66f0b41661afe66b6811254ef09e.zip
Add enable_ssl_alert feature for uptime tests
Diffstat (limited to 'statuscake/resource_statuscaketest_test.go')
-rw-r--r--statuscake/resource_statuscaketest_test.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/statuscake/resource_statuscaketest_test.go b/statuscake/resource_statuscaketest_test.go
index bd609d8..71362f7 100644
--- a/statuscake/resource_statuscaketest_test.go
+++ b/statuscake/resource_statuscaketest_test.go
@@ -114,6 +114,7 @@ func TestAccStatusCake_withUpdate(t *testing.T) {
114 resource.TestCheckResourceAttr("statuscake_test.google", "use_jar", "1"), 114 resource.TestCheckResourceAttr("statuscake_test.google", "use_jar", "1"),
115 resource.TestCheckResourceAttr("statuscake_test.google", "post_raw", "string32096"), 115 resource.TestCheckResourceAttr("statuscake_test.google", "post_raw", "string32096"),
116 resource.TestCheckResourceAttr("statuscake_test.google", "final_endpoint", "string10781"), 116 resource.TestCheckResourceAttr("statuscake_test.google", "final_endpoint", "string10781"),
117 resource.TestCheckResourceAttr("statuscake_test.google", "enable_ssl_alert", "false"),
117 resource.TestCheckResourceAttr("statuscake_test.google", "follow_redirect", "true"), 118 resource.TestCheckResourceAttr("statuscake_test.google", "follow_redirect", "true"),
118 ), 119 ),
119 }, 120 },
@@ -213,6 +214,8 @@ func testAccTestCheckAttributes(rn string, test *statuscake.Test) resource.TestC
213 err = check(key, value, test.PostRaw) 214 err = check(key, value, test.PostRaw)
214 case "final_endpoint": 215 case "final_endpoint":
215 err = check(key, value, test.FinalEndpoint) 216 err = check(key, value, test.FinalEndpoint)
217 case "enable_ssl_alert":
218 err = check(key, value, strconv.FormatBool(test.EnableSSLAlert))
216 case "follow_redirect": 219 case "follow_redirect":
217 err = check(key, value, strconv.FormatBool(test.FollowRedirect)) 220 err = check(key, value, strconv.FormatBool(test.FollowRedirect))
218 } 221 }
@@ -297,6 +300,7 @@ resource "statuscake_test" "google" {
297 use_jar = 1 300 use_jar = 1
298 post_raw = "string32096" 301 post_raw = "string32096"
299 final_endpoint = "string10781" 302 final_endpoint = "string10781"
303 enable_ssl_alert = false
300 follow_redirect = true 304 follow_redirect = true
301} 305}
302` 306`