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-06 15:23:29 +0200
commitcdca1bda321e0675ed639df2306a0e3252a54cd5 (patch)
tree0037fa97ecb2ce585178acd4849316a272f675fd
parent5a4ed01b2130166bd200fe8342052d7957765ba3 (diff)
downloadterraform-provider-statuscake-cdca1bda321e0675ed639df2306a0e3252a54cd5.tar.gz
terraform-provider-statuscake-cdca1bda321e0675ed639df2306a0e3252a54cd5.tar.zst
terraform-provider-statuscake-cdca1bda321e0675ed639df2306a0e3252a54cd5.zip
fix reading of test
-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 5af5b8f..26533fa 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,10 +364,19 @@ 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)
372 d.Set("ping_url", testResp.PingURL)
373 d.Set("basic_user", testResp.BasicUser)
374 d.Set("basic_pass", testResp.BasicPass)
375 d.Set("public", testResp.Public)
376 d.Set("branding", testResp.Branding)
377 d.Set("virus", testResp.Virus)
378 d.Set("real_browser", testResp.RealBrowser)
379 d.Set("RealBrowser", testResp.TestTags)
369 380
370 return nil 381 return nil
371} 382}