diff options
Diffstat (limited to 'statuscake/resource_statuscaketest.go')
-rw-r--r-- | statuscake/resource_statuscaketest.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/statuscake/resource_statuscaketest.go b/statuscake/resource_statuscaketest.go index d8604e6..5af5b8f 100644 --- a/statuscake/resource_statuscaketest.go +++ b/statuscake/resource_statuscaketest.go | |||
@@ -218,6 +218,12 @@ func resourceStatusCakeTest() *schema.Resource { | |||
218 | Optional: true, | 218 | Optional: true, |
219 | }, | 219 | }, |
220 | 220 | ||
221 | "enable_ssl_alert": { | ||
222 | Type: schema.TypeBool, | ||
223 | Optional: true, | ||
224 | Default: false, | ||
225 | }, | ||
226 | |||
221 | "follow_redirect": { | 227 | "follow_redirect": { |
222 | Type: schema.TypeBool, | 228 | Type: schema.TypeBool, |
223 | Optional: true, | 229 | Optional: true, |
@@ -260,6 +266,7 @@ func CreateTest(d *schema.ResourceData, meta interface{}) error { | |||
260 | UseJar: d.Get("use_jar").(int), | 266 | UseJar: d.Get("use_jar").(int), |
261 | PostRaw: d.Get("post_raw").(string), | 267 | PostRaw: d.Get("post_raw").(string), |
262 | FinalEndpoint: d.Get("final_endpoint").(string), | 268 | FinalEndpoint: d.Get("final_endpoint").(string), |
269 | EnableSSLAlert: d.Get("enable_ssl_alert").(bool), | ||
263 | FollowRedirect: d.Get("follow_redirect").(bool), | 270 | FollowRedirect: d.Get("follow_redirect").(bool), |
264 | } | 271 | } |
265 | 272 | ||
@@ -357,6 +364,7 @@ func ReadTest(d *schema.ResourceData, meta interface{}) error { | |||
357 | d.Set("use_jar", testResp.UseJar) | 364 | d.Set("use_jar", testResp.UseJar) |
358 | d.Set("post_raw", testResp.PostRaw) | 365 | d.Set("post_raw", testResp.PostRaw) |
359 | d.Set("final_endpoint", testResp.FinalEndpoint) | 366 | d.Set("final_endpoint", testResp.FinalEndpoint) |
367 | d.Set("enable_ssl_alert", testResp.EnableSSLAlert) | ||
360 | d.Set("follow_redirect", testResp.FollowRedirect) | 368 | d.Set("follow_redirect", testResp.FollowRedirect) |
361 | 369 | ||
362 | return nil | 370 | return nil |
@@ -459,6 +467,9 @@ func getStatusCakeTestInput(d *schema.ResourceData) *statuscake.Test { | |||
459 | if v, ok := d.GetOk("final_endpoint"); ok { | 467 | if v, ok := d.GetOk("final_endpoint"); ok { |
460 | test.FinalEndpoint = v.(string) | 468 | test.FinalEndpoint = v.(string) |
461 | } | 469 | } |
470 | if v, ok := d.GetOk("enable_ssl_alert"); ok { | ||
471 | test.EnableSSLAlert = v.(bool) | ||
472 | } | ||
462 | if v, ok := d.GetOk("follow_redirect"); ok { | 473 | if v, ok := d.GetOk("follow_redirect"); ok { |
463 | test.FollowRedirect = v.(bool) | 474 | test.FollowRedirect = v.(bool) |
464 | } | 475 | } |