aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAndre Silva <andre.beat@gmail.com>2017-03-05 13:44:22 +0000
committerPaul Stack <public@paulstack.co.uk>2017-03-05 15:44:22 +0200
commit2a6605e977ead1c970973bdb3517b20ac99bdc15 (patch)
tree6d12188a3c16ff9c6715dca4cb5efafef2ce0ee1
parente7c3fa5620554870596fc3291745089b49eccf8a (diff)
downloadterraform-provider-statuscake-2a6605e977ead1c970973bdb3517b20ac99bdc15.tar.gz
terraform-provider-statuscake-2a6605e977ead1c970973bdb3517b20ac99bdc15.tar.zst
terraform-provider-statuscake-2a6605e977ead1c970973bdb3517b20ac99bdc15.zip
provider/statuscake: use default status code list when updating test (#12375)
-rw-r--r--resource_statuscaketest.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/resource_statuscaketest.go b/resource_statuscaketest.go
index dbc15c9..4912758 100644
--- a/resource_statuscaketest.go
+++ b/resource_statuscaketest.go
@@ -193,5 +193,13 @@ func getStatusCakeTestInput(d *schema.ResourceData) *statuscake.Test {
193 if v, ok := d.GetOk("port"); ok { 193 if v, ok := d.GetOk("port"); ok {
194 test.Port = v.(int) 194 test.Port = v.(int)
195 } 195 }
196
197 defaultStatusCodes := "204, 205, 206, 303, 400, 401, 403, 404, 405, 406, " +
198 "408, 410, 413, 444, 429, 494, 495, 496, 499, 500, 501, 502, 503, " +
199 "504, 505, 506, 507, 508, 509, 510, 511, 521, 522, 523, 524, 520, " +
200 "598, 599"
201
202 test.StatusCodes = defaultStatusCodes
203
196 return test 204 return test
197} 205}