aboutsummaryrefslogtreecommitdiffhomepage
path: root/statuscake/resource_statuscaketest_test.go
diff options
context:
space:
mode:
authorAndrew N Golovkov <andrew@callstats.io>2018-01-16 16:11:43 +0200
committerAndrew N Golovkov <andrew@callstats.io>2018-01-17 14:59:24 +0200
commita609749989d4ea67354ac5a464ce42a7b807b869 (patch)
treebdd4171e3e8a3d4c0e9a8c9a813319673555ccac /statuscake/resource_statuscaketest_test.go
parent754f142077413d1cfd1e3c8e2fc3f3c0c341ca69 (diff)
downloadterraform-provider-statuscake-a609749989d4ea67354ac5a464ce42a7b807b869.tar.gz
terraform-provider-statuscake-a609749989d4ea67354ac5a464ce42a7b807b869.tar.zst
terraform-provider-statuscake-a609749989d4ea67354ac5a464ce42a7b807b869.zip
`status` and `uptime` params is calculated
Diffstat (limited to 'statuscake/resource_statuscaketest_test.go')
-rw-r--r--statuscake/resource_statuscaketest_test.go6
1 files changed, 0 insertions, 6 deletions
diff --git a/statuscake/resource_statuscaketest_test.go b/statuscake/resource_statuscaketest_test.go
index b39d23c..99acd04 100644
--- a/statuscake/resource_statuscaketest_test.go
+++ b/statuscake/resource_statuscaketest_test.go
@@ -171,10 +171,6 @@ func testAccTestCheckAttributes(rn string, test *statuscake.Test) resource.TestC
171 err = check(key, value, test.CustomHeader) 171 err = check(key, value, test.CustomHeader)
172 case "user_agent": 172 case "user_agent":
173 err = check(key, value, test.UserAgent) 173 err = check(key, value, test.UserAgent)
174 case "status":
175 err = check(key, value, test.Status)
176 case "uptime":
177 err = check(key, value, strconv.FormatFloat(test.Uptime, 'f', -1, 64))
178 case "node_locations": 174 case "node_locations":
179 for _, tv := range test.NodeLocations { 175 for _, tv := range test.NodeLocations {
180 err = check(key, value, tv) 176 err = check(key, value, tv)
@@ -260,8 +256,6 @@ resource "statuscake_test" "google" {
260 trigger_rate = 20 256 trigger_rate = 20
261 custom_header = "{ \"Content-Type\": \"application/x-www-form-urlencoded\" }" 257 custom_header = "{ \"Content-Type\": \"application/x-www-form-urlencoded\" }"
262 user_agent = "string9988" 258 user_agent = "string9988"
263 status = "string22117"
264 uptime = 3498.27
265 node_locations = [ "string16045", "string19741", "string12122" ] 259 node_locations = [ "string16045", "string19741", "string12122" ]
266 ping_url = "string8410" 260 ping_url = "string8410"
267 basic_user = "string27052" 261 basic_user = "string27052"