diff options
Diffstat (limited to 'statuscake')
-rw-r--r-- | statuscake/resource_statuscaketest.go | 6 | ||||
-rw-r--r-- | statuscake/resource_statuscaketest_test.go | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/statuscake/resource_statuscaketest.go b/statuscake/resource_statuscaketest.go index 187f711..459c71a 100644 --- a/statuscake/resource_statuscaketest.go +++ b/statuscake/resource_statuscaketest.go | |||
@@ -44,7 +44,7 @@ func resourceStatusCakeTest() *schema.Resource { | |||
44 | }, | 44 | }, |
45 | 45 | ||
46 | "contact_id": { | 46 | "contact_id": { |
47 | Type: schema.TypeString, | 47 | Type: schema.TypeInt, |
48 | Optional: true, | 48 | Optional: true, |
49 | }, | 49 | }, |
50 | 50 | ||
@@ -214,7 +214,7 @@ func CreateTest(d *schema.ResourceData, meta interface{}) error { | |||
214 | TestType: d.Get("test_type").(string), | 214 | TestType: d.Get("test_type").(string), |
215 | Paused: d.Get("paused").(bool), | 215 | Paused: d.Get("paused").(bool), |
216 | Timeout: d.Get("timeout").(int), | 216 | Timeout: d.Get("timeout").(int), |
217 | ContactID: d.Get("contact_id").(string), | 217 | ContactID: d.Get("contact_id").(int), |
218 | Confirmation: d.Get("confirmations").(int), | 218 | Confirmation: d.Get("confirmations").(int), |
219 | Port: d.Get("port").(int), | 219 | Port: d.Get("port").(int), |
220 | TriggerRate: d.Get("trigger_rate").(int), | 220 | TriggerRate: d.Get("trigger_rate").(int), |
@@ -353,7 +353,7 @@ func getStatusCakeTestInput(d *schema.ResourceData) *statuscake.Test { | |||
353 | test.CheckRate = v.(int) | 353 | test.CheckRate = v.(int) |
354 | } | 354 | } |
355 | if v, ok := d.GetOk("contact_id"); ok { | 355 | if v, ok := d.GetOk("contact_id"); ok { |
356 | test.ContactID = v.(string) | 356 | test.ContactID = v.(int) |
357 | } | 357 | } |
358 | if v, ok := d.GetOk("test_type"); ok { | 358 | if v, ok := d.GetOk("test_type"); ok { |
359 | test.TestType = v.(string) | 359 | test.TestType = v.(string) |
diff --git a/statuscake/resource_statuscaketest_test.go b/statuscake/resource_statuscaketest_test.go index 99acd04..b727e92 100644 --- a/statuscake/resource_statuscaketest_test.go +++ b/statuscake/resource_statuscaketest_test.go | |||
@@ -162,7 +162,7 @@ func testAccTestCheckAttributes(rn string, test *statuscake.Test) resource.TestC | |||
162 | case "timeout": | 162 | case "timeout": |
163 | err = check(key, value, strconv.Itoa(test.Timeout)) | 163 | err = check(key, value, strconv.Itoa(test.Timeout)) |
164 | case "contact_id": | 164 | case "contact_id": |
165 | err = check(key, value, test.ContactID) | 165 | err = check(key, value, strconv.Itoa(test.ContactID)) |
166 | case "confirmations": | 166 | case "confirmations": |
167 | err = check(key, value, strconv.Itoa(test.Confirmation)) | 167 | err = check(key, value, strconv.Itoa(test.Confirmation)) |
168 | case "trigger_rate": | 168 | case "trigger_rate": |
@@ -240,7 +240,7 @@ resource "statuscake_test" "google" { | |||
240 | test_type = "HTTP" | 240 | test_type = "HTTP" |
241 | check_rate = 300 | 241 | check_rate = 300 |
242 | timeout = 10 | 242 | timeout = 10 |
243 | contact_id = "43402" | 243 | contact_id = 43402 |
244 | confirmations = 1 | 244 | confirmations = 1 |
245 | trigger_rate = 10 | 245 | trigger_rate = 10 |
246 | } | 246 | } |
@@ -284,7 +284,7 @@ resource "statuscake_test" "google" { | |||
284 | test_type = "TCP" | 284 | test_type = "TCP" |
285 | check_rate = 300 | 285 | check_rate = 300 |
286 | timeout = 10 | 286 | timeout = 10 |
287 | contact_id = "43402" | 287 | contact_id = 43402 |
288 | confirmations = 1 | 288 | confirmations = 1 |
289 | port = 80 | 289 | port = 80 |
290 | } | 290 | } |