Skip to content

Commit

Permalink
Fix statuscake test timeout schema (#11541)
Browse files Browse the repository at this point in the history
  • Loading branch information
ruippeixotog authored and stack72 committed Jan 31, 2017
1 parent eb6c0f8 commit c6619b3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion builtin/providers/statuscake/resource_statuscaketest.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 2 additions & 0 deletions builtin/providers/statuscake/resource_statuscaketest_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
),
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit c6619b3

Please sign in to comment.