diff options
Diffstat (limited to 'resource_statuscaketest_test.go')
-rw-r--r-- | resource_statuscaketest_test.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/resource_statuscaketest_test.go b/resource_statuscaketest_test.go index d38dc1c..f07fcc5 100644 --- a/resource_statuscaketest_test.go +++ b/resource_statuscaketest_test.go | |||
@@ -73,6 +73,7 @@ func TestAccStatusCake_withUpdate(t *testing.T) { | |||
73 | resource.TestCheckResourceAttr("statuscake_test.google", "timeout", "40"), | 73 | resource.TestCheckResourceAttr("statuscake_test.google", "timeout", "40"), |
74 | resource.TestCheckResourceAttr("statuscake_test.google", "contact_id", "0"), | 74 | resource.TestCheckResourceAttr("statuscake_test.google", "contact_id", "0"), |
75 | resource.TestCheckResourceAttr("statuscake_test.google", "confirmations", "0"), | 75 | resource.TestCheckResourceAttr("statuscake_test.google", "confirmations", "0"), |
76 | resource.TestCheckResourceAttr("statuscake_test.google", "trigger_rate", "20"), | ||
76 | ), | 77 | ), |
77 | }, | 78 | }, |
78 | }, | 79 | }, |
@@ -139,6 +140,8 @@ func testAccTestCheckAttributes(rn string, test *statuscake.Test) resource.TestC | |||
139 | err = check(key, value, strconv.Itoa(test.ContactID)) | 140 | err = check(key, value, strconv.Itoa(test.ContactID)) |
140 | case "confirmations": | 141 | case "confirmations": |
141 | err = check(key, value, strconv.Itoa(test.Confirmation)) | 142 | err = check(key, value, strconv.Itoa(test.Confirmation)) |
143 | case "trigger_rate": | ||
144 | err = check(key, value, strconv.Itoa(test.TriggerRate)) | ||
142 | } | 145 | } |
143 | 146 | ||
144 | if err != nil { | 147 | if err != nil { |
@@ -170,6 +173,7 @@ resource "statuscake_test" "google" { | |||
170 | timeout = 10 | 173 | timeout = 10 |
171 | contact_id = 43402 | 174 | contact_id = 43402 |
172 | confirmations = 1 | 175 | confirmations = 1 |
176 | trigger_rate = 10 | ||
173 | } | 177 | } |
174 | ` | 178 | ` |
175 | 179 | ||
@@ -180,6 +184,7 @@ resource "statuscake_test" "google" { | |||
180 | test_type = "HTTP" | 184 | test_type = "HTTP" |
181 | check_rate = 500 | 185 | check_rate = 500 |
182 | paused = true | 186 | paused = true |
187 | trigger_rate = 20 | ||
183 | } | 188 | } |
184 | ` | 189 | ` |
185 | 190 | ||