aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAlexandre Garand <alexandre.garand@fretlink.com>2019-08-06 12:48:46 +0200
committerAlexandre Garand <alexandre.garand@fretlink.com>2019-08-07 12:27:03 +0200
commit96d77c588b01e1d7b92b19c12440c211d146c51a (patch)
tree83645eb90fcd0e66f8b56eaf8827b36ad0062977
parent5a4ed01b2130166bd200fe8342052d7957765ba3 (diff)
downloadterraform-provider-statuscake-96d77c588b01e1d7b92b19c12440c211d146c51a.tar.gz
terraform-provider-statuscake-96d77c588b01e1d7b92b19c12440c211d146c51a.tar.zst
terraform-provider-statuscake-96d77c588b01e1d7b92b19c12440c211d146c51a.zip
fix reading of test
-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