]> git.immae.eu Git - github/fretlink/terraform-provider-statuscake.git/commitdiff
provider/statuscake: use default status code list when updating test (#12375)
authorAndre Silva <andre.beat@gmail.com>
Sun, 5 Mar 2017 13:44:22 +0000 (13:44 +0000)
committerPaul Stack <public@paulstack.co.uk>
Sun, 5 Mar 2017 13:44:22 +0000 (15:44 +0200)
resource_statuscaketest.go

index dbc15c9fbc84339f91c043199ebffcd3827a94dd..4912758d4049fb39dbf9e5fed196e36ea12cfdb5 100644 (file)
@@ -193,5 +193,13 @@ func getStatusCakeTestInput(d *schema.ResourceData) *statuscake.Test {
        if v, ok := d.GetOk("port"); ok {
                test.Port = v.(int)
        }
+
+       defaultStatusCodes := "204, 205, 206, 303, 400, 401, 403, 404, 405, 406, " +
+               "408, 410, 413, 444, 429, 494, 495, 496, 499, 500, 501, 502, 503, " +
+               "504, 505, 506, 507, 508, 509, 510, 511, 521, 522, 523, 524, 520, " +
+               "598, 599"
+
+       test.StatusCodes = defaultStatusCodes
+
        return test
 }