aboutsummaryrefslogtreecommitdiffhomepage
path: root/resource_statuscaketest.go
diff options
context:
space:
mode:
authorvagrant <vagrant@terraform>2016-08-23 14:43:31 +0000
committervagrant <vagrant@terraform>2016-08-23 14:43:31 +0000
commit516886070835127727defe348567a0edfa138528 (patch)
tree8dc2734278215cac1c5bdf14c3096dc4d56319ff /resource_statuscaketest.go
parent4917b1d3ebabeb85d8b8087a375fc90d41c7d6c1 (diff)
downloadterraform-provider-statuscake-516886070835127727defe348567a0edfa138528.tar.gz
terraform-provider-statuscake-516886070835127727defe348567a0edfa138528.tar.zst
terraform-provider-statuscake-516886070835127727defe348567a0edfa138528.zip
enable contact-group id in statuscake test
Diffstat (limited to 'resource_statuscaketest.go')
-rw-r--r--resource_statuscaketest.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/resource_statuscaketest.go b/resource_statuscaketest.go
index 7f5ff67..53b3059 100644
--- a/resource_statuscaketest.go
+++ b/resource_statuscaketest.go
@@ -53,6 +53,10 @@ func resourceStatusCakeTest() *schema.Resource {
53 Type: schema.TypeInt, 53 Type: schema.TypeInt,
54 Computed: true, 54 Computed: true,
55 }, 55 },
56 "contact_id": &schema.Schema{
57 Type: schema.TypeInt,
58 Optional: true,
59 },
56 }, 60 },
57 } 61 }
58} 62}
@@ -151,5 +155,8 @@ func getStatusCakeTestInput(d *schema.ResourceData) *statuscake.Test {
151 if v, ok := d.GetOk("timeout"); ok { 155 if v, ok := d.GetOk("timeout"); ok {
152 test.Timeout = v.(int) 156 test.Timeout = v.(int)
153 } 157 }
158 if v, ok := d.GetOk("contact_id"); ok {
159 test.ContactID = v.(int)
160 }
154 return test 161 return test
155} 162}