Closed yktakaha4 closed 1 year ago
Added timeout parameter to the provider.
timeout
Test results in local environment.
$ TF_ACC=1 go test -v ./... -run TestUptimeRobotDataResourceMonitor_custom_timeout_ ? github.com/vexxhost/terraform-provider-uptimerobot [no test files] === RUN TestUptimeRobotDataResourceMonitor_custom_timeout_http 2022/09/06 11:47:48 [DEBUG] POST https://api.uptimerobot.com/v2/newMonitor 2022/09/06 11:47:50 [DEBUG] POST https://api.uptimerobot.com/v2/getMonitors 2022/09/06 11:47:53 [DEBUG] POST https://api.uptimerobot.com/v2/getMonitors 2022/09/06 11:47:55 [DEBUG] POST https://api.uptimerobot.com/v2/getMonitors 2022/09/06 11:47:57 [DEBUG] POST https://api.uptimerobot.com/v2/getMonitors 2022/09/06 11:47:59 [DEBUG] POST https://api.uptimerobot.com/v2/editMonitor 2022/09/06 11:48:01 [DEBUG] POST https://api.uptimerobot.com/v2/getMonitors 2022/09/06 11:48:03 [DEBUG] POST https://api.uptimerobot.com/v2/getMonitors 2022/09/06 11:48:04 [DEBUG] POST https://api.uptimerobot.com/v2/getMonitors (status: 429): retrying in 1s (10 left) 2022/09/06 11:48:09 [DEBUG] POST https://api.uptimerobot.com/v2/getMonitors 2022/09/06 11:48:11 [DEBUG] POST https://api.uptimerobot.com/v2/deleteMonitor 2022/09/06 11:48:11 [DEBUG] POST https://api.uptimerobot.com/v2/deleteMonitor (status: 429): retrying in 39s (10 left) 2022/09/06 11:48:50 [DEBUG] POST https://api.uptimerobot.com/v2/deleteMonitor (status: 429): retrying in 2s (9 left) 2022/09/06 11:48:53 [DEBUG] POST https://api.uptimerobot.com/v2/deleteMonitor (status: 429): retrying in 3s (8 left) 2022/09/06 11:48:56 [DEBUG] POST https://api.uptimerobot.com/v2/deleteMonitor (status: 429): retrying in 1s (7 left) 2022/09/06 11:48:57 [DEBUG] POST https://api.uptimerobot.com/v2/deleteMonitor (status: 429): retrying in 2s (6 left) 2022/09/06 11:48:59 [DEBUG] POST https://api.uptimerobot.com/v2/deleteMonitor (status: 429): retrying in 2s (5 left) 2022/09/06 11:49:03 [DEBUG] POST https://api.uptimerobot.com/v2/getMonitors 2022/09/06 11:49:03 [DEBUG] POST https://api.uptimerobot.com/v2/getMonitors (status: 429): retrying in 2s (10 left) 2022/09/06 11:49:06 [DEBUG] POST https://api.uptimerobot.com/v2/getMonitors (status: 429): retrying in 3s (9 left) 2022/09/06 11:49:09 [DEBUG] POST https://api.uptimerobot.com/v2/getMonitors (status: 429): retrying in 1s (8 left) 2022/09/06 11:49:10 [DEBUG] POST https://api.uptimerobot.com/v2/getMonitors (status: 429): retrying in 39s (7 left) 2022/09/06 11:49:50 [DEBUG] POST https://api.uptimerobot.com/v2/getMonitors (status: 429): retrying in 2s (6 left) 2022/09/06 11:49:52 [DEBUG] POST https://api.uptimerobot.com/v2/getMonitors (status: 429): retrying in 3s (5 left) 2022/09/06 11:49:55 [DEBUG] POST https://api.uptimerobot.com/v2/getMonitors (status: 429): retrying in 1s (4 left) 2022/09/06 11:49:56 [DEBUG] POST https://api.uptimerobot.com/v2/getMonitors (status: 429): retrying in 2s (3 left) 2022/09/06 11:49:59 [DEBUG] POST https://api.uptimerobot.com/v2/getMonitors (status: 429): retrying in 2s (2 left) 2022/09/06 11:50:01 [DEBUG] POST https://api.uptimerobot.com/v2/getMonitors (status: 429): retrying in 1s (1 left) --- PASS: TestUptimeRobotDataResourceMonitor_custom_timeout_http (136.99s) === RUN TestUptimeRobotDataResourceMonitor_custom_timeout_port 2022/09/06 11:50:05 [DEBUG] POST https://api.uptimerobot.com/v2/newMonitor 2022/09/06 11:50:06 [DEBUG] POST https://api.uptimerobot.com/v2/newMonitor (status: 429): retrying in 2s (10 left) 2022/09/06 11:50:09 [DEBUG] POST https://api.uptimerobot.com/v2/newMonitor (status: 429): retrying in 0s (9 left) 2022/09/06 11:50:10 [DEBUG] POST https://api.uptimerobot.com/v2/newMonitor (status: 429): retrying in 38s (8 left) 2022/09/06 11:50:49 [DEBUG] POST https://api.uptimerobot.com/v2/newMonitor (status: 429): retrying in 2s (7 left) 2022/09/06 11:50:53 [DEBUG] POST https://api.uptimerobot.com/v2/getMonitors 2022/09/06 11:50:54 [DEBUG] POST https://api.uptimerobot.com/v2/getMonitors (status: 429): retrying in 1s (10 left) 2022/09/06 11:50:58 [DEBUG] POST https://api.uptimerobot.com/v2/getMonitors 2022/09/06 11:51:01 [DEBUG] POST https://api.uptimerobot.com/v2/getMonitors 2022/09/06 11:51:03 [DEBUG] POST https://api.uptimerobot.com/v2/getMonitors 2022/09/06 11:51:05 [DEBUG] POST https://api.uptimerobot.com/v2/editMonitor 2022/09/06 11:51:07 [DEBUG] POST https://api.uptimerobot.com/v2/getMonitors 2022/09/06 11:51:08 [DEBUG] POST https://api.uptimerobot.com/v2/getMonitors (status: 429): retrying in 1s (10 left) 2022/09/06 11:51:09 [DEBUG] POST https://api.uptimerobot.com/v2/getMonitors (status: 429): retrying in 39s (9 left) 2022/09/06 11:51:50 [DEBUG] POST https://api.uptimerobot.com/v2/getMonitors 2022/09/06 11:51:51 [DEBUG] POST https://api.uptimerobot.com/v2/getMonitors (status: 429): retrying in 2s (10 left) 2022/09/06 11:51:57 [DEBUG] POST https://api.uptimerobot.com/v2/getMonitors 2022/09/06 11:51:59 [DEBUG] POST https://api.uptimerobot.com/v2/deleteMonitor 2022/09/06 11:52:01 [DEBUG] POST https://api.uptimerobot.com/v2/getMonitors --- PASS: TestUptimeRobotDataResourceMonitor_custom_timeout_port (120.08s) === RUN TestUptimeRobotDataResourceMonitor_custom_timeout_keyword 2022/09/06 11:52:05 [DEBUG] POST https://api.uptimerobot.com/v2/newMonitor 2022/09/06 11:52:06 [DEBUG] POST https://api.uptimerobot.com/v2/getMonitors 2022/09/06 11:52:08 [DEBUG] POST https://api.uptimerobot.com/v2/getMonitors 2022/09/06 11:52:12 [DEBUG] POST https://api.uptimerobot.com/v2/getMonitors 2022/09/06 11:52:14 [DEBUG] POST https://api.uptimerobot.com/v2/getMonitors 2022/09/06 11:52:15 [DEBUG] POST https://api.uptimerobot.com/v2/getMonitors (status: 429): retrying in 35s (10 left) 2022/09/06 11:52:51 [DEBUG] POST https://api.uptimerobot.com/v2/getMonitors (status: 429): retrying in 2s (9 left) 2022/09/06 11:52:54 [DEBUG] POST https://api.uptimerobot.com/v2/getMonitors (status: 429): retrying in 3s (8 left) 2022/09/06 11:52:59 [DEBUG] POST https://api.uptimerobot.com/v2/editMonitor 2022/09/06 11:53:01 [DEBUG] POST https://api.uptimerobot.com/v2/getMonitors 2022/09/06 11:53:02 [DEBUG] POST https://api.uptimerobot.com/v2/getMonitors (status: 429): retrying in 2s (10 left) 2022/09/06 11:53:04 [DEBUG] POST https://api.uptimerobot.com/v2/getMonitors (status: 429): retrying in 2s (9 left) 2022/09/06 11:53:07 [DEBUG] POST https://api.uptimerobot.com/v2/getMonitors (status: 429): retrying in 2s (8 left) 2022/09/06 11:53:09 [DEBUG] POST https://api.uptimerobot.com/v2/getMonitors (status: 429): retrying in 3s (7 left) 2022/09/06 11:53:12 [DEBUG] POST https://api.uptimerobot.com/v2/getMonitors (status: 429): retrying in 2s (6 left) 2022/09/06 11:53:14 [DEBUG] POST https://api.uptimerobot.com/v2/getMonitors (status: 429): retrying in 36s (5 left) 2022/09/06 11:53:53 [DEBUG] POST https://api.uptimerobot.com/v2/getMonitors 2022/09/06 11:53:56 [DEBUG] POST https://api.uptimerobot.com/v2/getMonitors 2022/09/06 11:53:57 [DEBUG] POST https://api.uptimerobot.com/v2/getMonitors (status: 429): retrying in 2s (10 left) 2022/09/06 11:54:01 [DEBUG] POST https://api.uptimerobot.com/v2/deleteMonitor 2022/09/06 11:54:04 [DEBUG] POST https://api.uptimerobot.com/v2/getMonitors --- PASS: TestUptimeRobotDataResourceMonitor_custom_timeout_keyword (122.51s) PASS ok github.com/vexxhost/terraform-provider-uptimerobot/internal/provider 379.591s ? github.com/vexxhost/terraform-provider-uptimerobot/internal/provider/api [no test files]
@mnaser Any chance you can check this one out?
@DaazKu We have merged PRs with our own providers, so please use the following https://github.com/lapras-inc/terraform-provider-uptimerobot
Added
timeout
parameter to the provider.Test results in local environment.