]> git.immae.eu Git - github/fretlink/terraform-provider-statuscake.git/commitdiff
fix reading of test
authorAlexandre Garand <alexandre.garand@fretlink.com>
Tue, 6 Aug 2019 10:48:46 +0000 (12:48 +0200)
committerAlexandre Garand <alexandre.garand@fretlink.com>
Wed, 7 Aug 2019 10:27:03 +0000 (12:27 +0200)
statuscake/resource_statuscaketest.go

index 5af5b8fafa35283df6c81af2af4c54158f1952c2..f3ed3d2b920d397143faf75157e2dde33e0bb3ad 100644 (file)
@@ -337,6 +337,8 @@ func ReadTest(d *schema.ResourceData, meta interface{}) error {
        } else if v, ok := d.GetOk("contact_id"); ok {
                d.Set("contact_id", v)
        }
+
+       d.Set("contact_group", testResp.ContactGroup)
        d.Set("website_name", testResp.WebsiteName)
        d.Set("website_url", testResp.WebsiteURL)
        d.Set("check_rate", testResp.CheckRate)
@@ -362,11 +364,12 @@ func ReadTest(d *schema.ResourceData, meta interface{}) error {
        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("test_tags", testResp.TestTags)
        return nil
 }