aboutsummaryrefslogtreecommitdiffhomepage
path: root/statuscake/resource_statuscaketest.go
diff options
context:
space:
mode:
Diffstat (limited to 'statuscake/resource_statuscaketest.go')
-rw-r--r--statuscake/resource_statuscaketest.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/statuscake/resource_statuscaketest.go b/statuscake/resource_statuscaketest.go
index b062456..d32a870 100644
--- a/statuscake/resource_statuscaketest.go
+++ b/statuscake/resource_statuscaketest.go
@@ -215,6 +215,12 @@ func resourceStatusCakeTest() *schema.Resource {
215 Optional: true, 215 Optional: true,
216 }, 216 },
217 217
218 "enable_ssl_alert": {
219 Type: schema.TypeBool,
220 Optional: true,
221 Default: false,
222 },
223
218 "follow_redirect": { 224 "follow_redirect": {
219 Type: schema.TypeBool, 225 Type: schema.TypeBool,
220 Optional: true, 226 Optional: true,
@@ -257,6 +263,7 @@ func CreateTest(d *schema.ResourceData, meta interface{}) error {
257 UseJar: d.Get("use_jar").(int), 263 UseJar: d.Get("use_jar").(int),
258 PostRaw: d.Get("post_raw").(string), 264 PostRaw: d.Get("post_raw").(string),
259 FinalEndpoint: d.Get("final_endpoint").(string), 265 FinalEndpoint: d.Get("final_endpoint").(string),
266 EnableSSLAlert: d.Get("enable_ssl_alert").(bool),
260 FollowRedirect: d.Get("follow_redirect").(bool), 267 FollowRedirect: d.Get("follow_redirect").(bool),
261 } 268 }
262 269
@@ -354,6 +361,7 @@ func ReadTest(d *schema.ResourceData, meta interface{}) error {
354 d.Set("use_jar", testResp.UseJar) 361 d.Set("use_jar", testResp.UseJar)
355 d.Set("post_raw", testResp.PostRaw) 362 d.Set("post_raw", testResp.PostRaw)
356 d.Set("final_endpoint", testResp.FinalEndpoint) 363 d.Set("final_endpoint", testResp.FinalEndpoint)
364 d.Set("enable_ssl_alert", testResp.EnableSSLAlert)
357 d.Set("follow_redirect", testResp.FollowRedirect) 365 d.Set("follow_redirect", testResp.FollowRedirect)
358 366
359 return nil 367 return nil
@@ -456,6 +464,9 @@ func getStatusCakeTestInput(d *schema.ResourceData) *statuscake.Test {
456 if v, ok := d.GetOk("final_endpoint"); ok { 464 if v, ok := d.GetOk("final_endpoint"); ok {
457 test.FinalEndpoint = v.(string) 465 test.FinalEndpoint = v.(string)
458 } 466 }
467 if v, ok := d.GetOk("enable_ssl_alert"); ok {
468 test.EnableSSLAlert = v.(bool)
469 }
459 if v, ok := d.GetOk("follow_redirect"); ok { 470 if v, ok := d.GetOk("follow_redirect"); ok {
460 test.FollowRedirect = v.(bool) 471 test.FollowRedirect = v.(bool)
461 } 472 }