diff options
-rw-r--r-- | resource_statuscaketest.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/resource_statuscaketest.go b/resource_statuscaketest.go index 6834135..17488a5 100644 --- a/resource_statuscaketest.go +++ b/resource_statuscaketest.go | |||
@@ -69,7 +69,7 @@ func CreateTest(d *schema.ResourceData, meta interface{}) error { | |||
69 | 69 | ||
70 | log.Printf("[DEBUG] Creating new StatusCake Test: %s", d.Get("website_name").(string)) | 70 | log.Printf("[DEBUG] Creating new StatusCake Test: %s", d.Get("website_name").(string)) |
71 | 71 | ||
72 | response, err := client.Tests().Put(newTest) | 72 | response, err := client.Tests().Update(newTest) |
73 | if err != nil { | 73 | if err != nil { |
74 | return fmt.Errorf("Error creating StatusCake Test: %s", err.Error()) | 74 | return fmt.Errorf("Error creating StatusCake Test: %s", err.Error()) |
75 | } | 75 | } |
@@ -86,7 +86,7 @@ func UpdateTest(d *schema.ResourceData, meta interface{}) error { | |||
86 | params := getStatusCakeTestInput(d) | 86 | params := getStatusCakeTestInput(d) |
87 | 87 | ||
88 | log.Printf("[DEBUG] StatusCake Test Update for %s", d.Id()) | 88 | log.Printf("[DEBUG] StatusCake Test Update for %s", d.Id()) |
89 | _, err := client.Tests().Put(params) | 89 | _, err := client.Tests().Update(params) |
90 | if err != nil { | 90 | if err != nil { |
91 | return fmt.Errorf("Error Updating StatusCake Test: %s", err.Error()) | 91 | return fmt.Errorf("Error Updating StatusCake Test: %s", err.Error()) |
92 | } | 92 | } |
@@ -116,7 +116,7 @@ func ReadTest(d *schema.ResourceData, meta interface{}) error { | |||
116 | if parseErr != nil { | 116 | if parseErr != nil { |
117 | return parseErr | 117 | return parseErr |
118 | } | 118 | } |
119 | testResp, err := client.Tests().Details(testId) | 119 | testResp, err := client.Tests().Detail(testId) |
120 | if err != nil { | 120 | if err != nil { |
121 | return fmt.Errorf("Error Getting StatusCake Test Details for %s: Error: %s", d.Id(), err) | 121 | return fmt.Errorf("Error Getting StatusCake Test Details for %s: Error: %s", d.Id(), err) |
122 | } | 122 | } |