aboutsummaryrefslogtreecommitdiffhomepage
path: root/statuscake/resource_statuscaketest_test.go
diff options
context:
space:
mode:
authorMat Schaffer <mat@schaffer.me>2018-02-01 16:07:31 +0900
committerMat Schaffer <mat@schaffer.me>2018-02-01 16:07:31 +0900
commitaa4f9726b4fd3cc624fe5784b033840a6c92c84c (patch)
treee426709f68b0cae06577856f4e6e03226d1acc94 /statuscake/resource_statuscaketest_test.go
parentc9458806c73b69e6af47eddd83391197b6d2a641 (diff)
downloadterraform-provider-statuscake-aa4f9726b4fd3cc624fe5784b033840a6c92c84c.tar.gz
terraform-provider-statuscake-aa4f9726b4fd3cc624fe5784b033840a6c92c84c.tar.zst
terraform-provider-statuscake-aa4f9726b4fd3cc624fe5784b033840a6c92c84c.zip
Parameterize the contact ID used for acceptance testing
This allowed me to run acceptance tests on my own account.
Diffstat (limited to 'statuscake/resource_statuscaketest_test.go')
-rw-r--r--statuscake/resource_statuscaketest_test.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/statuscake/resource_statuscaketest_test.go b/statuscake/resource_statuscaketest_test.go
index b727e92..ea69756 100644
--- a/statuscake/resource_statuscaketest_test.go
+++ b/statuscake/resource_statuscaketest_test.go
@@ -19,7 +19,7 @@ func TestAccStatusCake_basic(t *testing.T) {
19 CheckDestroy: testAccTestCheckDestroy(&test), 19 CheckDestroy: testAccTestCheckDestroy(&test),
20 Steps: []resource.TestStep{ 20 Steps: []resource.TestStep{
21 { 21 {
22 Config: testAccTestConfig_basic, 22 Config: fmt.Sprintf(testAccTestConfig_basic, testContactGroupId),
23 Check: resource.ComposeTestCheckFunc( 23 Check: resource.ComposeTestCheckFunc(
24 testAccTestCheckExists("statuscake_test.google", &test), 24 testAccTestCheckExists("statuscake_test.google", &test),
25 testAccTestCheckAttributes("statuscake_test.google", &test), 25 testAccTestCheckAttributes("statuscake_test.google", &test),
@@ -38,7 +38,7 @@ func TestAccStatusCake_tcp(t *testing.T) {
38 CheckDestroy: testAccTestCheckDestroy(&test), 38 CheckDestroy: testAccTestCheckDestroy(&test),
39 Steps: []resource.TestStep{ 39 Steps: []resource.TestStep{
40 { 40 {
41 Config: testAccTestConfig_tcp, 41 Config: fmt.Sprintf(testAccTestConfig_tcp, testContactGroupId),
42 Check: resource.ComposeTestCheckFunc( 42 Check: resource.ComposeTestCheckFunc(
43 testAccTestCheckExists("statuscake_test.google", &test), 43 testAccTestCheckExists("statuscake_test.google", &test),
44 testAccTestCheckAttributes("statuscake_test.google", &test), 44 testAccTestCheckAttributes("statuscake_test.google", &test),
@@ -57,7 +57,7 @@ func TestAccStatusCake_withUpdate(t *testing.T) {
57 CheckDestroy: testAccTestCheckDestroy(&test), 57 CheckDestroy: testAccTestCheckDestroy(&test),
58 Steps: []resource.TestStep{ 58 Steps: []resource.TestStep{
59 { 59 {
60 Config: testAccTestConfig_basic, 60 Config: fmt.Sprintf(testAccTestConfig_basic, testContactGroupId),
61 Check: resource.ComposeTestCheckFunc( 61 Check: resource.ComposeTestCheckFunc(
62 testAccTestCheckExists("statuscake_test.google", &test), 62 testAccTestCheckExists("statuscake_test.google", &test),
63 ), 63 ),
@@ -240,7 +240,7 @@ resource "statuscake_test" "google" {
240 test_type = "HTTP" 240 test_type = "HTTP"
241 check_rate = 300 241 check_rate = 300
242 timeout = 10 242 timeout = 10
243 contact_id = 43402 243 contact_id = %d
244 confirmations = 1 244 confirmations = 1
245 trigger_rate = 10 245 trigger_rate = 10
246} 246}
@@ -284,7 +284,7 @@ resource "statuscake_test" "google" {
284 test_type = "TCP" 284 test_type = "TCP"
285 check_rate = 300 285 check_rate = 300
286 timeout = 10 286 timeout = 10
287 contact_id = 43402 287 contact_id = %d
288 confirmations = 1 288 confirmations = 1
289 port = 80 289 port = 80
290} 290}