diff --git "a/tasks/format-code-task-000071/tests/test.patch" "b/tasks/format-code-task-000071/tests/test.patch" new file mode 100644--- /dev/null +++ "b/tasks/format-code-task-000071/tests/test.patch" @@ -0,0 +1,1445 @@ +diff --git a/datadog/tests/cassettes/TestAccDatadogDashboardGeomap.freeze b/datadog/tests/cassettes/TestAccDatadogDashboardGeomap.freeze +index 00a9dd2bf9..8ca2823e96 100644 +--- a/datadog/tests/cassettes/TestAccDatadogDashboardGeomap.freeze ++++ b/datadog/tests/cassettes/TestAccDatadogDashboardGeomap.freeze +@@ -1 +1 @@ +-2021-03-01T13:47:20.127781-05:00 +\ No newline at end of file ++2021-04-27T08:58:27.619962+02:00 +\ No newline at end of file +diff --git a/datadog/tests/cassettes/TestAccDatadogDashboardGeomap.yaml b/datadog/tests/cassettes/TestAccDatadogDashboardGeomap.yaml +index 252b678285..102e0b2830 100644 +--- a/datadog/tests/cassettes/TestAccDatadogDashboardGeomap.yaml ++++ b/datadog/tests/cassettes/TestAccDatadogDashboardGeomap.yaml +@@ -3,7 +3,7 @@ version: 1 + interactions: + - request: + body: | +- {"description":"Created using the Datadog provider in Terraform","id":"","is_read_only":true,"layout_type":"ordered","notify_list":[],"template_variable_presets":[],"template_variables":[],"title":"tf-TestAccDatadogDashboardGeomap-local-1614624440","widgets":[{"definition":{"requests":[{"q":"avg:system.load.1{*}"}],"style":{"palette":"hostmap_blues","palette_flip":false},"type":"geomap","view":{"focus":"WORLD"}}},{"definition":{"custom_links":[{"label":"Test Custom Link label","link":"https://app.datadoghq.com/dashboard/lists"}],"requests":[{"log_query":{"compute":{"aggregation":"count"},"index":"*","search":{"query":""}}}],"style":{"palette":"hostmap_blues","palette_flip":false},"time":{"live_span":"1h"},"type":"geomap","view":{"focus":"WORLD"}}},{"definition":{"requests":[{"rum_query":{"compute":{"aggregation":"count"},"index":"*","search":{"query":""}}}],"style":{"palette":"hostmap_blues","palette_flip":false},"time":{"live_span":"4h"},"type":"geomap","view":{"focus":"WORLD"}}}]} ++ {"description":"Created using the Datadog provider in Terraform","id":"","is_read_only":true,"layout_type":"ordered","notify_list":[],"template_variable_presets":[],"template_variables":[],"title":"tf-TestAccDatadogDashboardGeomap-local-1619506707","widgets":[{"definition":{"requests":[{"q":"avg:system.load.1{*}"}],"style":{"palette":"hostmap_blues","palette_flip":false},"type":"geomap","view":{"focus":"WORLD"}}},{"definition":{"custom_links":[{"label":"Test Custom Link label","link":"https://app.datadoghq.com/dashboard/lists"}],"requests":[{"log_query":{"compute":{"aggregation":"count"},"index":"*","search":{"query":""}}}],"style":{"palette":"hostmap_blues","palette_flip":false},"time":{"live_span":"1h"},"type":"geomap","view":{"focus":"WORLD"}}},{"definition":{"requests":[{"rum_query":{"compute":{"aggregation":"count"},"index":"*","search":{"query":""}}}],"style":{"palette":"hostmap_blues","palette_flip":false},"time":{"live_span":"4h"},"type":"geomap","view":{"focus":"WORLD"}}}]} + form: {} + headers: + Accept: +@@ -13,11 +13,11 @@ interactions: + Dd-Operation-Id: + - CreateDashboard + User-Agent: +- - terraform-provider-datadog/dev (terraform 1.16.0; terraform-cli 0.12.7-sdk) datadog-api-client-go/1.0.0-beta.16+dev (go go1.15.6; os darwin; arch amd64) ++ - terraform-provider-datadog/dev (terraform 1.16.0; terraform-cli 0.12.7-sdk) datadog-api-client-go/1.0.0-beta.19 (go go1.15.7; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard + method: POST + response: +- body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"c6k-dfq-zy2","title":"tf-TestAccDatadogDashboardGeomap-local-1614624440","url":"/dashboard/c6k-dfq-zy2/tf-testaccdatadogdashboardgeomap-local-1614624440","created_at":"2021-03-01T18:47:21.983758+00:00","modified_at":"2021-03-01T18:47:21.983758+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"q":"avg:system.load.1{*}"}],"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"view":{"focus":"WORLD"}},"id":1395441594444468},{"definition":{"style":{"palette":"hostmap_blues","palette_flip":false},"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"time":{"live_span":"1h"},"requests":[{"log_query":{"index":"*","search":{"query":""},"compute":{"aggregation":"count"}}}],"type":"geomap","view":{"focus":"WORLD"}},"id":1839284831799485},{"definition":{"requests":[{"rum_query":{"index":"*","search":{"query":""},"compute":{"aggregation":"count"}}}],"view":{"focus":"WORLD"},"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"time":{"live_span":"4h"}},"id":6954656752143036}],"layout_type":"ordered"}' ++ body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"3s6-igk-ih5","title":"tf-TestAccDatadogDashboardGeomap-local-1619506707","url":"/dashboard/3s6-igk-ih5/tf-testaccdatadogdashboardgeomap-local-1619506707","created_at":"2021-04-27T06:58:29.156444+00:00","modified_at":"2021-04-27T06:58:29.156444+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"q":"avg:system.load.1{*}"}],"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"view":{"focus":"WORLD"}},"id":2235960280314117},{"definition":{"style":{"palette":"hostmap_blues","palette_flip":false},"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"time":{"live_span":"1h"},"requests":[{"log_query":{"index":"*","search":{"query":""},"compute":{"aggregation":"count"}}}],"type":"geomap","view":{"focus":"WORLD"}},"id":481676151794705},{"definition":{"requests":[{"rum_query":{"index":"*","search":{"query":""},"compute":{"aggregation":"count"}}}],"view":{"focus":"WORLD"},"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"time":{"live_span":"4h"}},"id":2786918167906999}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache +@@ -28,7 +28,7 @@ interactions: + Content-Type: + - application/json + Date: +- - Mon, 01 Mar 2021 18:47:24 GMT ++ - Tue, 27 Apr 2021 06:58:32 GMT + Pragma: + - no-cache + Strict-Transport-Security: +@@ -38,9 +38,9 @@ interactions: + X-Content-Type-Options: + - nosniff + X-Dd-Debug: +- - HbtaOKlJ6OCrx9tMXO6ivMTrEM+g0c93HDp08trmOmgdHozC5J+vn10F0H4WPjCU ++ - gYZcaADwbKcv7Hm19HJx6WsLoKuOijDWAt2viPeCfWqUgyKY+9e1xZdmMJeXV3YV + X-Dd-Version: +- - "35.4004047" ++ - "35.4397207" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK +@@ -55,11 +55,11 @@ interactions: + Dd-Operation-Id: + - GetDashboard + User-Agent: +- - terraform-provider-datadog/dev (terraform 1.16.0; terraform-cli 0.12.7-sdk) datadog-api-client-go/1.0.0-beta.16+dev (go go1.15.6; os darwin; arch amd64) +- url: https://api.datadoghq.com/api/v1/dashboard/c6k-dfq-zy2 ++ - terraform-provider-datadog/dev (terraform 1.16.0; terraform-cli 0.12.7-sdk) datadog-api-client-go/1.0.0-beta.19 (go go1.15.7; os darwin; arch amd64) ++ url: https://api.datadoghq.com/api/v1/dashboard/3s6-igk-ih5 + method: GET + response: +- body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"c6k-dfq-zy2","title":"tf-TestAccDatadogDashboardGeomap-local-1614624440","url":"/dashboard/c6k-dfq-zy2/tf-testaccdatadogdashboardgeomap-local-1614624440","created_at":"2021-03-01T18:47:21.983758+00:00","modified_at":"2021-03-01T18:47:21.983758+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"q":"avg:system.load.1{*}"}],"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"view":{"focus":"WORLD"}},"id":1395441594444468},{"definition":{"style":{"palette":"hostmap_blues","palette_flip":false},"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"time":{"live_span":"1h"},"requests":[{"log_query":{"index":"*","search":{"query":""},"compute":{"aggregation":"count"}}}],"type":"geomap","view":{"focus":"WORLD"}},"id":1839284831799485},{"definition":{"requests":[{"rum_query":{"index":"*","search":{"query":""},"compute":{"aggregation":"count"}}}],"view":{"focus":"WORLD"},"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"time":{"live_span":"4h"}},"id":6954656752143036}],"layout_type":"ordered"}' ++ body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"3s6-igk-ih5","title":"tf-TestAccDatadogDashboardGeomap-local-1619506707","url":"/dashboard/3s6-igk-ih5/tf-testaccdatadogdashboardgeomap-local-1619506707","created_at":"2021-04-27T06:58:29.156444+00:00","modified_at":"2021-04-27T06:58:29.156444+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"q":"avg:system.load.1{*}"}],"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"view":{"focus":"WORLD"}},"id":2235960280314117},{"definition":{"style":{"palette":"hostmap_blues","palette_flip":false},"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"time":{"live_span":"1h"},"requests":[{"log_query":{"index":"*","search":{"query":""},"compute":{"aggregation":"count"}}}],"type":"geomap","view":{"focus":"WORLD"}},"id":481676151794705},{"definition":{"requests":[{"rum_query":{"index":"*","search":{"query":""},"compute":{"aggregation":"count"}}}],"view":{"focus":"WORLD"},"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"time":{"live_span":"4h"}},"id":2786918167906999}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache +@@ -70,7 +70,7 @@ interactions: + Content-Type: + - application/json + Date: +- - Mon, 01 Mar 2021 18:47:24 GMT ++ - Tue, 27 Apr 2021 06:58:32 GMT + Pragma: + - no-cache + Strict-Transport-Security: +@@ -80,9 +80,9 @@ interactions: + X-Content-Type-Options: + - nosniff + X-Dd-Debug: +- - HbtaOKlJ6OCrx9tMXO6ivMTrEM+g0c93HDp08trmOmgdHozC5J+vn10F0H4WPjCU ++ - twvpGlmuom5y6A0pjGtXzTf554cmwJgTcCZ71fK4H/RDi+v5ehBK0zQiRcTJQG5C + X-Dd-Version: +- - "35.4004047" ++ - "35.4397207" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK +@@ -97,11 +97,11 @@ interactions: + Dd-Operation-Id: + - GetDashboard + User-Agent: +- - terraform-provider-datadog/dev (terraform 1.16.0; terraform-cli 0.12.7-sdk) datadog-api-client-go/1.0.0-beta.16+dev (go go1.15.6; os darwin; arch amd64) +- url: https://api.datadoghq.com/api/v1/dashboard/c6k-dfq-zy2 ++ - terraform-provider-datadog/dev (terraform 1.16.0; terraform-cli 0.12.7-sdk) datadog-api-client-go/1.0.0-beta.19 (go go1.15.7; os darwin; arch amd64) ++ url: https://api.datadoghq.com/api/v1/dashboard/3s6-igk-ih5 + method: GET + response: +- body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"c6k-dfq-zy2","title":"tf-TestAccDatadogDashboardGeomap-local-1614624440","url":"/dashboard/c6k-dfq-zy2/tf-testaccdatadogdashboardgeomap-local-1614624440","created_at":"2021-03-01T18:47:21.983758+00:00","modified_at":"2021-03-01T18:47:21.983758+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"q":"avg:system.load.1{*}"}],"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"view":{"focus":"WORLD"}},"id":1395441594444468},{"definition":{"style":{"palette":"hostmap_blues","palette_flip":false},"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"time":{"live_span":"1h"},"requests":[{"log_query":{"index":"*","search":{"query":""},"compute":{"aggregation":"count"}}}],"type":"geomap","view":{"focus":"WORLD"}},"id":1839284831799485},{"definition":{"requests":[{"rum_query":{"index":"*","search":{"query":""},"compute":{"aggregation":"count"}}}],"view":{"focus":"WORLD"},"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"time":{"live_span":"4h"}},"id":6954656752143036}],"layout_type":"ordered"}' ++ body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"3s6-igk-ih5","title":"tf-TestAccDatadogDashboardGeomap-local-1619506707","url":"/dashboard/3s6-igk-ih5/tf-testaccdatadogdashboardgeomap-local-1619506707","created_at":"2021-04-27T06:58:29.156444+00:00","modified_at":"2021-04-27T06:58:29.156444+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"q":"avg:system.load.1{*}"}],"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"view":{"focus":"WORLD"}},"id":2235960280314117},{"definition":{"style":{"palette":"hostmap_blues","palette_flip":false},"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"time":{"live_span":"1h"},"requests":[{"log_query":{"index":"*","search":{"query":""},"compute":{"aggregation":"count"}}}],"type":"geomap","view":{"focus":"WORLD"}},"id":481676151794705},{"definition":{"requests":[{"rum_query":{"index":"*","search":{"query":""},"compute":{"aggregation":"count"}}}],"view":{"focus":"WORLD"},"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"time":{"live_span":"4h"}},"id":2786918167906999}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache +@@ -112,7 +112,7 @@ interactions: + Content-Type: + - application/json + Date: +- - Mon, 01 Mar 2021 18:47:25 GMT ++ - Tue, 27 Apr 2021 06:58:32 GMT + Pragma: + - no-cache + Strict-Transport-Security: +@@ -122,9 +122,9 @@ interactions: + X-Content-Type-Options: + - nosniff + X-Dd-Debug: +- - dPySkcOzIZtKyMKDAAzuysY3gNGGj6RtYogGuSb76E8mPvoqzREyRp6lPYm91hQU ++ - F5gm0Rce1/Abr9/0Fw8HAqWfiz0FdiH8er/AXnN6lOn3L6KyGgbsLCwgPlob1No8 + X-Dd-Version: +- - "35.4004047" ++ - "35.4397207" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK +@@ -139,11 +139,11 @@ interactions: + Dd-Operation-Id: + - GetDashboard + User-Agent: +- - terraform-provider-datadog/dev (terraform 1.16.0; terraform-cli 0.12.7-sdk) datadog-api-client-go/1.0.0-beta.16+dev (go go1.15.6; os darwin; arch amd64) +- url: https://api.datadoghq.com/api/v1/dashboard/c6k-dfq-zy2 ++ - terraform-provider-datadog/dev (terraform 1.16.0; terraform-cli 0.12.7-sdk) datadog-api-client-go/1.0.0-beta.19 (go go1.15.7; os darwin; arch amd64) ++ url: https://api.datadoghq.com/api/v1/dashboard/3s6-igk-ih5 + method: GET + response: +- body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"c6k-dfq-zy2","title":"tf-TestAccDatadogDashboardGeomap-local-1614624440","url":"/dashboard/c6k-dfq-zy2/tf-testaccdatadogdashboardgeomap-local-1614624440","created_at":"2021-03-01T18:47:21.983758+00:00","modified_at":"2021-03-01T18:47:21.983758+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"q":"avg:system.load.1{*}"}],"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"view":{"focus":"WORLD"}},"id":1395441594444468},{"definition":{"style":{"palette":"hostmap_blues","palette_flip":false},"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"time":{"live_span":"1h"},"requests":[{"log_query":{"index":"*","search":{"query":""},"compute":{"aggregation":"count"}}}],"type":"geomap","view":{"focus":"WORLD"}},"id":1839284831799485},{"definition":{"requests":[{"rum_query":{"index":"*","search":{"query":""},"compute":{"aggregation":"count"}}}],"view":{"focus":"WORLD"},"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"time":{"live_span":"4h"}},"id":6954656752143036}],"layout_type":"ordered"}' ++ body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"3s6-igk-ih5","title":"tf-TestAccDatadogDashboardGeomap-local-1619506707","url":"/dashboard/3s6-igk-ih5/tf-testaccdatadogdashboardgeomap-local-1619506707","created_at":"2021-04-27T06:58:29.156444+00:00","modified_at":"2021-04-27T06:58:29.156444+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"q":"avg:system.load.1{*}"}],"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"view":{"focus":"WORLD"}},"id":2235960280314117},{"definition":{"style":{"palette":"hostmap_blues","palette_flip":false},"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"time":{"live_span":"1h"},"requests":[{"log_query":{"index":"*","search":{"query":""},"compute":{"aggregation":"count"}}}],"type":"geomap","view":{"focus":"WORLD"}},"id":481676151794705},{"definition":{"requests":[{"rum_query":{"index":"*","search":{"query":""},"compute":{"aggregation":"count"}}}],"view":{"focus":"WORLD"},"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"time":{"live_span":"4h"}},"id":2786918167906999}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache +@@ -154,7 +154,7 @@ interactions: + Content-Type: + - application/json + Date: +- - Mon, 01 Mar 2021 18:47:25 GMT ++ - Tue, 27 Apr 2021 06:58:33 GMT + Pragma: + - no-cache + Strict-Transport-Security: +@@ -164,9 +164,9 @@ interactions: + X-Content-Type-Options: + - nosniff + X-Dd-Debug: +- - mNzaoDhdDKO7t4QSrAe5X7pHd0bJND187D+vRbwoluXouE2m1UaQQX0RGCvRpLVE ++ - tpRCH6w417YjBovRJ8VmtuXmNONVYiRp2c8d2AxjPdGBn8PCtgG4vAztrx3qUZAN + X-Dd-Version: +- - "35.4004047" ++ - "35.4397207" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK +@@ -181,11 +181,11 @@ interactions: + Dd-Operation-Id: + - GetDashboard + User-Agent: +- - terraform-provider-datadog/dev (terraform 1.16.0; terraform-cli 0.12.7-sdk) datadog-api-client-go/1.0.0-beta.16+dev (go go1.15.6; os darwin; arch amd64) +- url: https://api.datadoghq.com/api/v1/dashboard/c6k-dfq-zy2 ++ - terraform-provider-datadog/dev (terraform 1.16.0; terraform-cli 0.12.7-sdk) datadog-api-client-go/1.0.0-beta.19 (go go1.15.7; os darwin; arch amd64) ++ url: https://api.datadoghq.com/api/v1/dashboard/3s6-igk-ih5 + method: GET + response: +- body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"c6k-dfq-zy2","title":"tf-TestAccDatadogDashboardGeomap-local-1614624440","url":"/dashboard/c6k-dfq-zy2/tf-testaccdatadogdashboardgeomap-local-1614624440","created_at":"2021-03-01T18:47:21.983758+00:00","modified_at":"2021-03-01T18:47:21.983758+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"q":"avg:system.load.1{*}"}],"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"view":{"focus":"WORLD"}},"id":1395441594444468},{"definition":{"style":{"palette":"hostmap_blues","palette_flip":false},"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"time":{"live_span":"1h"},"requests":[{"log_query":{"index":"*","search":{"query":""},"compute":{"aggregation":"count"}}}],"type":"geomap","view":{"focus":"WORLD"}},"id":1839284831799485},{"definition":{"requests":[{"rum_query":{"index":"*","search":{"query":""},"compute":{"aggregation":"count"}}}],"view":{"focus":"WORLD"},"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"time":{"live_span":"4h"}},"id":6954656752143036}],"layout_type":"ordered"}' ++ body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"3s6-igk-ih5","title":"tf-TestAccDatadogDashboardGeomap-local-1619506707","url":"/dashboard/3s6-igk-ih5/tf-testaccdatadogdashboardgeomap-local-1619506707","created_at":"2021-04-27T06:58:29.156444+00:00","modified_at":"2021-04-27T06:58:29.156444+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"q":"avg:system.load.1{*}"}],"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"view":{"focus":"WORLD"}},"id":2235960280314117},{"definition":{"style":{"palette":"hostmap_blues","palette_flip":false},"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"time":{"live_span":"1h"},"requests":[{"log_query":{"index":"*","search":{"query":""},"compute":{"aggregation":"count"}}}],"type":"geomap","view":{"focus":"WORLD"}},"id":481676151794705},{"definition":{"requests":[{"rum_query":{"index":"*","search":{"query":""},"compute":{"aggregation":"count"}}}],"view":{"focus":"WORLD"},"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"time":{"live_span":"4h"}},"id":2786918167906999}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache +@@ -196,7 +196,7 @@ interactions: + Content-Type: + - application/json + Date: +- - Mon, 01 Mar 2021 18:47:25 GMT ++ - Tue, 27 Apr 2021 06:58:33 GMT + Pragma: + - no-cache + Strict-Transport-Security: +@@ -206,9 +206,9 @@ interactions: + X-Content-Type-Options: + - nosniff + X-Dd-Debug: +- - l4HFlaRP3QwYSqoGKhzbYfv7zgkK63HIRR7YkyVYZspq0lGjjTBwoK8V/alf+XYt ++ - mNzaoDhdDKO7t4QSrAe5X7pHd0bJND187D+vRbwoluXouE2m1UaQQX0RGCvRpLVE + X-Dd-Version: +- - "35.4004047" ++ - "35.4397207" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK +@@ -223,11 +223,11 @@ interactions: + Dd-Operation-Id: + - DeleteDashboard + User-Agent: +- - terraform-provider-datadog/dev (terraform 1.16.0; terraform-cli 0.12.7-sdk) datadog-api-client-go/1.0.0-beta.16+dev (go go1.15.6; os darwin; arch amd64) +- url: https://api.datadoghq.com/api/v1/dashboard/c6k-dfq-zy2 ++ - terraform-provider-datadog/dev (terraform 1.16.0; terraform-cli 0.12.7-sdk) datadog-api-client-go/1.0.0-beta.19 (go go1.15.7; os darwin; arch amd64) ++ url: https://api.datadoghq.com/api/v1/dashboard/3s6-igk-ih5 + method: DELETE + response: +- body: '{"deleted_dashboard_id":"c6k-dfq-zy2"}' ++ body: '{"deleted_dashboard_id":"3s6-igk-ih5"}' + headers: + Cache-Control: + - no-cache +@@ -238,7 +238,7 @@ interactions: + Content-Type: + - application/json + Date: +- - Mon, 01 Mar 2021 18:47:26 GMT ++ - Tue, 27 Apr 2021 06:58:34 GMT + Pragma: + - no-cache + Strict-Transport-Security: +@@ -248,9 +248,9 @@ interactions: + X-Content-Type-Options: + - nosniff + X-Dd-Debug: +- - dCmL/3rURV6BPeaqeP3Rxigq41m5CAb17XjrRE42uZ01zpr07HVhbL5/3TWMkvgu ++ - Um4CoU685QqAscnxhS5BD+goWu2yX1Jd4zCfGzSsEvPPIm1qURZaF8dlLl/OEY4I + X-Dd-Version: +- - "35.4004047" ++ - "35.4397207" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK +@@ -265,11 +265,11 @@ interactions: + Dd-Operation-Id: + - GetDashboard + User-Agent: +- - terraform-provider-datadog/dev (terraform 1.16.0; terraform-cli 0.12.7-sdk) datadog-api-client-go/1.0.0-beta.16+dev (go go1.15.6; os darwin; arch amd64) +- url: https://api.datadoghq.com/api/v1/dashboard/c6k-dfq-zy2 ++ - terraform-provider-datadog/dev (terraform 1.16.0; terraform-cli 0.12.7-sdk) datadog-api-client-go/1.0.0-beta.19 (go go1.15.7; os darwin; arch amd64) ++ url: https://api.datadoghq.com/api/v1/dashboard/3s6-igk-ih5 + method: GET + response: +- body: '{"errors": ["Dashboard with ID c6k-dfq-zy2 not found"]}' ++ body: '{"errors": ["Dashboard with ID 3s6-igk-ih5 not found"]}' + headers: + Cache-Control: + - no-cache +@@ -280,7 +280,7 @@ interactions: + Content-Type: + - application/json + Date: +- - Mon, 01 Mar 2021 18:47:26 GMT ++ - Tue, 27 Apr 2021 06:58:34 GMT + Pragma: + - no-cache + Strict-Transport-Security: +@@ -290,7 +290,7 @@ interactions: + X-Content-Type-Options: + - nosniff + X-Dd-Version: +- - "35.4004047" ++ - "35.4397207" + X-Frame-Options: + - SAMEORIGIN + status: 404 Not Found +diff --git a/datadog/tests/cassettes/TestAccDatadogDashboardGeomapFormula.freeze b/datadog/tests/cassettes/TestAccDatadogDashboardGeomapFormula.freeze +new file mode 100644 +index 0000000000..12046087a1 +--- /dev/null ++++ b/datadog/tests/cassettes/TestAccDatadogDashboardGeomapFormula.freeze +@@ -0,0 +1 @@ ++2021-04-27T08:58:27.619933+02:00 +\ No newline at end of file +diff --git a/datadog/tests/cassettes/TestAccDatadogDashboardGeomapFormula.yaml b/datadog/tests/cassettes/TestAccDatadogDashboardGeomapFormula.yaml +new file mode 100644 +index 0000000000..d8271a5a99 +--- /dev/null ++++ b/datadog/tests/cassettes/TestAccDatadogDashboardGeomapFormula.yaml +@@ -0,0 +1,298 @@ ++--- ++version: 1 ++interactions: ++- request: ++ body: | ++ {"description":"Created using the Datadog provider in Terraform","id":"","is_read_only":true,"layout_type":"ordered","notify_list":[],"template_variable_presets":[],"template_variables":[],"title":"tf-TestAccDatadogDashboardGeomapFormula-local-1619506707","widgets":[{"definition":{"requests":[{"formulas":[{"formula":"query1 + query2","limit":{"count":10,"order":"asc"}}],"queries":[{"aggregator":"sum","data_source":"metrics","name":"query1","query":"avg:system.cpu.system{*} by {datacenter}"},{"aggregator":"sum","data_source":"metrics","name":"query2","query":"avg:system.load.1{*} by {datacenter}"}],"response_format":"scalar"}],"style":{"palette":"hostmap_blues","palette_flip":false},"type":"geomap","view":{"focus":"WORLD"}}},{"definition":{"requests":[{"formulas":[{"formula":"query1","limit":{"count":25,"order":"desc"}}],"queries":[{"compute":{"aggregation":"count"},"data_source":"rum","indexes":["*"],"name":"query1","search":{"query":"abc"}}],"response_format":"scalar"}],"style":{"palette":"hostmap_blues","palette_flip":false},"type":"geomap","view":{"focus":"WORLD"}}},{"definition":{"custom_links":[{"label":"my custom link","link":"https://app.datadoghq.com/dashboard/lists"}],"requests":[{"formulas":[{"formula":"query1"}],"queries":[{"compute":{"aggregation":"count"},"data_source":"security_signals","indexes":["*"],"name":"query1"}],"response_format":"scalar"}],"style":{"palette":"hostmap_blues","palette_flip":false},"time":{"live_span":"4h"},"type":"geomap","view":{"focus":"WORLD"}}}]} ++ form: {} ++ headers: ++ Accept: ++ - application/json ++ Content-Type: ++ - application/json ++ Dd-Operation-Id: ++ - CreateDashboard ++ User-Agent: ++ - terraform-provider-datadog/dev (terraform 1.16.0; terraform-cli 0.12.7-sdk) datadog-api-client-go/1.0.0-beta.19 (go go1.15.7; os darwin; arch amd64) ++ url: https://api.datadoghq.com/api/v1/dashboard ++ method: POST ++ response: ++ body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"3jk-mfp-nsn","title":"tf-TestAccDatadogDashboardGeomapFormula-local-1619506707","url":"/dashboard/3jk-mfp-nsn/tf-testaccdatadogdashboardgeomapformula-local-1619506707","created_at":"2021-04-27T06:58:29.303490+00:00","modified_at":"2021-04-27T06:58:29.303490+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"formulas":[{"formula":"query1 + query2","limit":{"count":10,"order":"asc"}}],"response_format":"scalar","queries":[{"aggregator":"sum","data_source":"metrics","name":"query1","query":"avg:system.cpu.system{*} by {datacenter}"},{"aggregator":"sum","data_source":"metrics","name":"query2","query":"avg:system.load.1{*} by {datacenter}"}]}],"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"view":{"focus":"WORLD"}},"id":1149146342854926},{"definition":{"requests":[{"formulas":[{"formula":"query1","limit":{"count":25,"order":"desc"}}],"response_format":"scalar","queries":[{"search":{"query":"abc"},"data_source":"rum","compute":{"aggregation":"count"},"name":"query1","indexes":["*"]}]}],"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"view":{"focus":"WORLD"}},"id":5478869481740425},{"definition":{"style":{"palette":"hostmap_blues","palette_flip":false},"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"my custom link"}],"time":{"live_span":"4h"},"requests":[{"formulas":[{"formula":"query1"}],"response_format":"scalar","queries":[{"data_source":"security_signals","compute":{"aggregation":"count"},"name":"query1","indexes":["*"]}]}],"type":"geomap","view":{"focus":"WORLD"}},"id":18914160855721}],"layout_type":"ordered"}' ++ headers: ++ Cache-Control: ++ - no-cache ++ Connection: ++ - keep-alive ++ Content-Security-Policy: ++ - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report ++ Content-Type: ++ - application/json ++ Date: ++ - Tue, 27 Apr 2021 06:58:32 GMT ++ Pragma: ++ - no-cache ++ Strict-Transport-Security: ++ - max-age=15724800; ++ Vary: ++ - Accept-Encoding ++ X-Content-Type-Options: ++ - nosniff ++ X-Dd-Debug: ++ - Um4CoU685QqAscnxhS5BD+goWu2yX1Jd4zCfGzSsEvPPIm1qURZaF8dlLl/OEY4I ++ X-Dd-Version: ++ - "35.4397207" ++ X-Frame-Options: ++ - SAMEORIGIN ++ status: 200 OK ++ code: 200 ++ duration: "" ++- request: ++ body: "" ++ form: {} ++ headers: ++ Accept: ++ - application/json ++ Dd-Operation-Id: ++ - GetDashboard ++ User-Agent: ++ - terraform-provider-datadog/dev (terraform 1.16.0; terraform-cli 0.12.7-sdk) datadog-api-client-go/1.0.0-beta.19 (go go1.15.7; os darwin; arch amd64) ++ url: https://api.datadoghq.com/api/v1/dashboard/3jk-mfp-nsn ++ method: GET ++ response: ++ body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"3jk-mfp-nsn","title":"tf-TestAccDatadogDashboardGeomapFormula-local-1619506707","url":"/dashboard/3jk-mfp-nsn/tf-testaccdatadogdashboardgeomapformula-local-1619506707","created_at":"2021-04-27T06:58:29.303490+00:00","modified_at":"2021-04-27T06:58:29.303490+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"formulas":[{"formula":"query1 + query2","limit":{"count":10,"order":"asc"}}],"response_format":"scalar","queries":[{"aggregator":"sum","data_source":"metrics","name":"query1","query":"avg:system.cpu.system{*} by {datacenter}"},{"aggregator":"sum","data_source":"metrics","name":"query2","query":"avg:system.load.1{*} by {datacenter}"}]}],"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"view":{"focus":"WORLD"}},"id":1149146342854926},{"definition":{"requests":[{"formulas":[{"formula":"query1","limit":{"count":25,"order":"desc"}}],"response_format":"scalar","queries":[{"search":{"query":"abc"},"data_source":"rum","compute":{"aggregation":"count"},"name":"query1","indexes":["*"]}]}],"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"view":{"focus":"WORLD"}},"id":5478869481740425},{"definition":{"style":{"palette":"hostmap_blues","palette_flip":false},"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"my custom link"}],"time":{"live_span":"4h"},"requests":[{"formulas":[{"formula":"query1"}],"response_format":"scalar","queries":[{"data_source":"security_signals","compute":{"aggregation":"count"},"name":"query1","indexes":["*"]}]}],"type":"geomap","view":{"focus":"WORLD"}},"id":18914160855721}],"layout_type":"ordered"}' ++ headers: ++ Cache-Control: ++ - no-cache ++ Connection: ++ - keep-alive ++ Content-Security-Policy: ++ - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report ++ Content-Type: ++ - application/json ++ Date: ++ - Tue, 27 Apr 2021 06:58:32 GMT ++ Pragma: ++ - no-cache ++ Strict-Transport-Security: ++ - max-age=15724800; ++ Vary: ++ - Accept-Encoding ++ X-Content-Type-Options: ++ - nosniff ++ X-Dd-Debug: ++ - SY1h8ScsWq+kYmtbh63ltMLFAZsQjqfrgvdfAoRX+9TzT1sgMBRYaFRwfWWRRe9a ++ X-Dd-Version: ++ - "35.4397207" ++ X-Frame-Options: ++ - SAMEORIGIN ++ status: 200 OK ++ code: 200 ++ duration: "" ++- request: ++ body: "" ++ form: {} ++ headers: ++ Accept: ++ - application/json ++ Dd-Operation-Id: ++ - GetDashboard ++ User-Agent: ++ - terraform-provider-datadog/dev (terraform 1.16.0; terraform-cli 0.12.7-sdk) datadog-api-client-go/1.0.0-beta.19 (go go1.15.7; os darwin; arch amd64) ++ url: https://api.datadoghq.com/api/v1/dashboard/3jk-mfp-nsn ++ method: GET ++ response: ++ body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"3jk-mfp-nsn","title":"tf-TestAccDatadogDashboardGeomapFormula-local-1619506707","url":"/dashboard/3jk-mfp-nsn/tf-testaccdatadogdashboardgeomapformula-local-1619506707","created_at":"2021-04-27T06:58:29.303490+00:00","modified_at":"2021-04-27T06:58:29.303490+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"formulas":[{"formula":"query1 + query2","limit":{"count":10,"order":"asc"}}],"response_format":"scalar","queries":[{"aggregator":"sum","data_source":"metrics","name":"query1","query":"avg:system.cpu.system{*} by {datacenter}"},{"aggregator":"sum","data_source":"metrics","name":"query2","query":"avg:system.load.1{*} by {datacenter}"}]}],"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"view":{"focus":"WORLD"}},"id":1149146342854926},{"definition":{"requests":[{"formulas":[{"formula":"query1","limit":{"count":25,"order":"desc"}}],"response_format":"scalar","queries":[{"search":{"query":"abc"},"data_source":"rum","compute":{"aggregation":"count"},"name":"query1","indexes":["*"]}]}],"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"view":{"focus":"WORLD"}},"id":5478869481740425},{"definition":{"style":{"palette":"hostmap_blues","palette_flip":false},"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"my custom link"}],"time":{"live_span":"4h"},"requests":[{"formulas":[{"formula":"query1"}],"response_format":"scalar","queries":[{"data_source":"security_signals","compute":{"aggregation":"count"},"name":"query1","indexes":["*"]}]}],"type":"geomap","view":{"focus":"WORLD"}},"id":18914160855721}],"layout_type":"ordered"}' ++ headers: ++ Cache-Control: ++ - no-cache ++ Connection: ++ - keep-alive ++ Content-Security-Policy: ++ - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report ++ Content-Type: ++ - application/json ++ Date: ++ - Tue, 27 Apr 2021 06:58:32 GMT ++ Pragma: ++ - no-cache ++ Strict-Transport-Security: ++ - max-age=15724800; ++ Vary: ++ - Accept-Encoding ++ X-Content-Type-Options: ++ - nosniff ++ X-Dd-Debug: ++ - SY1h8ScsWq+kYmtbh63ltMLFAZsQjqfrgvdfAoRX+9TzT1sgMBRYaFRwfWWRRe9a ++ X-Dd-Version: ++ - "35.4397207" ++ X-Frame-Options: ++ - SAMEORIGIN ++ status: 200 OK ++ code: 200 ++ duration: "" ++- request: ++ body: "" ++ form: {} ++ headers: ++ Accept: ++ - application/json ++ Dd-Operation-Id: ++ - GetDashboard ++ User-Agent: ++ - terraform-provider-datadog/dev (terraform 1.16.0; terraform-cli 0.12.7-sdk) datadog-api-client-go/1.0.0-beta.19 (go go1.15.7; os darwin; arch amd64) ++ url: https://api.datadoghq.com/api/v1/dashboard/3jk-mfp-nsn ++ method: GET ++ response: ++ body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"3jk-mfp-nsn","title":"tf-TestAccDatadogDashboardGeomapFormula-local-1619506707","url":"/dashboard/3jk-mfp-nsn/tf-testaccdatadogdashboardgeomapformula-local-1619506707","created_at":"2021-04-27T06:58:29.303490+00:00","modified_at":"2021-04-27T06:58:29.303490+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"formulas":[{"formula":"query1 + query2","limit":{"count":10,"order":"asc"}}],"response_format":"scalar","queries":[{"aggregator":"sum","data_source":"metrics","name":"query1","query":"avg:system.cpu.system{*} by {datacenter}"},{"aggregator":"sum","data_source":"metrics","name":"query2","query":"avg:system.load.1{*} by {datacenter}"}]}],"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"view":{"focus":"WORLD"}},"id":1149146342854926},{"definition":{"requests":[{"formulas":[{"formula":"query1","limit":{"count":25,"order":"desc"}}],"response_format":"scalar","queries":[{"search":{"query":"abc"},"data_source":"rum","compute":{"aggregation":"count"},"name":"query1","indexes":["*"]}]}],"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"view":{"focus":"WORLD"}},"id":5478869481740425},{"definition":{"style":{"palette":"hostmap_blues","palette_flip":false},"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"my custom link"}],"time":{"live_span":"4h"},"requests":[{"formulas":[{"formula":"query1"}],"response_format":"scalar","queries":[{"data_source":"security_signals","compute":{"aggregation":"count"},"name":"query1","indexes":["*"]}]}],"type":"geomap","view":{"focus":"WORLD"}},"id":18914160855721}],"layout_type":"ordered"}' ++ headers: ++ Cache-Control: ++ - no-cache ++ Connection: ++ - keep-alive ++ Content-Security-Policy: ++ - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report ++ Content-Type: ++ - application/json ++ Date: ++ - Tue, 27 Apr 2021 06:58:33 GMT ++ Pragma: ++ - no-cache ++ Strict-Transport-Security: ++ - max-age=15724800; ++ Vary: ++ - Accept-Encoding ++ X-Content-Type-Options: ++ - nosniff ++ X-Dd-Debug: ++ - dPySkcOzIZtKyMKDAAzuysY3gNGGj6RtYogGuSb76E8mPvoqzREyRp6lPYm91hQU ++ X-Dd-Version: ++ - "35.4397207" ++ X-Frame-Options: ++ - SAMEORIGIN ++ status: 200 OK ++ code: 200 ++ duration: "" ++- request: ++ body: "" ++ form: {} ++ headers: ++ Accept: ++ - application/json ++ Dd-Operation-Id: ++ - GetDashboard ++ User-Agent: ++ - terraform-provider-datadog/dev (terraform 1.16.0; terraform-cli 0.12.7-sdk) datadog-api-client-go/1.0.0-beta.19 (go go1.15.7; os darwin; arch amd64) ++ url: https://api.datadoghq.com/api/v1/dashboard/3jk-mfp-nsn ++ method: GET ++ response: ++ body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"3jk-mfp-nsn","title":"tf-TestAccDatadogDashboardGeomapFormula-local-1619506707","url":"/dashboard/3jk-mfp-nsn/tf-testaccdatadogdashboardgeomapformula-local-1619506707","created_at":"2021-04-27T06:58:29.303490+00:00","modified_at":"2021-04-27T06:58:29.303490+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"formulas":[{"formula":"query1 + query2","limit":{"count":10,"order":"asc"}}],"response_format":"scalar","queries":[{"aggregator":"sum","data_source":"metrics","name":"query1","query":"avg:system.cpu.system{*} by {datacenter}"},{"aggregator":"sum","data_source":"metrics","name":"query2","query":"avg:system.load.1{*} by {datacenter}"}]}],"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"view":{"focus":"WORLD"}},"id":1149146342854926},{"definition":{"requests":[{"formulas":[{"formula":"query1","limit":{"count":25,"order":"desc"}}],"response_format":"scalar","queries":[{"search":{"query":"abc"},"data_source":"rum","compute":{"aggregation":"count"},"name":"query1","indexes":["*"]}]}],"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"view":{"focus":"WORLD"}},"id":5478869481740425},{"definition":{"style":{"palette":"hostmap_blues","palette_flip":false},"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"my custom link"}],"time":{"live_span":"4h"},"requests":[{"formulas":[{"formula":"query1"}],"response_format":"scalar","queries":[{"data_source":"security_signals","compute":{"aggregation":"count"},"name":"query1","indexes":["*"]}]}],"type":"geomap","view":{"focus":"WORLD"}},"id":18914160855721}],"layout_type":"ordered"}' ++ headers: ++ Cache-Control: ++ - no-cache ++ Connection: ++ - keep-alive ++ Content-Security-Policy: ++ - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report ++ Content-Type: ++ - application/json ++ Date: ++ - Tue, 27 Apr 2021 06:58:34 GMT ++ Pragma: ++ - no-cache ++ Strict-Transport-Security: ++ - max-age=15724800; ++ Vary: ++ - Accept-Encoding ++ X-Content-Type-Options: ++ - nosniff ++ X-Dd-Debug: ++ - dCmL/3rURV6BPeaqeP3Rxigq41m5CAb17XjrRE42uZ01zpr07HVhbL5/3TWMkvgu ++ X-Dd-Version: ++ - "35.4397207" ++ X-Frame-Options: ++ - SAMEORIGIN ++ status: 200 OK ++ code: 200 ++ duration: "" ++- request: ++ body: "" ++ form: {} ++ headers: ++ Accept: ++ - application/json ++ Dd-Operation-Id: ++ - DeleteDashboard ++ User-Agent: ++ - terraform-provider-datadog/dev (terraform 1.16.0; terraform-cli 0.12.7-sdk) datadog-api-client-go/1.0.0-beta.19 (go go1.15.7; os darwin; arch amd64) ++ url: https://api.datadoghq.com/api/v1/dashboard/3jk-mfp-nsn ++ method: DELETE ++ response: ++ body: '{"deleted_dashboard_id":"3jk-mfp-nsn"}' ++ headers: ++ Cache-Control: ++ - no-cache ++ Connection: ++ - keep-alive ++ Content-Security-Policy: ++ - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report ++ Content-Type: ++ - application/json ++ Date: ++ - Tue, 27 Apr 2021 06:58:34 GMT ++ Pragma: ++ - no-cache ++ Strict-Transport-Security: ++ - max-age=15724800; ++ Vary: ++ - Accept-Encoding ++ X-Content-Type-Options: ++ - nosniff ++ X-Dd-Debug: ++ - mNzaoDhdDKO7t4QSrAe5X7pHd0bJND187D+vRbwoluXouE2m1UaQQX0RGCvRpLVE ++ X-Dd-Version: ++ - "35.4397207" ++ X-Frame-Options: ++ - SAMEORIGIN ++ status: 200 OK ++ code: 200 ++ duration: "" ++- request: ++ body: "" ++ form: {} ++ headers: ++ Accept: ++ - application/json ++ Dd-Operation-Id: ++ - GetDashboard ++ User-Agent: ++ - terraform-provider-datadog/dev (terraform 1.16.0; terraform-cli 0.12.7-sdk) datadog-api-client-go/1.0.0-beta.19 (go go1.15.7; os darwin; arch amd64) ++ url: https://api.datadoghq.com/api/v1/dashboard/3jk-mfp-nsn ++ method: GET ++ response: ++ body: '{"errors": ["Dashboard with ID 3jk-mfp-nsn not found"]}' ++ headers: ++ Cache-Control: ++ - no-cache ++ Connection: ++ - keep-alive ++ Content-Security-Policy: ++ - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report ++ Content-Type: ++ - application/json ++ Date: ++ - Tue, 27 Apr 2021 06:58:34 GMT ++ Pragma: ++ - no-cache ++ Strict-Transport-Security: ++ - max-age=15724800; ++ Vary: ++ - Accept-Encoding ++ X-Content-Type-Options: ++ - nosniff ++ X-Dd-Version: ++ - "35.4397207" ++ X-Frame-Options: ++ - SAMEORIGIN ++ status: 404 Not Found ++ code: 404 ++ duration: "" +diff --git a/datadog/tests/cassettes/TestAccDatadogDashboardGeomapFormula_import.freeze b/datadog/tests/cassettes/TestAccDatadogDashboardGeomapFormula_import.freeze +new file mode 100644 +index 0000000000..a807f71eb9 +--- /dev/null ++++ b/datadog/tests/cassettes/TestAccDatadogDashboardGeomapFormula_import.freeze +@@ -0,0 +1 @@ ++2021-04-27T08:58:27.620391+02:00 +\ No newline at end of file +diff --git a/datadog/tests/cassettes/TestAccDatadogDashboardGeomapFormula_import.yaml b/datadog/tests/cassettes/TestAccDatadogDashboardGeomapFormula_import.yaml +new file mode 100644 +index 0000000000..01b977dabe +--- /dev/null ++++ b/datadog/tests/cassettes/TestAccDatadogDashboardGeomapFormula_import.yaml +@@ -0,0 +1,340 @@ ++--- ++version: 1 ++interactions: ++- request: ++ body: | ++ {"description":"Created using the Datadog provider in Terraform","id":"","is_read_only":true,"layout_type":"ordered","notify_list":[],"template_variable_presets":[],"template_variables":[],"title":"tf-TestAccDatadogDashboardGeomapFormula_import-local-1619506707","widgets":[{"definition":{"requests":[{"formulas":[{"formula":"query1 + query2","limit":{"count":10,"order":"asc"}}],"queries":[{"aggregator":"sum","data_source":"metrics","name":"query1","query":"avg:system.cpu.system{*} by {datacenter}"},{"aggregator":"sum","data_source":"metrics","name":"query2","query":"avg:system.load.1{*} by {datacenter}"}],"response_format":"scalar"}],"style":{"palette":"hostmap_blues","palette_flip":false},"type":"geomap","view":{"focus":"WORLD"}}},{"definition":{"requests":[{"formulas":[{"formula":"query1","limit":{"count":25,"order":"desc"}}],"queries":[{"compute":{"aggregation":"count"},"data_source":"rum","indexes":["*"],"name":"query1","search":{"query":"abc"}}],"response_format":"scalar"}],"style":{"palette":"hostmap_blues","palette_flip":false},"type":"geomap","view":{"focus":"WORLD"}}},{"definition":{"custom_links":[{"label":"my custom link","link":"https://app.datadoghq.com/dashboard/lists"}],"requests":[{"formulas":[{"formula":"query1"}],"queries":[{"compute":{"aggregation":"count"},"data_source":"security_signals","indexes":["*"],"name":"query1"}],"response_format":"scalar"}],"style":{"palette":"hostmap_blues","palette_flip":false},"time":{"live_span":"4h"},"type":"geomap","view":{"focus":"WORLD"}}}]} ++ form: {} ++ headers: ++ Accept: ++ - application/json ++ Content-Type: ++ - application/json ++ Dd-Operation-Id: ++ - CreateDashboard ++ User-Agent: ++ - terraform-provider-datadog/dev (terraform 1.16.0; terraform-cli 0.12.7-sdk) datadog-api-client-go/1.0.0-beta.19 (go go1.15.7; os darwin; arch amd64) ++ url: https://api.datadoghq.com/api/v1/dashboard ++ method: POST ++ response: ++ body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"myq-qpv-k3m","title":"tf-TestAccDatadogDashboardGeomapFormula_import-local-1619506707","url":"/dashboard/myq-qpv-k3m/tf-testaccdatadogdashboardgeomapformulaimport-local-1619506707","created_at":"2021-04-27T06:58:29.153119+00:00","modified_at":"2021-04-27T06:58:29.153119+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"formulas":[{"formula":"query1 + query2","limit":{"count":10,"order":"asc"}}],"response_format":"scalar","queries":[{"aggregator":"sum","data_source":"metrics","name":"query1","query":"avg:system.cpu.system{*} by {datacenter}"},{"aggregator":"sum","data_source":"metrics","name":"query2","query":"avg:system.load.1{*} by {datacenter}"}]}],"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"view":{"focus":"WORLD"}},"id":5661738832269822},{"definition":{"requests":[{"formulas":[{"formula":"query1","limit":{"count":25,"order":"desc"}}],"response_format":"scalar","queries":[{"search":{"query":"abc"},"data_source":"rum","compute":{"aggregation":"count"},"name":"query1","indexes":["*"]}]}],"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"view":{"focus":"WORLD"}},"id":8505986293990458},{"definition":{"style":{"palette":"hostmap_blues","palette_flip":false},"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"my custom link"}],"time":{"live_span":"4h"},"requests":[{"formulas":[{"formula":"query1"}],"response_format":"scalar","queries":[{"data_source":"security_signals","compute":{"aggregation":"count"},"name":"query1","indexes":["*"]}]}],"type":"geomap","view":{"focus":"WORLD"}},"id":3442821028347668}],"layout_type":"ordered"}' ++ headers: ++ Cache-Control: ++ - no-cache ++ Connection: ++ - keep-alive ++ Content-Security-Policy: ++ - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report ++ Content-Type: ++ - application/json ++ Date: ++ - Tue, 27 Apr 2021 06:58:32 GMT ++ Pragma: ++ - no-cache ++ Strict-Transport-Security: ++ - max-age=15724800; ++ Vary: ++ - Accept-Encoding ++ X-Content-Type-Options: ++ - nosniff ++ X-Dd-Debug: ++ - PhosSd3Ch1B6B0DXI71steKUi7XhPDttnPiIP1NdXTw0VJNWpoUnYyBmODS5ne3q ++ X-Dd-Version: ++ - "35.4397207" ++ X-Frame-Options: ++ - SAMEORIGIN ++ status: 200 OK ++ code: 200 ++ duration: "" ++- request: ++ body: "" ++ form: {} ++ headers: ++ Accept: ++ - application/json ++ Dd-Operation-Id: ++ - GetDashboard ++ User-Agent: ++ - terraform-provider-datadog/dev (terraform 1.16.0; terraform-cli 0.12.7-sdk) datadog-api-client-go/1.0.0-beta.19 (go go1.15.7; os darwin; arch amd64) ++ url: https://api.datadoghq.com/api/v1/dashboard/myq-qpv-k3m ++ method: GET ++ response: ++ body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"myq-qpv-k3m","title":"tf-TestAccDatadogDashboardGeomapFormula_import-local-1619506707","url":"/dashboard/myq-qpv-k3m/tf-testaccdatadogdashboardgeomapformulaimport-local-1619506707","created_at":"2021-04-27T06:58:29.153119+00:00","modified_at":"2021-04-27T06:58:29.153119+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"formulas":[{"formula":"query1 + query2","limit":{"count":10,"order":"asc"}}],"response_format":"scalar","queries":[{"aggregator":"sum","data_source":"metrics","name":"query1","query":"avg:system.cpu.system{*} by {datacenter}"},{"aggregator":"sum","data_source":"metrics","name":"query2","query":"avg:system.load.1{*} by {datacenter}"}]}],"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"view":{"focus":"WORLD"}},"id":5661738832269822},{"definition":{"requests":[{"formulas":[{"formula":"query1","limit":{"count":25,"order":"desc"}}],"response_format":"scalar","queries":[{"search":{"query":"abc"},"data_source":"rum","compute":{"aggregation":"count"},"name":"query1","indexes":["*"]}]}],"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"view":{"focus":"WORLD"}},"id":8505986293990458},{"definition":{"style":{"palette":"hostmap_blues","palette_flip":false},"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"my custom link"}],"time":{"live_span":"4h"},"requests":[{"formulas":[{"formula":"query1"}],"response_format":"scalar","queries":[{"data_source":"security_signals","compute":{"aggregation":"count"},"name":"query1","indexes":["*"]}]}],"type":"geomap","view":{"focus":"WORLD"}},"id":3442821028347668}],"layout_type":"ordered"}' ++ headers: ++ Cache-Control: ++ - no-cache ++ Connection: ++ - keep-alive ++ Content-Security-Policy: ++ - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report ++ Content-Type: ++ - application/json ++ Date: ++ - Tue, 27 Apr 2021 06:58:32 GMT ++ Pragma: ++ - no-cache ++ Strict-Transport-Security: ++ - max-age=15724800; ++ Vary: ++ - Accept-Encoding ++ X-Content-Type-Options: ++ - nosniff ++ X-Dd-Debug: ++ - tpRCH6w417YjBovRJ8VmtuXmNONVYiRp2c8d2AxjPdGBn8PCtgG4vAztrx3qUZAN ++ X-Dd-Version: ++ - "35.4397207" ++ X-Frame-Options: ++ - SAMEORIGIN ++ status: 200 OK ++ code: 200 ++ duration: "" ++- request: ++ body: "" ++ form: {} ++ headers: ++ Accept: ++ - application/json ++ Dd-Operation-Id: ++ - GetDashboard ++ User-Agent: ++ - terraform-provider-datadog/dev (terraform 1.16.0; terraform-cli 0.12.7-sdk) datadog-api-client-go/1.0.0-beta.19 (go go1.15.7; os darwin; arch amd64) ++ url: https://api.datadoghq.com/api/v1/dashboard/myq-qpv-k3m ++ method: GET ++ response: ++ body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"myq-qpv-k3m","title":"tf-TestAccDatadogDashboardGeomapFormula_import-local-1619506707","url":"/dashboard/myq-qpv-k3m/tf-testaccdatadogdashboardgeomapformulaimport-local-1619506707","created_at":"2021-04-27T06:58:29.153119+00:00","modified_at":"2021-04-27T06:58:29.153119+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"formulas":[{"formula":"query1 + query2","limit":{"count":10,"order":"asc"}}],"response_format":"scalar","queries":[{"aggregator":"sum","data_source":"metrics","name":"query1","query":"avg:system.cpu.system{*} by {datacenter}"},{"aggregator":"sum","data_source":"metrics","name":"query2","query":"avg:system.load.1{*} by {datacenter}"}]}],"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"view":{"focus":"WORLD"}},"id":5661738832269822},{"definition":{"requests":[{"formulas":[{"formula":"query1","limit":{"count":25,"order":"desc"}}],"response_format":"scalar","queries":[{"search":{"query":"abc"},"data_source":"rum","compute":{"aggregation":"count"},"name":"query1","indexes":["*"]}]}],"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"view":{"focus":"WORLD"}},"id":8505986293990458},{"definition":{"style":{"palette":"hostmap_blues","palette_flip":false},"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"my custom link"}],"time":{"live_span":"4h"},"requests":[{"formulas":[{"formula":"query1"}],"response_format":"scalar","queries":[{"data_source":"security_signals","compute":{"aggregation":"count"},"name":"query1","indexes":["*"]}]}],"type":"geomap","view":{"focus":"WORLD"}},"id":3442821028347668}],"layout_type":"ordered"}' ++ headers: ++ Cache-Control: ++ - no-cache ++ Connection: ++ - keep-alive ++ Content-Security-Policy: ++ - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report ++ Content-Type: ++ - application/json ++ Date: ++ - Tue, 27 Apr 2021 06:58:33 GMT ++ Pragma: ++ - no-cache ++ Strict-Transport-Security: ++ - max-age=15724800; ++ Vary: ++ - Accept-Encoding ++ X-Content-Type-Options: ++ - nosniff ++ X-Dd-Debug: ++ - dPySkcOzIZtKyMKDAAzuysY3gNGGj6RtYogGuSb76E8mPvoqzREyRp6lPYm91hQU ++ X-Dd-Version: ++ - "35.4397207" ++ X-Frame-Options: ++ - SAMEORIGIN ++ status: 200 OK ++ code: 200 ++ duration: "" ++- request: ++ body: "" ++ form: {} ++ headers: ++ Accept: ++ - application/json ++ Dd-Operation-Id: ++ - GetDashboard ++ User-Agent: ++ - terraform-provider-datadog/dev (terraform 1.16.0; terraform-cli 0.12.7-sdk) datadog-api-client-go/1.0.0-beta.19 (go go1.15.7; os darwin; arch amd64) ++ url: https://api.datadoghq.com/api/v1/dashboard/myq-qpv-k3m ++ method: GET ++ response: ++ body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"myq-qpv-k3m","title":"tf-TestAccDatadogDashboardGeomapFormula_import-local-1619506707","url":"/dashboard/myq-qpv-k3m/tf-testaccdatadogdashboardgeomapformulaimport-local-1619506707","created_at":"2021-04-27T06:58:29.153119+00:00","modified_at":"2021-04-27T06:58:29.153119+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"formulas":[{"formula":"query1 + query2","limit":{"count":10,"order":"asc"}}],"response_format":"scalar","queries":[{"aggregator":"sum","data_source":"metrics","name":"query1","query":"avg:system.cpu.system{*} by {datacenter}"},{"aggregator":"sum","data_source":"metrics","name":"query2","query":"avg:system.load.1{*} by {datacenter}"}]}],"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"view":{"focus":"WORLD"}},"id":5661738832269822},{"definition":{"requests":[{"formulas":[{"formula":"query1","limit":{"count":25,"order":"desc"}}],"response_format":"scalar","queries":[{"search":{"query":"abc"},"data_source":"rum","compute":{"aggregation":"count"},"name":"query1","indexes":["*"]}]}],"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"view":{"focus":"WORLD"}},"id":8505986293990458},{"definition":{"style":{"palette":"hostmap_blues","palette_flip":false},"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"my custom link"}],"time":{"live_span":"4h"},"requests":[{"formulas":[{"formula":"query1"}],"response_format":"scalar","queries":[{"data_source":"security_signals","compute":{"aggregation":"count"},"name":"query1","indexes":["*"]}]}],"type":"geomap","view":{"focus":"WORLD"}},"id":3442821028347668}],"layout_type":"ordered"}' ++ headers: ++ Cache-Control: ++ - no-cache ++ Connection: ++ - keep-alive ++ Content-Security-Policy: ++ - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report ++ Content-Type: ++ - application/json ++ Date: ++ - Tue, 27 Apr 2021 06:58:33 GMT ++ Pragma: ++ - no-cache ++ Strict-Transport-Security: ++ - max-age=15724800; ++ Vary: ++ - Accept-Encoding ++ X-Content-Type-Options: ++ - nosniff ++ X-Dd-Debug: ++ - l8RQo2maZqJf6GFThBbKNE6dvthz6njusVtau3dPXJWL2RLFoN81H+BLPB/1xgs1 ++ X-Dd-Version: ++ - "35.4397207" ++ X-Frame-Options: ++ - SAMEORIGIN ++ status: 200 OK ++ code: 200 ++ duration: "" ++- request: ++ body: "" ++ form: {} ++ headers: ++ Accept: ++ - application/json ++ Dd-Operation-Id: ++ - GetDashboard ++ User-Agent: ++ - terraform-provider-datadog/dev (terraform 1.16.0; terraform-cli 0.12.7-sdk) datadog-api-client-go/1.0.0-beta.19 (go go1.15.7; os darwin; arch amd64) ++ url: https://api.datadoghq.com/api/v1/dashboard/myq-qpv-k3m ++ method: GET ++ response: ++ body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"myq-qpv-k3m","title":"tf-TestAccDatadogDashboardGeomapFormula_import-local-1619506707","url":"/dashboard/myq-qpv-k3m/tf-testaccdatadogdashboardgeomapformulaimport-local-1619506707","created_at":"2021-04-27T06:58:29.153119+00:00","modified_at":"2021-04-27T06:58:29.153119+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"formulas":[{"formula":"query1 + query2","limit":{"count":10,"order":"asc"}}],"response_format":"scalar","queries":[{"aggregator":"sum","data_source":"metrics","name":"query1","query":"avg:system.cpu.system{*} by {datacenter}"},{"aggregator":"sum","data_source":"metrics","name":"query2","query":"avg:system.load.1{*} by {datacenter}"}]}],"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"view":{"focus":"WORLD"}},"id":5661738832269822},{"definition":{"requests":[{"formulas":[{"formula":"query1","limit":{"count":25,"order":"desc"}}],"response_format":"scalar","queries":[{"search":{"query":"abc"},"data_source":"rum","compute":{"aggregation":"count"},"name":"query1","indexes":["*"]}]}],"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"view":{"focus":"WORLD"}},"id":8505986293990458},{"definition":{"style":{"palette":"hostmap_blues","palette_flip":false},"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"my custom link"}],"time":{"live_span":"4h"},"requests":[{"formulas":[{"formula":"query1"}],"response_format":"scalar","queries":[{"data_source":"security_signals","compute":{"aggregation":"count"},"name":"query1","indexes":["*"]}]}],"type":"geomap","view":{"focus":"WORLD"}},"id":3442821028347668}],"layout_type":"ordered"}' ++ headers: ++ Cache-Control: ++ - no-cache ++ Connection: ++ - keep-alive ++ Content-Security-Policy: ++ - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report ++ Content-Type: ++ - application/json ++ Date: ++ - Tue, 27 Apr 2021 06:58:34 GMT ++ Pragma: ++ - no-cache ++ Strict-Transport-Security: ++ - max-age=15724800; ++ Vary: ++ - Accept-Encoding ++ X-Content-Type-Options: ++ - nosniff ++ X-Dd-Debug: ++ - nLnnBNvlCFDECRnZvzDb0z4sAO35G+IMidcAs8vrCKyjvsKWE8Yd9S3n6OjZ1qRN ++ X-Dd-Version: ++ - "35.4397207" ++ X-Frame-Options: ++ - SAMEORIGIN ++ status: 200 OK ++ code: 200 ++ duration: "" ++- request: ++ body: "" ++ form: {} ++ headers: ++ Accept: ++ - application/json ++ Dd-Operation-Id: ++ - GetDashboard ++ User-Agent: ++ - terraform-provider-datadog/dev (terraform 1.16.0; terraform-cli 0.12.7-sdk) datadog-api-client-go/1.0.0-beta.19 (go go1.15.7; os darwin; arch amd64) ++ url: https://api.datadoghq.com/api/v1/dashboard/myq-qpv-k3m ++ method: GET ++ response: ++ body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"myq-qpv-k3m","title":"tf-TestAccDatadogDashboardGeomapFormula_import-local-1619506707","url":"/dashboard/myq-qpv-k3m/tf-testaccdatadogdashboardgeomapformulaimport-local-1619506707","created_at":"2021-04-27T06:58:29.153119+00:00","modified_at":"2021-04-27T06:58:29.153119+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"formulas":[{"formula":"query1 + query2","limit":{"count":10,"order":"asc"}}],"response_format":"scalar","queries":[{"aggregator":"sum","data_source":"metrics","name":"query1","query":"avg:system.cpu.system{*} by {datacenter}"},{"aggregator":"sum","data_source":"metrics","name":"query2","query":"avg:system.load.1{*} by {datacenter}"}]}],"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"view":{"focus":"WORLD"}},"id":5661738832269822},{"definition":{"requests":[{"formulas":[{"formula":"query1","limit":{"count":25,"order":"desc"}}],"response_format":"scalar","queries":[{"search":{"query":"abc"},"data_source":"rum","compute":{"aggregation":"count"},"name":"query1","indexes":["*"]}]}],"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"view":{"focus":"WORLD"}},"id":8505986293990458},{"definition":{"style":{"palette":"hostmap_blues","palette_flip":false},"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"my custom link"}],"time":{"live_span":"4h"},"requests":[{"formulas":[{"formula":"query1"}],"response_format":"scalar","queries":[{"data_source":"security_signals","compute":{"aggregation":"count"},"name":"query1","indexes":["*"]}]}],"type":"geomap","view":{"focus":"WORLD"}},"id":3442821028347668}],"layout_type":"ordered"}' ++ headers: ++ Cache-Control: ++ - no-cache ++ Connection: ++ - keep-alive ++ Content-Security-Policy: ++ - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report ++ Content-Type: ++ - application/json ++ Date: ++ - Tue, 27 Apr 2021 06:58:34 GMT ++ Pragma: ++ - no-cache ++ Strict-Transport-Security: ++ - max-age=15724800; ++ Vary: ++ - Accept-Encoding ++ X-Content-Type-Options: ++ - nosniff ++ X-Dd-Debug: ++ - twvpGlmuom5y6A0pjGtXzTf554cmwJgTcCZ71fK4H/RDi+v5ehBK0zQiRcTJQG5C ++ X-Dd-Version: ++ - "35.4397207" ++ X-Frame-Options: ++ - SAMEORIGIN ++ status: 200 OK ++ code: 200 ++ duration: "" ++- request: ++ body: "" ++ form: {} ++ headers: ++ Accept: ++ - application/json ++ Dd-Operation-Id: ++ - DeleteDashboard ++ User-Agent: ++ - terraform-provider-datadog/dev (terraform 1.16.0; terraform-cli 0.12.7-sdk) datadog-api-client-go/1.0.0-beta.19 (go go1.15.7; os darwin; arch amd64) ++ url: https://api.datadoghq.com/api/v1/dashboard/myq-qpv-k3m ++ method: DELETE ++ response: ++ body: '{"deleted_dashboard_id":"myq-qpv-k3m"}' ++ headers: ++ Cache-Control: ++ - no-cache ++ Connection: ++ - keep-alive ++ Content-Security-Policy: ++ - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report ++ Content-Type: ++ - application/json ++ Date: ++ - Tue, 27 Apr 2021 06:58:34 GMT ++ Pragma: ++ - no-cache ++ Strict-Transport-Security: ++ - max-age=15724800; ++ Vary: ++ - Accept-Encoding ++ X-Content-Type-Options: ++ - nosniff ++ X-Dd-Debug: ++ - 5gfwVh/5HZ+AnGd/Di93w3NEWC6KMHT9KzmHEiRJmNdOjBtAsbOcgVFyqEChw71h ++ X-Dd-Version: ++ - "35.4397207" ++ X-Frame-Options: ++ - SAMEORIGIN ++ status: 200 OK ++ code: 200 ++ duration: "" ++- request: ++ body: "" ++ form: {} ++ headers: ++ Accept: ++ - application/json ++ Dd-Operation-Id: ++ - GetDashboard ++ User-Agent: ++ - terraform-provider-datadog/dev (terraform 1.16.0; terraform-cli 0.12.7-sdk) datadog-api-client-go/1.0.0-beta.19 (go go1.15.7; os darwin; arch amd64) ++ url: https://api.datadoghq.com/api/v1/dashboard/myq-qpv-k3m ++ method: GET ++ response: ++ body: '{"errors": ["Dashboard with ID myq-qpv-k3m not found"]}' ++ headers: ++ Cache-Control: ++ - no-cache ++ Connection: ++ - keep-alive ++ Content-Security-Policy: ++ - frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report ++ Content-Type: ++ - application/json ++ Date: ++ - Tue, 27 Apr 2021 06:58:35 GMT ++ Pragma: ++ - no-cache ++ Strict-Transport-Security: ++ - max-age=15724800; ++ Vary: ++ - Accept-Encoding ++ X-Content-Type-Options: ++ - nosniff ++ X-Dd-Version: ++ - "35.4397207" ++ X-Frame-Options: ++ - SAMEORIGIN ++ status: 404 Not Found ++ code: 404 ++ duration: "" +diff --git a/datadog/tests/cassettes/TestAccDatadogDashboardGeomap_import.freeze b/datadog/tests/cassettes/TestAccDatadogDashboardGeomap_import.freeze +index 44e69b7998..c9fd84193a 100644 +--- a/datadog/tests/cassettes/TestAccDatadogDashboardGeomap_import.freeze ++++ b/datadog/tests/cassettes/TestAccDatadogDashboardGeomap_import.freeze +@@ -1 +1 @@ +-2021-03-01T13:47:20.127779-05:00 +\ No newline at end of file ++2021-04-27T08:58:27.619914+02:00 +\ No newline at end of file +diff --git a/datadog/tests/cassettes/TestAccDatadogDashboardGeomap_import.yaml b/datadog/tests/cassettes/TestAccDatadogDashboardGeomap_import.yaml +index f2527de257..b9c3cd1d8f 100644 +--- a/datadog/tests/cassettes/TestAccDatadogDashboardGeomap_import.yaml ++++ b/datadog/tests/cassettes/TestAccDatadogDashboardGeomap_import.yaml +@@ -3,7 +3,7 @@ version: 1 + interactions: + - request: + body: | +- {"description":"Created using the Datadog provider in Terraform","id":"","is_read_only":true,"layout_type":"ordered","notify_list":[],"template_variable_presets":[],"template_variables":[],"title":"tf-TestAccDatadogDashboardGeomap_import-local-1614624440","widgets":[{"definition":{"requests":[{"q":"avg:system.load.1{*}"}],"style":{"palette":"hostmap_blues","palette_flip":false},"type":"geomap","view":{"focus":"WORLD"}}},{"definition":{"custom_links":[{"label":"Test Custom Link label","link":"https://app.datadoghq.com/dashboard/lists"}],"requests":[{"log_query":{"compute":{"aggregation":"count"},"index":"*","search":{"query":""}}}],"style":{"palette":"hostmap_blues","palette_flip":false},"time":{"live_span":"1h"},"type":"geomap","view":{"focus":"WORLD"}}},{"definition":{"requests":[{"rum_query":{"compute":{"aggregation":"count"},"index":"*","search":{"query":""}}}],"style":{"palette":"hostmap_blues","palette_flip":false},"time":{"live_span":"4h"},"type":"geomap","view":{"focus":"WORLD"}}}]} ++ {"description":"Created using the Datadog provider in Terraform","id":"","is_read_only":true,"layout_type":"ordered","notify_list":[],"template_variable_presets":[],"template_variables":[],"title":"tf-TestAccDatadogDashboardGeomap_import-local-1619506707","widgets":[{"definition":{"requests":[{"q":"avg:system.load.1{*}"}],"style":{"palette":"hostmap_blues","palette_flip":false},"type":"geomap","view":{"focus":"WORLD"}}},{"definition":{"custom_links":[{"label":"Test Custom Link label","link":"https://app.datadoghq.com/dashboard/lists"}],"requests":[{"log_query":{"compute":{"aggregation":"count"},"index":"*","search":{"query":""}}}],"style":{"palette":"hostmap_blues","palette_flip":false},"time":{"live_span":"1h"},"type":"geomap","view":{"focus":"WORLD"}}},{"definition":{"requests":[{"rum_query":{"compute":{"aggregation":"count"},"index":"*","search":{"query":""}}}],"style":{"palette":"hostmap_blues","palette_flip":false},"time":{"live_span":"4h"},"type":"geomap","view":{"focus":"WORLD"}}}]} + form: {} + headers: + Accept: +@@ -13,11 +13,11 @@ interactions: + Dd-Operation-Id: + - CreateDashboard + User-Agent: +- - terraform-provider-datadog/dev (terraform 1.16.0; terraform-cli 0.12.7-sdk) datadog-api-client-go/1.0.0-beta.16+dev (go go1.15.6; os darwin; arch amd64) ++ - terraform-provider-datadog/dev (terraform 1.16.0; terraform-cli 0.12.7-sdk) datadog-api-client-go/1.0.0-beta.19 (go go1.15.7; os darwin; arch amd64) + url: https://api.datadoghq.com/api/v1/dashboard + method: POST + response: +- body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"i7z-h73-btb","title":"tf-TestAccDatadogDashboardGeomap_import-local-1614624440","url":"/dashboard/i7z-h73-btb/tf-testaccdatadogdashboardgeomapimport-local-1614624440","created_at":"2021-03-01T18:47:21.298453+00:00","modified_at":"2021-03-01T18:47:21.298453+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"q":"avg:system.load.1{*}"}],"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"view":{"focus":"WORLD"}},"id":5257848164284472},{"definition":{"style":{"palette":"hostmap_blues","palette_flip":false},"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"time":{"live_span":"1h"},"requests":[{"log_query":{"index":"*","search":{"query":""},"compute":{"aggregation":"count"}}}],"type":"geomap","view":{"focus":"WORLD"}},"id":4080615887771550},{"definition":{"requests":[{"rum_query":{"index":"*","search":{"query":""},"compute":{"aggregation":"count"}}}],"view":{"focus":"WORLD"},"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"time":{"live_span":"4h"}},"id":6973049843836176}],"layout_type":"ordered"}' ++ body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"r87-rkv-9zm","title":"tf-TestAccDatadogDashboardGeomap_import-local-1619506707","url":"/dashboard/r87-rkv-9zm/tf-testaccdatadogdashboardgeomapimport-local-1619506707","created_at":"2021-04-27T06:58:29.156112+00:00","modified_at":"2021-04-27T06:58:29.156112+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"q":"avg:system.load.1{*}"}],"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"view":{"focus":"WORLD"}},"id":4639613529631183},{"definition":{"style":{"palette":"hostmap_blues","palette_flip":false},"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"time":{"live_span":"1h"},"requests":[{"log_query":{"index":"*","search":{"query":""},"compute":{"aggregation":"count"}}}],"type":"geomap","view":{"focus":"WORLD"}},"id":658528929802208},{"definition":{"requests":[{"rum_query":{"index":"*","search":{"query":""},"compute":{"aggregation":"count"}}}],"view":{"focus":"WORLD"},"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"time":{"live_span":"4h"}},"id":8526536237626829}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache +@@ -28,7 +28,7 @@ interactions: + Content-Type: + - application/json + Date: +- - Mon, 01 Mar 2021 18:47:24 GMT ++ - Tue, 27 Apr 2021 06:58:32 GMT + Pragma: + - no-cache + Strict-Transport-Security: +@@ -38,9 +38,9 @@ interactions: + X-Content-Type-Options: + - nosniff + X-Dd-Debug: +- - S1wfaMZOKGT/IoMw6fqAwAwGWo2vQ44sjF3YzuETnQfxZO2T5eJbs0aX3UKb9Dwu ++ - tpRCH6w417YjBovRJ8VmtuXmNONVYiRp2c8d2AxjPdGBn8PCtgG4vAztrx3qUZAN + X-Dd-Version: +- - "35.4004047" ++ - "35.4397207" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK +@@ -55,11 +55,11 @@ interactions: + Dd-Operation-Id: + - GetDashboard + User-Agent: +- - terraform-provider-datadog/dev (terraform 1.16.0; terraform-cli 0.12.7-sdk) datadog-api-client-go/1.0.0-beta.16+dev (go go1.15.6; os darwin; arch amd64) +- url: https://api.datadoghq.com/api/v1/dashboard/i7z-h73-btb ++ - terraform-provider-datadog/dev (terraform 1.16.0; terraform-cli 0.12.7-sdk) datadog-api-client-go/1.0.0-beta.19 (go go1.15.7; os darwin; arch amd64) ++ url: https://api.datadoghq.com/api/v1/dashboard/r87-rkv-9zm + method: GET + response: +- body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"i7z-h73-btb","title":"tf-TestAccDatadogDashboardGeomap_import-local-1614624440","url":"/dashboard/i7z-h73-btb/tf-testaccdatadogdashboardgeomapimport-local-1614624440","created_at":"2021-03-01T18:47:21.298453+00:00","modified_at":"2021-03-01T18:47:21.298453+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"q":"avg:system.load.1{*}"}],"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"view":{"focus":"WORLD"}},"id":5257848164284472},{"definition":{"style":{"palette":"hostmap_blues","palette_flip":false},"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"time":{"live_span":"1h"},"requests":[{"log_query":{"index":"*","search":{"query":""},"compute":{"aggregation":"count"}}}],"type":"geomap","view":{"focus":"WORLD"}},"id":4080615887771550},{"definition":{"requests":[{"rum_query":{"index":"*","search":{"query":""},"compute":{"aggregation":"count"}}}],"view":{"focus":"WORLD"},"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"time":{"live_span":"4h"}},"id":6973049843836176}],"layout_type":"ordered"}' ++ body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"r87-rkv-9zm","title":"tf-TestAccDatadogDashboardGeomap_import-local-1619506707","url":"/dashboard/r87-rkv-9zm/tf-testaccdatadogdashboardgeomapimport-local-1619506707","created_at":"2021-04-27T06:58:29.156112+00:00","modified_at":"2021-04-27T06:58:29.156112+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"q":"avg:system.load.1{*}"}],"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"view":{"focus":"WORLD"}},"id":4639613529631183},{"definition":{"style":{"palette":"hostmap_blues","palette_flip":false},"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"time":{"live_span":"1h"},"requests":[{"log_query":{"index":"*","search":{"query":""},"compute":{"aggregation":"count"}}}],"type":"geomap","view":{"focus":"WORLD"}},"id":658528929802208},{"definition":{"requests":[{"rum_query":{"index":"*","search":{"query":""},"compute":{"aggregation":"count"}}}],"view":{"focus":"WORLD"},"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"time":{"live_span":"4h"}},"id":8526536237626829}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache +@@ -70,7 +70,7 @@ interactions: + Content-Type: + - application/json + Date: +- - Mon, 01 Mar 2021 18:47:24 GMT ++ - Tue, 27 Apr 2021 06:58:32 GMT + Pragma: + - no-cache + Strict-Transport-Security: +@@ -80,9 +80,9 @@ interactions: + X-Content-Type-Options: + - nosniff + X-Dd-Debug: +- - l4HFlaRP3QwYSqoGKhzbYfv7zgkK63HIRR7YkyVYZspq0lGjjTBwoK8V/alf+XYt ++ - l8RQo2maZqJf6GFThBbKNE6dvthz6njusVtau3dPXJWL2RLFoN81H+BLPB/1xgs1 + X-Dd-Version: +- - "35.4004047" ++ - "35.4397207" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK +@@ -97,11 +97,11 @@ interactions: + Dd-Operation-Id: + - GetDashboard + User-Agent: +- - terraform-provider-datadog/dev (terraform 1.16.0; terraform-cli 0.12.7-sdk) datadog-api-client-go/1.0.0-beta.16+dev (go go1.15.6; os darwin; arch amd64) +- url: https://api.datadoghq.com/api/v1/dashboard/i7z-h73-btb ++ - terraform-provider-datadog/dev (terraform 1.16.0; terraform-cli 0.12.7-sdk) datadog-api-client-go/1.0.0-beta.19 (go go1.15.7; os darwin; arch amd64) ++ url: https://api.datadoghq.com/api/v1/dashboard/r87-rkv-9zm + method: GET + response: +- body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"i7z-h73-btb","title":"tf-TestAccDatadogDashboardGeomap_import-local-1614624440","url":"/dashboard/i7z-h73-btb/tf-testaccdatadogdashboardgeomapimport-local-1614624440","created_at":"2021-03-01T18:47:21.298453+00:00","modified_at":"2021-03-01T18:47:21.298453+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"q":"avg:system.load.1{*}"}],"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"view":{"focus":"WORLD"}},"id":5257848164284472},{"definition":{"style":{"palette":"hostmap_blues","palette_flip":false},"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"time":{"live_span":"1h"},"requests":[{"log_query":{"index":"*","search":{"query":""},"compute":{"aggregation":"count"}}}],"type":"geomap","view":{"focus":"WORLD"}},"id":4080615887771550},{"definition":{"requests":[{"rum_query":{"index":"*","search":{"query":""},"compute":{"aggregation":"count"}}}],"view":{"focus":"WORLD"},"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"time":{"live_span":"4h"}},"id":6973049843836176}],"layout_type":"ordered"}' ++ body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"r87-rkv-9zm","title":"tf-TestAccDatadogDashboardGeomap_import-local-1619506707","url":"/dashboard/r87-rkv-9zm/tf-testaccdatadogdashboardgeomapimport-local-1619506707","created_at":"2021-04-27T06:58:29.156112+00:00","modified_at":"2021-04-27T06:58:29.156112+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"q":"avg:system.load.1{*}"}],"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"view":{"focus":"WORLD"}},"id":4639613529631183},{"definition":{"style":{"palette":"hostmap_blues","palette_flip":false},"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"time":{"live_span":"1h"},"requests":[{"log_query":{"index":"*","search":{"query":""},"compute":{"aggregation":"count"}}}],"type":"geomap","view":{"focus":"WORLD"}},"id":658528929802208},{"definition":{"requests":[{"rum_query":{"index":"*","search":{"query":""},"compute":{"aggregation":"count"}}}],"view":{"focus":"WORLD"},"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"time":{"live_span":"4h"}},"id":8526536237626829}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache +@@ -112,7 +112,7 @@ interactions: + Content-Type: + - application/json + Date: +- - Mon, 01 Mar 2021 18:47:25 GMT ++ - Tue, 27 Apr 2021 06:58:33 GMT + Pragma: + - no-cache + Strict-Transport-Security: +@@ -122,9 +122,9 @@ interactions: + X-Content-Type-Options: + - nosniff + X-Dd-Debug: +- - twvpGlmuom5y6A0pjGtXzTf554cmwJgTcCZ71fK4H/RDi+v5ehBK0zQiRcTJQG5C ++ - 25u1gDlL724DHllbjFT4BhOLorBTilh+aah2uWAUEjFC/+rjczJdiyWrV/HwLwe/ + X-Dd-Version: +- - "35.4004047" ++ - "35.4397207" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK +@@ -139,11 +139,11 @@ interactions: + Dd-Operation-Id: + - GetDashboard + User-Agent: +- - terraform-provider-datadog/dev (terraform 1.16.0; terraform-cli 0.12.7-sdk) datadog-api-client-go/1.0.0-beta.16+dev (go go1.15.6; os darwin; arch amd64) +- url: https://api.datadoghq.com/api/v1/dashboard/i7z-h73-btb ++ - terraform-provider-datadog/dev (terraform 1.16.0; terraform-cli 0.12.7-sdk) datadog-api-client-go/1.0.0-beta.19 (go go1.15.7; os darwin; arch amd64) ++ url: https://api.datadoghq.com/api/v1/dashboard/r87-rkv-9zm + method: GET + response: +- body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"i7z-h73-btb","title":"tf-TestAccDatadogDashboardGeomap_import-local-1614624440","url":"/dashboard/i7z-h73-btb/tf-testaccdatadogdashboardgeomapimport-local-1614624440","created_at":"2021-03-01T18:47:21.298453+00:00","modified_at":"2021-03-01T18:47:21.298453+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"q":"avg:system.load.1{*}"}],"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"view":{"focus":"WORLD"}},"id":5257848164284472},{"definition":{"style":{"palette":"hostmap_blues","palette_flip":false},"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"time":{"live_span":"1h"},"requests":[{"log_query":{"index":"*","search":{"query":""},"compute":{"aggregation":"count"}}}],"type":"geomap","view":{"focus":"WORLD"}},"id":4080615887771550},{"definition":{"requests":[{"rum_query":{"index":"*","search":{"query":""},"compute":{"aggregation":"count"}}}],"view":{"focus":"WORLD"},"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"time":{"live_span":"4h"}},"id":6973049843836176}],"layout_type":"ordered"}' ++ body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"r87-rkv-9zm","title":"tf-TestAccDatadogDashboardGeomap_import-local-1619506707","url":"/dashboard/r87-rkv-9zm/tf-testaccdatadogdashboardgeomapimport-local-1619506707","created_at":"2021-04-27T06:58:29.156112+00:00","modified_at":"2021-04-27T06:58:29.156112+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"q":"avg:system.load.1{*}"}],"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"view":{"focus":"WORLD"}},"id":4639613529631183},{"definition":{"style":{"palette":"hostmap_blues","palette_flip":false},"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"time":{"live_span":"1h"},"requests":[{"log_query":{"index":"*","search":{"query":""},"compute":{"aggregation":"count"}}}],"type":"geomap","view":{"focus":"WORLD"}},"id":658528929802208},{"definition":{"requests":[{"rum_query":{"index":"*","search":{"query":""},"compute":{"aggregation":"count"}}}],"view":{"focus":"WORLD"},"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"time":{"live_span":"4h"}},"id":8526536237626829}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache +@@ -154,7 +154,7 @@ interactions: + Content-Type: + - application/json + Date: +- - Mon, 01 Mar 2021 18:47:25 GMT ++ - Tue, 27 Apr 2021 06:58:33 GMT + Pragma: + - no-cache + Strict-Transport-Security: +@@ -164,9 +164,9 @@ interactions: + X-Content-Type-Options: + - nosniff + X-Dd-Debug: +- - fIO2C4qGDheGHy4YbS+r3a3CXbh4cbRo7roILOimQyiHGjQdOat0cIpWCkupM1uX ++ - Wjq53IVIwnB4SiR238oOYgHFMq/ZYP0LQ/Dv8C2fFLBwTje/dWJHu6pI6vIOK1zG + X-Dd-Version: +- - "35.4004047" ++ - "35.4397207" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK +@@ -181,11 +181,11 @@ interactions: + Dd-Operation-Id: + - GetDashboard + User-Agent: +- - terraform-provider-datadog/dev (terraform 1.16.0; terraform-cli 0.12.7-sdk) datadog-api-client-go/1.0.0-beta.16+dev (go go1.15.6; os darwin; arch amd64) +- url: https://api.datadoghq.com/api/v1/dashboard/i7z-h73-btb ++ - terraform-provider-datadog/dev (terraform 1.16.0; terraform-cli 0.12.7-sdk) datadog-api-client-go/1.0.0-beta.19 (go go1.15.7; os darwin; arch amd64) ++ url: https://api.datadoghq.com/api/v1/dashboard/r87-rkv-9zm + method: GET + response: +- body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"i7z-h73-btb","title":"tf-TestAccDatadogDashboardGeomap_import-local-1614624440","url":"/dashboard/i7z-h73-btb/tf-testaccdatadogdashboardgeomapimport-local-1614624440","created_at":"2021-03-01T18:47:21.298453+00:00","modified_at":"2021-03-01T18:47:21.298453+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"q":"avg:system.load.1{*}"}],"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"view":{"focus":"WORLD"}},"id":5257848164284472},{"definition":{"style":{"palette":"hostmap_blues","palette_flip":false},"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"time":{"live_span":"1h"},"requests":[{"log_query":{"index":"*","search":{"query":""},"compute":{"aggregation":"count"}}}],"type":"geomap","view":{"focus":"WORLD"}},"id":4080615887771550},{"definition":{"requests":[{"rum_query":{"index":"*","search":{"query":""},"compute":{"aggregation":"count"}}}],"view":{"focus":"WORLD"},"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"time":{"live_span":"4h"}},"id":6973049843836176}],"layout_type":"ordered"}' ++ body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"r87-rkv-9zm","title":"tf-TestAccDatadogDashboardGeomap_import-local-1619506707","url":"/dashboard/r87-rkv-9zm/tf-testaccdatadogdashboardgeomapimport-local-1619506707","created_at":"2021-04-27T06:58:29.156112+00:00","modified_at":"2021-04-27T06:58:29.156112+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"q":"avg:system.load.1{*}"}],"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"view":{"focus":"WORLD"}},"id":4639613529631183},{"definition":{"style":{"palette":"hostmap_blues","palette_flip":false},"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"time":{"live_span":"1h"},"requests":[{"log_query":{"index":"*","search":{"query":""},"compute":{"aggregation":"count"}}}],"type":"geomap","view":{"focus":"WORLD"}},"id":658528929802208},{"definition":{"requests":[{"rum_query":{"index":"*","search":{"query":""},"compute":{"aggregation":"count"}}}],"view":{"focus":"WORLD"},"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"time":{"live_span":"4h"}},"id":8526536237626829}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache +@@ -196,7 +196,7 @@ interactions: + Content-Type: + - application/json + Date: +- - Mon, 01 Mar 2021 18:47:25 GMT ++ - Tue, 27 Apr 2021 06:58:33 GMT + Pragma: + - no-cache + Strict-Transport-Security: +@@ -206,9 +206,9 @@ interactions: + X-Content-Type-Options: + - nosniff + X-Dd-Debug: +- - nLnnBNvlCFDECRnZvzDb0z4sAO35G+IMidcAs8vrCKyjvsKWE8Yd9S3n6OjZ1qRN ++ - /L+SFFO+m1pPY+hRCpk5325fvfrNl0KmiquUNJolBN/5hu3HIwflqjZSbJ6NxDFG + X-Dd-Version: +- - "35.4004047" ++ - "35.4397207" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK +@@ -223,11 +223,11 @@ interactions: + Dd-Operation-Id: + - GetDashboard + User-Agent: +- - terraform-provider-datadog/dev (terraform 1.16.0; terraform-cli 0.12.7-sdk) datadog-api-client-go/1.0.0-beta.16+dev (go go1.15.6; os darwin; arch amd64) +- url: https://api.datadoghq.com/api/v1/dashboard/i7z-h73-btb ++ - terraform-provider-datadog/dev (terraform 1.16.0; terraform-cli 0.12.7-sdk) datadog-api-client-go/1.0.0-beta.19 (go go1.15.7; os darwin; arch amd64) ++ url: https://api.datadoghq.com/api/v1/dashboard/r87-rkv-9zm + method: GET + response: +- body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"i7z-h73-btb","title":"tf-TestAccDatadogDashboardGeomap_import-local-1614624440","url":"/dashboard/i7z-h73-btb/tf-testaccdatadogdashboardgeomapimport-local-1614624440","created_at":"2021-03-01T18:47:21.298453+00:00","modified_at":"2021-03-01T18:47:21.298453+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"q":"avg:system.load.1{*}"}],"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"view":{"focus":"WORLD"}},"id":5257848164284472},{"definition":{"style":{"palette":"hostmap_blues","palette_flip":false},"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"time":{"live_span":"1h"},"requests":[{"log_query":{"index":"*","search":{"query":""},"compute":{"aggregation":"count"}}}],"type":"geomap","view":{"focus":"WORLD"}},"id":4080615887771550},{"definition":{"requests":[{"rum_query":{"index":"*","search":{"query":""},"compute":{"aggregation":"count"}}}],"view":{"focus":"WORLD"},"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"time":{"live_span":"4h"}},"id":6973049843836176}],"layout_type":"ordered"}' ++ body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"r87-rkv-9zm","title":"tf-TestAccDatadogDashboardGeomap_import-local-1619506707","url":"/dashboard/r87-rkv-9zm/tf-testaccdatadogdashboardgeomapimport-local-1619506707","created_at":"2021-04-27T06:58:29.156112+00:00","modified_at":"2021-04-27T06:58:29.156112+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"q":"avg:system.load.1{*}"}],"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"view":{"focus":"WORLD"}},"id":4639613529631183},{"definition":{"style":{"palette":"hostmap_blues","palette_flip":false},"custom_links":[{"link":"https://app.datadoghq.com/dashboard/lists","label":"Test Custom Link label"}],"time":{"live_span":"1h"},"requests":[{"log_query":{"index":"*","search":{"query":""},"compute":{"aggregation":"count"}}}],"type":"geomap","view":{"focus":"WORLD"}},"id":658528929802208},{"definition":{"requests":[{"rum_query":{"index":"*","search":{"query":""},"compute":{"aggregation":"count"}}}],"view":{"focus":"WORLD"},"type":"geomap","style":{"palette":"hostmap_blues","palette_flip":false},"time":{"live_span":"4h"}},"id":8526536237626829}],"layout_type":"ordered"}' + headers: + Cache-Control: + - no-cache +@@ -238,7 +238,7 @@ interactions: + Content-Type: + - application/json + Date: +- - Mon, 01 Mar 2021 18:47:25 GMT ++ - Tue, 27 Apr 2021 06:58:34 GMT + Pragma: + - no-cache + Strict-Transport-Security: +@@ -248,9 +248,9 @@ interactions: + X-Content-Type-Options: + - nosniff + X-Dd-Debug: +- - 25u1gDlL724DHllbjFT4BhOLorBTilh+aah2uWAUEjFC/+rjczJdiyWrV/HwLwe/ ++ - F5gm0Rce1/Abr9/0Fw8HAqWfiz0FdiH8er/AXnN6lOn3L6KyGgbsLCwgPlob1No8 + X-Dd-Version: +- - "35.4004047" ++ - "35.4397207" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK +@@ -265,11 +265,11 @@ interactions: + Dd-Operation-Id: + - DeleteDashboard + User-Agent: +- - terraform-provider-datadog/dev (terraform 1.16.0; terraform-cli 0.12.7-sdk) datadog-api-client-go/1.0.0-beta.16+dev (go go1.15.6; os darwin; arch amd64) +- url: https://api.datadoghq.com/api/v1/dashboard/i7z-h73-btb ++ - terraform-provider-datadog/dev (terraform 1.16.0; terraform-cli 0.12.7-sdk) datadog-api-client-go/1.0.0-beta.19 (go go1.15.7; os darwin; arch amd64) ++ url: https://api.datadoghq.com/api/v1/dashboard/r87-rkv-9zm + method: DELETE + response: +- body: '{"deleted_dashboard_id":"i7z-h73-btb"}' ++ body: '{"deleted_dashboard_id":"r87-rkv-9zm"}' + headers: + Cache-Control: + - no-cache +@@ -280,7 +280,7 @@ interactions: + Content-Type: + - application/json + Date: +- - Mon, 01 Mar 2021 18:47:26 GMT ++ - Tue, 27 Apr 2021 06:58:34 GMT + Pragma: + - no-cache + Strict-Transport-Security: +@@ -290,9 +290,9 @@ interactions: + X-Content-Type-Options: + - nosniff + X-Dd-Debug: +- - F5gm0Rce1/Abr9/0Fw8HAqWfiz0FdiH8er/AXnN6lOn3L6KyGgbsLCwgPlob1No8 ++ - 2328yjLSqI4XmR1pVqrPRR/SFcQsbafjEpPmZx7/3PfxUK1nJQQsX+wrMelyVyj+ + X-Dd-Version: +- - "35.4004047" ++ - "35.4397207" + X-Frame-Options: + - SAMEORIGIN + status: 200 OK +@@ -307,11 +307,11 @@ interactions: + Dd-Operation-Id: + - GetDashboard + User-Agent: +- - terraform-provider-datadog/dev (terraform 1.16.0; terraform-cli 0.12.7-sdk) datadog-api-client-go/1.0.0-beta.16+dev (go go1.15.6; os darwin; arch amd64) +- url: https://api.datadoghq.com/api/v1/dashboard/i7z-h73-btb ++ - terraform-provider-datadog/dev (terraform 1.16.0; terraform-cli 0.12.7-sdk) datadog-api-client-go/1.0.0-beta.19 (go go1.15.7; os darwin; arch amd64) ++ url: https://api.datadoghq.com/api/v1/dashboard/r87-rkv-9zm + method: GET + response: +- body: '{"errors": ["Dashboard with ID i7z-h73-btb not found"]}' ++ body: '{"errors": ["Dashboard with ID r87-rkv-9zm not found"]}' + headers: + Cache-Control: + - no-cache +@@ -322,7 +322,7 @@ interactions: + Content-Type: + - application/json + Date: +- - Mon, 01 Mar 2021 18:47:26 GMT ++ - Tue, 27 Apr 2021 06:58:34 GMT + Pragma: + - no-cache + Strict-Transport-Security: +@@ -332,7 +332,7 @@ interactions: + X-Content-Type-Options: + - nosniff + X-Dd-Version: +- - "35.4004047" ++ - "35.4397207" + X-Frame-Options: + - SAMEORIGIN + status: 404 Not Found +diff --git a/datadog/tests/resource_datadog_dashboard_geomap_test.go b/datadog/tests/resource_datadog_dashboard_geomap_test.go +index b3038bfd7a..24452cfea6 100644 +--- a/datadog/tests/resource_datadog_dashboard_geomap_test.go ++++ b/datadog/tests/resource_datadog_dashboard_geomap_test.go +@@ -72,6 +72,115 @@ resource "datadog_dashboard" "geomap_dashboard" { + } + ` + ++const datadogDashboardGeomapFormulaConfig = ` ++resource "datadog_dashboard" "geomap_dashboard" { ++ title = "{{uniq}}" ++ description = "Created using the Datadog provider in Terraform" ++ layout_type = "ordered" ++ is_read_only = "true" ++ widget { ++ geomap_definition { ++ request { ++ formula { ++ formula_expression = "query1 + query2" ++ limit { ++ count = 10 ++ order = "asc" ++ } ++ } ++ query { ++ metric_query { ++ data_source = "metrics" ++ query = "avg:system.cpu.system{*} by {datacenter}" ++ name = "query1" ++ aggregator = "sum" ++ } ++ } ++ query { ++ metric_query { ++ data_source = "metrics" ++ query = "avg:system.load.1{*} by {datacenter}" ++ name = "query2" ++ aggregator = "sum" ++ } ++ } ++ } ++ view { ++ focus = "WORLD" ++ } ++ style { ++ palette = "hostmap_blues" ++ palette_flip = false ++ } ++ } ++ } ++ widget { ++ geomap_definition { ++ request { ++ formula { ++ formula_expression = "query1" ++ limit { ++ count = 25 ++ order = "desc" ++ } ++ } ++ query { ++ event_query { ++ data_source = "rum" ++ indexes = ["*"] ++ name = "query1" ++ compute { ++ aggregation = "count" ++ } ++ search { ++ query = "abc" ++ } ++ } ++ } ++ } ++ view { ++ focus = "WORLD" ++ } ++ style { ++ palette = "hostmap_blues" ++ palette_flip = false ++ } ++ } ++ } ++ widget { ++ geomap_definition { ++ request { ++ formula { ++ formula_expression = "query1" ++ } ++ query { ++ event_query { ++ data_source = "security_signals" ++ name = "query1" ++ indexes = ["*"] ++ compute { ++ aggregation = "count" ++ } ++ } ++ } ++ } ++ style { ++ palette = "hostmap_blues" ++ palette_flip = false ++ } ++ view { ++ focus = "WORLD" ++ } ++ live_span = "4h" ++ custom_link { ++ label = "my custom link" ++ link = "https://app.datadoghq.com/dashboard/lists" ++ } ++ } ++ } ++} ++` ++ + var datadogDashboardGeomapAsserts = []string{ + "description = Created using the Datadog provider in Terraform", + "layout_type = ordered", +@@ -98,6 +207,48 @@ var datadogDashboardGeomapAsserts = []string{ + "widget.2.geomap_definition.0.view.0.focus = WORLD", + } + ++var datadogDashboardGeomapFormulaAsserts = []string{ ++ "title = {{uniq}}", ++ "is_read_only = true", ++ "layout_type = ordered", ++ "description = Created using the Datadog provider in Terraform", ++ "widget.0.geomap_definition.0.request.0.formula.0.formula_expression = query1 + query2", ++ "widget.0.geomap_definition.0.request.0.formula.0.limit.0.count = 10", ++ "widget.0.geomap_definition.0.request.0.formula.0.limit.0.order = asc", ++ "widget.0.geomap_definition.0.request.0.query.0.metric_query.0.data_source = metrics", ++ "widget.0.geomap_definition.0.request.0.query.0.metric_query.0.query = avg:system.cpu.system{*} by {datacenter}", ++ "widget.0.geomap_definition.0.request.0.query.0.metric_query.0.name = query1", ++ "widget.0.geomap_definition.0.request.0.query.0.metric_query.0.aggregator = sum", ++ "widget.0.geomap_definition.0.request.0.query.1.metric_query.0.data_source = metrics", ++ "widget.0.geomap_definition.0.request.0.query.1.metric_query.0.query = avg:system.load.1{*} by {datacenter}", ++ "widget.0.geomap_definition.0.request.0.query.1.metric_query.0.name = query2", ++ "widget.0.geomap_definition.0.request.0.query.1.metric_query.0.aggregator = sum", ++ "widget.0.geomap_definition.0.view.0.focus = WORLD", ++ "widget.0.geomap_definition.0.style.0.palette = hostmap_blues", ++ "widget.0.geomap_definition.0.style.0.palette_flip = false", ++ "widget.1.geomap_definition.0.request.0.formula.0.formula_expression = query1", ++ "widget.1.geomap_definition.0.request.0.formula.0.limit.0.count = 25", ++ "widget.1.geomap_definition.0.request.0.formula.0.limit.0.order = desc", ++ "widget.1.geomap_definition.0.request.0.query.0.event_query.0.data_source = rum", ++ "widget.1.geomap_definition.0.request.0.query.0.event_query.0.indexes.# = 1", ++ "widget.1.geomap_definition.0.request.0.query.0.event_query.0.indexes.0 = *", ++ "widget.1.geomap_definition.0.request.0.query.0.event_query.0.name = query1", ++ "widget.1.geomap_definition.0.request.0.query.0.event_query.0.search.0.query = abc", ++ "widget.1.geomap_definition.0.request.0.query.0.event_query.0.compute.0.aggregation = count", ++ "widget.1.geomap_definition.0.view.0.focus = WORLD", ++ "widget.1.geomap_definition.0.style.0.palette_flip = false", ++ "widget.1.geomap_definition.0.view.0.focus = WORLD", ++ "widget.2.geomap_definition.0.request.0.formula.0.formula_expression = query1", ++ "widget.2.geomap_definition.0.request.0.query.0.event_query.0.data_source = security_signals", ++ "widget.2.geomap_definition.0.request.0.query.0.event_query.0.indexes.# = 1", ++ "widget.2.geomap_definition.0.request.0.query.0.event_query.0.indexes.0 = *", ++ "widget.2.geomap_definition.0.request.0.query.0.event_query.0.name = query1", ++ "widget.2.geomap_definition.0.request.0.query.0.event_query.0.compute.0.aggregation = count", ++ "widget.2.geomap_definition.0.view.0.focus = WORLD", ++ "widget.2.geomap_definition.0.style.0.palette_flip = false", ++ "widget.2.geomap_definition.0.view.0.focus = WORLD", ++} ++ + func TestAccDatadogDashboardGeomap(t *testing.T) { + testAccDatadogDashboardWidgetUtil(t, datadogDashboardGeomapConfig, "datadog_dashboard.geomap_dashboard", datadogDashboardGeomapAsserts) + } +@@ -105,3 +256,11 @@ func TestAccDatadogDashboardGeomap(t *testing.T) { + func TestAccDatadogDashboardGeomap_import(t *testing.T) { + testAccDatadogDashboardWidgetUtilImport(t, datadogDashboardGeomapConfig, "datadog_dashboard.geomap_dashboard") + } ++ ++func TestAccDatadogDashboardGeomapFormula(t *testing.T) { ++ testAccDatadogDashboardWidgetUtil(t, datadogDashboardGeomapFormulaConfig, "datadog_dashboard.geomap_dashboard", datadogDashboardGeomapFormulaAsserts) ++} ++ ++func TestAccDatadogDashboardGeomapFormula_import(t *testing.T) { ++ testAccDatadogDashboardWidgetUtilImport(t, datadogDashboardGeomapFormulaConfig, "datadog_dashboard.geomap_dashboard") ++} +diff --git a/mimo_build_env.tar.gz.b64 b/mimo_build_env.tar.gz.b64 +new file mode 100644 +--- /dev/null ++++ b/mimo_build_env.tar.gz.b64 +@@ -0,0 +1,6 @@ ++H4sIAAAAAAAAA+3RQWvCMBQH8J77KR5l7KZrgq0nB6VVGTso4mWnEptMBWOkTWWDffjVjuLmmO6g ++jOH/d8lL36Mv8G/PyuVKpmq9vXMuxa90g6A+K4dnXbOAMxbyMAw7jl9VjDsUXOxFn5SFFTmRkxtj ++j82d6v9T7X3+VhU2zYzWYi3bxeJ8O07l3+mG+/x9XuXfCXngkH++J/zsyvPPJNXBz5R0XfWyMbml ++6SCN4rjHmvukH48mSe9ZrArVfEuiaZSMhmk0fkgf+089T5Zav3rf2+MvbbfaJ4UV0szrtYU7N7Qr ++qLWlVl6uyZtWtyjLko+pRBSLmRG5HCqjxebm7Wg7Xerd+hNTA5PrciV+N9X80qOWXWplSkuM+5r4 ++/S1z/zo9AAAAAAAAAAAAAAAAAAAAALh272nzONgAKAAA +diff --git a/mimo_test_command.sh b/mimo_test_command.sh +new file mode 100755 +--- /dev/null ++++ b/mimo_test_command.sh +@@ -0,0 +1,6 @@ ++#!/usr/bin/env bash ++ ++set -uo pipefail ++cd /testbed || exit 1 ++base64 -d mimo_build_env.tar.gz.b64 | tar -xzf - -C /testbed || exit 1 ++exec bash -lc 'cd /testbed && bash -eo pipefail /testbed/.build_env/test_command.sh'