aboutsummaryrefslogtreecommitdiffhomepage
path: root/statuscake/resource_statuscaketest_test.go
diff options
context:
space:
mode:
authorMat Schaffer <mat@schaffer.me>2018-02-01 16:14:33 +0900
committerMat Schaffer <mat@schaffer.me>2018-02-01 16:14:33 +0900
commit89027b6ac2e02ed5097e2aed6e2a5e0b0476d5f9 (patch)
tree6b9d9e38dd070e24868cb13f8586019aea7fae02 /statuscake/resource_statuscaketest_test.go
parentd01e3cca165df6d7d4a9d2a6cf30ed5a7bed9a4c (diff)
downloadterraform-provider-statuscake-89027b6ac2e02ed5097e2aed6e2a5e0b0476d5f9.tar.gz
terraform-provider-statuscake-89027b6ac2e02ed5097e2aed6e2a5e0b0476d5f9.tar.zst
terraform-provider-statuscake-89027b6ac2e02ed5097e2aed6e2a5e0b0476d5f9.zip
Switch node locations to a set and consider empty string to be empty set
Note that we also don't check the individual locations anymore. The key numbers will be randomized and not testing content seems to be the method employed by the AWS provider as well https://github.com/terraform-providers/terraform-provider-aws/blob/81bba6b1f567aed561c6a6a30916504ee0886c68/aws/resource_aws_autoscaling_group_test.go#L404
Diffstat (limited to 'statuscake/resource_statuscaketest_test.go')
-rw-r--r--statuscake/resource_statuscaketest_test.go3
1 files changed, 0 insertions, 3 deletions
diff --git a/statuscake/resource_statuscaketest_test.go b/statuscake/resource_statuscaketest_test.go
index 62d6bf9..555cff1 100644
--- a/statuscake/resource_statuscaketest_test.go
+++ b/statuscake/resource_statuscaketest_test.go
@@ -79,9 +79,6 @@ func TestAccStatusCake_withUpdate(t *testing.T) {
79 resource.TestCheckResourceAttr("statuscake_test.google", "status", "Up"), 79 resource.TestCheckResourceAttr("statuscake_test.google", "status", "Up"),
80 resource.TestCheckResourceAttr("statuscake_test.google", "uptime", "0"), 80 resource.TestCheckResourceAttr("statuscake_test.google", "uptime", "0"),
81 resource.TestCheckResourceAttr("statuscake_test.google", "node_locations.#", "3"), 81 resource.TestCheckResourceAttr("statuscake_test.google", "node_locations.#", "3"),
82 resource.TestCheckResourceAttr("statuscake_test.google", "node_locations.0", "string16045"),
83 resource.TestCheckResourceAttr("statuscake_test.google", "node_locations.1", "string19741"),
84 resource.TestCheckResourceAttr("statuscake_test.google", "node_locations.2", "string12122"),
85 resource.TestCheckResourceAttr("statuscake_test.google", "ping_url", "string8410"), 82 resource.TestCheckResourceAttr("statuscake_test.google", "ping_url", "string8410"),
86 resource.TestCheckResourceAttr("statuscake_test.google", "basic_user", "string27052"), 83 resource.TestCheckResourceAttr("statuscake_test.google", "basic_user", "string27052"),
87 resource.TestCheckResourceAttr("statuscake_test.google", "basic_pass", "string5659"), 84 resource.TestCheckResourceAttr("statuscake_test.google", "basic_pass", "string5659"),