diff options
author | Lee Johnson <leejohnson@ijoinsolutions.com> | 2016-11-29 15:27:04 -0500 |
---|---|---|
committer | Lee Johnson <leejohnson@ijoinsolutions.com> | 2016-11-29 15:27:04 -0500 |
commit | 2f15340f09a2a9dd12f9a47c009b9743e0d2f2db (patch) | |
tree | bd2ea5a5da08a7147019fa7dd08d184b3128b8e4 /resource_statuscaketest_test.go | |
parent | e7b04dd5bb4a5947d1f4e9049ec90032b62faa5e (diff) | |
parent | 516886070835127727defe348567a0edfa138528 (diff) | |
download | terraform-provider-statuscake-2f15340f09a2a9dd12f9a47c009b9743e0d2f2db.tar.gz terraform-provider-statuscake-2f15340f09a2a9dd12f9a47c009b9743e0d2f2db.tar.zst terraform-provider-statuscake-2f15340f09a2a9dd12f9a47c009b9743e0d2f2db.zip |
Merge remote-tracking branch 'origin/master' into statuscake_adding_contact_group
Diffstat (limited to 'resource_statuscaketest_test.go')
-rw-r--r-- | resource_statuscaketest_test.go | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/resource_statuscaketest_test.go b/resource_statuscaketest_test.go index 4123ac6..236b790 100644 --- a/resource_statuscaketest_test.go +++ b/resource_statuscaketest_test.go | |||
@@ -63,6 +63,7 @@ func TestAccStatusCake_withUpdate(t *testing.T) { | |||
63 | testAccTestCheckExists("statuscake_test.google", &test), | 63 | testAccTestCheckExists("statuscake_test.google", &test), |
64 | resource.TestCheckResourceAttr("statuscake_test.google", "check_rate", "500"), | 64 | resource.TestCheckResourceAttr("statuscake_test.google", "check_rate", "500"), |
65 | resource.TestCheckResourceAttr("statuscake_test.google", "paused", "true"), | 65 | resource.TestCheckResourceAttr("statuscake_test.google", "paused", "true"), |
66 | resource.TestCheckResourceAttr("statuscake_test.google", "contact_id", "23456"), | ||
66 | ), | 67 | ), |
67 | }, | 68 | }, |
68 | }, | 69 | }, |
@@ -162,20 +163,22 @@ func testAccTestCheckDestroy(test *statuscake.Test) resource.TestCheckFunc { | |||
162 | 163 | ||
163 | const testAccTestConfig_basic = ` | 164 | const testAccTestConfig_basic = ` |
164 | resource "statuscake_test" "google" { | 165 | resource "statuscake_test" "google" { |
165 | website_name = "google.com" | 166 | website_name = "google.com" |
166 | website_url = "www.google.com" | 167 | website_url = "www.google.com" |
167 | test_type = "HTTP" | 168 | test_type = "HTTP" |
168 | check_rate = 300 | 169 | check_rate = 300 |
170 | contact_id = 12345 | ||
169 | } | 171 | } |
170 | ` | 172 | ` |
171 | 173 | ||
172 | const testAccTestConfig_update = ` | 174 | const testAccTestConfig_update = ` |
173 | resource "statuscake_test" "google" { | 175 | resource "statuscake_test" "google" { |
174 | website_name = "google.com" | 176 | website_name = "google.com" |
175 | website_url = "www.google.com" | 177 | website_url = "www.google.com" |
176 | test_type = "HTTP" | 178 | test_type = "HTTP" |
177 | check_rate = 500 | 179 | check_rate = 500 |
178 | paused = true | 180 | paused = true |
181 | contact_id = 23456 | ||
179 | } | 182 | } |
180 | ` | 183 | ` |
181 | 184 | ||