]> git.immae.eu Git - github/fretlink/terraform-provider-statuscake.git/commitdiff
Fix status & uptime assertions
authorMat Schaffer <mat@schaffer.me>
Thu, 1 Feb 2018 07:10:53 +0000 (16:10 +0900)
committerMat Schaffer <mat@schaffer.me>
Thu, 1 Feb 2018 07:10:53 +0000 (16:10 +0900)
They were present in the details but the values were different during my testing. Hopefully this proves true for all future testing.

statuscake/resource_statuscaketest_test.go

index ea69756e3fd8df1da3e7e4d4a6bf013723647541..62d6bf9681375a1279eb4f43cd345d9599287ccb 100644 (file)
@@ -76,8 +76,8 @@ func TestAccStatusCake_withUpdate(t *testing.T) {
                                        resource.TestCheckResourceAttr("statuscake_test.google", "trigger_rate", "20"),
                                        resource.TestCheckResourceAttr("statuscake_test.google", "custom_header", "{ \"Content-Type\": \"application/x-www-form-urlencoded\" }"),
                                        resource.TestCheckResourceAttr("statuscake_test.google", "user_agent", "string9988"),
-                                       resource.TestCheckResourceAttr("statuscake_test.google", "status", "string22117"),
-                                       resource.TestCheckResourceAttr("statuscake_test.google", "uptime", "3498.27"),
+                                       resource.TestCheckResourceAttr("statuscake_test.google", "status", "Up"),
+                                       resource.TestCheckResourceAttr("statuscake_test.google", "uptime", "0"),
                                        resource.TestCheckResourceAttr("statuscake_test.google", "node_locations.#", "3"),
                                        resource.TestCheckResourceAttr("statuscake_test.google", "node_locations.0", "string16045"),
                                        resource.TestCheckResourceAttr("statuscake_test.google", "node_locations.1", "string19741"),