]> git.immae.eu Git - github/fretlink/terraform-provider-statuscake.git/commitdiff
Fix statuscake test timeout schema (#11541)
authorRui Gonçalves <ruippeixotog@gmail.com>
Tue, 31 Jan 2017 12:44:06 +0000 (12:44 +0000)
committerPaul Stack <public@paulstack.co.uk>
Tue, 31 Jan 2017 12:44:06 +0000 (12:44 +0000)
resource_statuscaketest.go
resource_statuscaketest_test.go

index 0cdc76d8eefc5f80c62a3e8b4978f413f99a5cee..bc0536420a21fc1350517f7c119eaad670818d5e 100644 (file)
@@ -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,
index ac3cc92be15c863883ff96bb16bfbc3ca43c75ce..1def4e317945cc0175fda9e9657eaa484a967e68 100644 (file)
@@ -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
 }