Optional: true,
},
+ "enable_ssl_alert": {
+ Type: schema.TypeBool,
+ Optional: true,
+ Default: false,
+ },
+
"follow_redirect": {
Type: schema.TypeBool,
Optional: true,
UseJar: d.Get("use_jar").(int),
PostRaw: d.Get("post_raw").(string),
FinalEndpoint: d.Get("final_endpoint").(string),
+ EnableSSLAlert: d.Get("enable_ssl_alert").(bool),
FollowRedirect: d.Get("follow_redirect").(bool),
}
return fmt.Errorf("Error Getting StatusCake Test Details for %s: Error: %s", d.Id(), err)
}
- if v, ok := d.GetOk("contact_group"); ok {
- d.Set("contact_group", v)
- } else if v, ok := d.GetOk("contact_id"); ok {
- d.Set("contact_id", v)
- }
+ d.Set("contact_id", testResp.ContactID)
+ d.Set("contact_group", testResp.ContactGroup)
d.Set("website_name", testResp.WebsiteName)
d.Set("website_url", testResp.WebsiteURL)
d.Set("check_rate", testResp.CheckRate)
d.Set("do_not_find", testResp.DoNotFind)
d.Set("status_codes", testResp.StatusCodes)
d.Set("use_jar", testResp.UseJar)
+ d.Set("user_agent", testResp.UserAgent)
d.Set("post_raw", testResp.PostRaw)
d.Set("final_endpoint", testResp.FinalEndpoint)
+ d.Set("enable_ssl_alert", testResp.EnableSSLAlert)
d.Set("follow_redirect", testResp.FollowRedirect)
+ d.Set("ping_url", testResp.PingURL)
+ d.Set("basic_user", testResp.BasicUser)
+ d.Set("basic_pass", testResp.BasicPass)
+ d.Set("public", testResp.Public)
+ d.Set("branding", testResp.Branding)
+ d.Set("virus", testResp.Virus)
+ d.Set("real_browser", testResp.RealBrowser)
+ d.Set("RealBrowser", testResp.TestTags)
return nil
}
if v, ok := d.GetOk("final_endpoint"); ok {
test.FinalEndpoint = v.(string)
}
+ if v, ok := d.GetOk("enable_ssl_alert"); ok {
+ test.EnableSSLAlert = v.(bool)
+ }
if v, ok := d.GetOk("follow_redirect"); ok {
test.FollowRedirect = v.(bool)
}