]> git.immae.eu Git - github/fretlink/terraform-provider-statuscake.git/commitdiff
provider/statuscake: Fixing up the StatusCake acceptance tests (#12006)
authorPaul Stack <public@paulstack.co.uk>
Thu, 16 Feb 2017 14:20:23 +0000 (16:20 +0200)
committerGitHub <noreply@github.com>
Thu, 16 Feb 2017 14:20:23 +0000 (16:20 +0200)
```
% make testacc TEST=./builtin/providers/statuscake                                                      2 ↵ ✹
==> Checking that code complies with gofmt requirements...
go generate $(go list ./... | grep -v /terraform/vendor/)
2017/02/16 15:30:40 Generated command/internal_plugin_list.go
TF_ACC=1 go test ./builtin/providers/statuscake -v  -timeout 120m
=== RUN   TestProvider
--- PASS: TestProvider (0.00s)
=== RUN   TestProvider_impl
--- PASS: TestProvider_impl (0.00s)
=== RUN   TestAccStatusCake_basic
--- PASS: TestAccStatusCake_basic (2.14s)
=== RUN   TestAccStatusCake_tcp
--- PASS: TestAccStatusCake_tcp (1.66s)
=== RUN   TestAccStatusCake_withUpdate
--- PASS: TestAccStatusCake_withUpdate (3.62s)
PASS
ok   github.com/hashicorp/terraform/builtin/providers/statuscake 7.435s
```

resource_statuscaketest_test.go

index 17940ed873d049efd15869195d564601fbba8165..d38dc1c33e44ee17376282845856ba8fa7893462 100644 (file)
@@ -168,7 +168,7 @@ resource "statuscake_test" "google" {
        test_type = "HTTP"
        check_rate = 300
        timeout = 10
-       contact_id = 12345
+       contact_id = 43402
        confirmations = 1
 }
 `
@@ -190,7 +190,7 @@ resource "statuscake_test" "google" {
        test_type = "TCP"
        check_rate = 300
        timeout = 10
-       contact_id = 12345
+       contact_id = 43402
        confirmations = 1
        port = 80
 }