aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRui Gonçalves <ruippeixotog@gmail.com>2017-01-31 12:44:06 +0000
committerPaul Stack <public@paulstack.co.uk>2017-01-31 12:44:06 +0000
commit6ad7af97bbcfa90a6798dd78ae19adfcef179bdc (patch)
tree487d45234809ed270988a25eab7bcee187944bb3
parentd2c3318b56d0a67cb7382e39672667456797b35c (diff)
downloadterraform-provider-statuscake-6ad7af97bbcfa90a6798dd78ae19adfcef179bdc.tar.gz
terraform-provider-statuscake-6ad7af97bbcfa90a6798dd78ae19adfcef179bdc.tar.zst
terraform-provider-statuscake-6ad7af97bbcfa90a6798dd78ae19adfcef179bdc.zip
Fix statuscake test timeout schema (#11541)
-rw-r--r--resource_statuscaketest.go5
-rw-r--r--resource_statuscaketest_test.go2
2 files changed, 6 insertions, 1 deletions
diff --git a/resource_statuscaketest.go b/resource_statuscaketest.go
index 0cdc76d..bc05364 100644
--- a/resource_statuscaketest.go
+++ b/resource_statuscaketest.go
@@ -54,10 +54,13 @@ func resourceStatusCakeTest() *schema.Resource {
54 Optional: true, 54 Optional: true,
55 Default: false, 55 Default: false,
56 }, 56 },
57
57 "timeout": &schema.Schema{ 58 "timeout": &schema.Schema{
58 Type: schema.TypeInt, 59 Type: schema.TypeInt,
59 Computed: true, 60 Optional: true,
61 Default: 40,
60 }, 62 },
63
61 "confirmations": &schema.Schema{ 64 "confirmations": &schema.Schema{
62 Type: schema.TypeInt, 65 Type: schema.TypeInt,
63 Optional: true, 66 Optional: true,
diff --git a/resource_statuscaketest_test.go b/resource_statuscaketest_test.go
index ac3cc92..1def4e3 100644
--- a/resource_statuscaketest_test.go
+++ b/resource_statuscaketest_test.go
@@ -51,6 +51,7 @@ func TestAccStatusCake_withUpdate(t *testing.T) {
51 testAccTestCheckAttributes("statuscake_test.google", &test), 51 testAccTestCheckAttributes("statuscake_test.google", &test),
52 resource.TestCheckResourceAttr("statuscake_test.google", "check_rate", "500"), 52 resource.TestCheckResourceAttr("statuscake_test.google", "check_rate", "500"),
53 resource.TestCheckResourceAttr("statuscake_test.google", "paused", "true"), 53 resource.TestCheckResourceAttr("statuscake_test.google", "paused", "true"),
54 resource.TestCheckResourceAttr("statuscake_test.google", "timeout", "40"),
54 resource.TestCheckResourceAttr("statuscake_test.google", "contact_id", "0"), 55 resource.TestCheckResourceAttr("statuscake_test.google", "contact_id", "0"),
55 resource.TestCheckResourceAttr("statuscake_test.google", "confirmations", "0"), 56 resource.TestCheckResourceAttr("statuscake_test.google", "confirmations", "0"),
56 ), 57 ),
@@ -147,6 +148,7 @@ resource "statuscake_test" "google" {
147 website_url = "www.google.com" 148 website_url = "www.google.com"
148 test_type = "HTTP" 149 test_type = "HTTP"
149 check_rate = 300 150 check_rate = 300
151 timeout = 10
150 contact_id = 12345 152 contact_id = 12345
151 confirmations = 1 153 confirmations = 1
152} 154}