aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJuan Carlos Alonso <me@jcalonso.com>2019-06-03 11:04:37 +0100
committerGitHub <noreply@github.com>2019-06-03 11:04:37 +0100
commit1ff1c28784e83f3b9d441b73baa8c6293133b673 (patch)
treecfbf065f78e205230c63659a556574a4414755ed
parent107c1cdb09c575aa2f61d97f48d8587eb6bada4c (diff)
downloadterraform-provider-statuscake-1ff1c28784e83f3b9d441b73baa8c6293133b673.tar.gz
terraform-provider-statuscake-1ff1c28784e83f3b9d441b73baa8c6293133b673.tar.zst
terraform-provider-statuscake-1ff1c28784e83f3b9d441b73baa8c6293133b673.zip
Fix acceptance tests
This was making the acceptance test to fail since it was using the hardcoded contact group in the code which doesn't exist any other account except for the initial developer. https://github.com/ndench/terraform-provider-statuscake/commit/4efdab4181cd2bfd243600def27f70f0580942a3#diff-74acd2515ee5ecd44424d7a31439989eR221 This change now explicitly prompts the user to include the contact group
-rw-r--r--statuscake/provider_test.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/statuscake/provider_test.go b/statuscake/provider_test.go
index 83045d0..b1da050 100644
--- a/statuscake/provider_test.go
+++ b/statuscake/provider_test.go
@@ -35,4 +35,7 @@ func testAccPreCheck(t *testing.T) {
35 if v := os.Getenv("STATUSCAKE_APIKEY"); v == "" { 35 if v := os.Getenv("STATUSCAKE_APIKEY"); v == "" {
36 t.Fatal("STATUSCAKE_APIKEY must be set for acceptance tests") 36 t.Fatal("STATUSCAKE_APIKEY must be set for acceptance tests")
37 } 37 }
38 if v := os.Getenv("STATUSCAKE_TEST_CONTACT_GROUP_ID"); v == "" {
39 t.Fatal("STATUSCAKE_TEST_CONTACT_GROUP_ID must be set for acceptance tests")
40 }
38} 41}