aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAlexandre Garand <alexandre.garand@fretlink.com>2019-08-09 16:51:34 +0200
committerAlexandre Garand <alexandre.garand@fretlink.com>2019-08-09 16:51:34 +0200
commit03f98475e953bf27db3019fa0840ebc6df7fd295 (patch)
tree22b630f2014dc9f7979c2279b2b9bc64322b6904
parentb74d3065f299a1953e6d21e3d48d3ce0629bcaf7 (diff)
parent7b64e6ecb9bb71146818926fcd3e1b3296e9b3e1 (diff)
downloadterraform-provider-statuscake-03f98475e953bf27db3019fa0840ebc6df7fd295.tar.gz
terraform-provider-statuscake-03f98475e953bf27db3019fa0840ebc6df7fd295.tar.zst
terraform-provider-statuscake-03f98475e953bf27db3019fa0840ebc6df7fd295.zip
Merge branch 'fix_read_test' of github.com:alexandreFre/terraform-provider-statuscakeHEADmaster
-rw-r--r--statuscake/resource_statuscaketest.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/statuscake/resource_statuscaketest.go b/statuscake/resource_statuscaketest.go
index 5af5b8f..f3ed3d2 100644
--- a/statuscake/resource_statuscaketest.go
+++ b/statuscake/resource_statuscaketest.go
@@ -337,6 +337,8 @@ func ReadTest(d *schema.ResourceData, meta interface{}) error {
337 } else if v, ok := d.GetOk("contact_id"); ok { 337 } else if v, ok := d.GetOk("contact_id"); ok {
338 d.Set("contact_id", v) 338 d.Set("contact_id", v)
339 } 339 }
340
341 d.Set("contact_group", testResp.ContactGroup)
340 d.Set("website_name", testResp.WebsiteName) 342 d.Set("website_name", testResp.WebsiteName)
341 d.Set("website_url", testResp.WebsiteURL) 343 d.Set("website_url", testResp.WebsiteURL)
342 d.Set("check_rate", testResp.CheckRate) 344 d.Set("check_rate", testResp.CheckRate)
@@ -362,11 +364,12 @@ func ReadTest(d *schema.ResourceData, meta interface{}) error {
362 d.Set("do_not_find", testResp.DoNotFind) 364 d.Set("do_not_find", testResp.DoNotFind)
363 d.Set("status_codes", testResp.StatusCodes) 365 d.Set("status_codes", testResp.StatusCodes)
364 d.Set("use_jar", testResp.UseJar) 366 d.Set("use_jar", testResp.UseJar)
367 d.Set("user_agent", testResp.UserAgent)
365 d.Set("post_raw", testResp.PostRaw) 368 d.Set("post_raw", testResp.PostRaw)
366 d.Set("final_endpoint", testResp.FinalEndpoint) 369 d.Set("final_endpoint", testResp.FinalEndpoint)
367 d.Set("enable_ssl_alert", testResp.EnableSSLAlert) 370 d.Set("enable_ssl_alert", testResp.EnableSSLAlert)
368 d.Set("follow_redirect", testResp.FollowRedirect) 371 d.Set("follow_redirect", testResp.FollowRedirect)
369 372 d.Set("test_tags", testResp.TestTags)
370 return nil 373 return nil
371} 374}
372 375