From: Rui Gonçalves Date: Tue, 31 Jan 2017 12:44:06 +0000 (+0000) Subject: Fix statuscake test timeout schema (#11541) X-Git-Tag: v0.1.0~4^2~5 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=6ad7af97bbcfa90a6798dd78ae19adfcef179bdc;p=github%2Ffretlink%2Fterraform-provider-statuscake.git Fix statuscake test timeout schema (#11541) --- 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 { Optional: true, Default: false, }, + "timeout": &schema.Schema{ Type: schema.TypeInt, - Computed: true, + Optional: true, + Default: 40, }, + "confirmations": &schema.Schema{ Type: schema.TypeInt, 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) { testAccTestCheckAttributes("statuscake_test.google", &test), resource.TestCheckResourceAttr("statuscake_test.google", "check_rate", "500"), resource.TestCheckResourceAttr("statuscake_test.google", "paused", "true"), + resource.TestCheckResourceAttr("statuscake_test.google", "timeout", "40"), resource.TestCheckResourceAttr("statuscake_test.google", "contact_id", "0"), resource.TestCheckResourceAttr("statuscake_test.google", "confirmations", "0"), ), @@ -147,6 +148,7 @@ resource "statuscake_test" "google" { website_url = "www.google.com" test_type = "HTTP" check_rate = 300 + timeout = 10 contact_id = 12345 confirmations = 1 }