diff options
Diffstat (limited to 'resource_statuscaketest.go')
-rw-r--r-- | resource_statuscaketest.go | 7 |
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 | } |