aboutsummaryrefslogtreecommitdiffhomepage
path: root/resource_statuscaketest_test.go
diff options
context:
space:
mode:
authorSam Crang <sam.crang@gmail.com>2017-01-13 11:35:15 +0000
committerPaul Stack <public@paulstack.co.uk>2017-01-13 11:35:15 +0000
commitb581540543290cbcd9b0e07ef93fec8b1d24b5c2 (patch)
tree5eabbd479541c2278ea1be507bdbfa98b6e96822 /resource_statuscaketest_test.go
parentc07010769685fd6127e977d9ea7e891773fe75a0 (diff)
downloadterraform-provider-statuscake-b581540543290cbcd9b0e07ef93fec8b1d24b5c2.tar.gz
terraform-provider-statuscake-b581540543290cbcd9b0e07ef93fec8b1d24b5c2.tar.zst
terraform-provider-statuscake-b581540543290cbcd9b0e07ef93fec8b1d24b5c2.zip
Add support for StatusCake confirmation servers (#11179)
* Add support for StatusCake confirmation servers * Add documentation for new StatusCake confirmations argument
Diffstat (limited to 'resource_statuscaketest_test.go')
-rw-r--r--resource_statuscaketest_test.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/resource_statuscaketest_test.go b/resource_statuscaketest_test.go
index de30254..ac3cc92 100644
--- a/resource_statuscaketest_test.go
+++ b/resource_statuscaketest_test.go
@@ -52,6 +52,7 @@ func TestAccStatusCake_withUpdate(t *testing.T) {
52 resource.TestCheckResourceAttr("statuscake_test.google", "check_rate", "500"), 52 resource.TestCheckResourceAttr("statuscake_test.google", "check_rate", "500"),
53 resource.TestCheckResourceAttr("statuscake_test.google", "paused", "true"), 53 resource.TestCheckResourceAttr("statuscake_test.google", "paused", "true"),
54 resource.TestCheckResourceAttr("statuscake_test.google", "contact_id", "0"), 54 resource.TestCheckResourceAttr("statuscake_test.google", "contact_id", "0"),
55 resource.TestCheckResourceAttr("statuscake_test.google", "confirmations", "0"),
55 ), 56 ),
56 }, 57 },
57 }, 58 },
@@ -116,6 +117,8 @@ func testAccTestCheckAttributes(rn string, test *statuscake.Test) resource.TestC
116 err = check(key, value, strconv.Itoa(test.Timeout)) 117 err = check(key, value, strconv.Itoa(test.Timeout))
117 case "contact_id": 118 case "contact_id":
118 err = check(key, value, strconv.Itoa(test.ContactID)) 119 err = check(key, value, strconv.Itoa(test.ContactID))
120 case "confirmations":
121 err = check(key, value, strconv.Itoa(test.Confirmation))
119 } 122 }
120 123
121 if err != nil { 124 if err != nil {
@@ -145,6 +148,7 @@ resource "statuscake_test" "google" {
145 test_type = "HTTP" 148 test_type = "HTTP"
146 check_rate = 300 149 check_rate = 300
147 contact_id = 12345 150 contact_id = 12345
151 confirmations = 1
148} 152}
149` 153`
150 154