-
Notifications
You must be signed in to change notification settings - Fork 389
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Dashboards] Fix
is_column_break
issues (#1140)
* Fix is_column_break not saving in state, causing infinite apply * Update cassettes * Add reflow_type and column_break tests
- Loading branch information
1 parent
4f91a05
commit 648a4ef
Showing
62 changed files
with
1,490 additions
and
1,721 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
datadog/tests/cassettes/TestAccDatadogDashboardEventStream.freeze
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
2021-05-19T19:45:39.34159-04:00 | ||
2021-07-12T11:25:24.046699+02:00 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ version: 1 | |
interactions: | ||
- request: | ||
body: | | ||
{"description":"Created using the Datadog provider in Terraform","id":"","is_read_only":true,"layout_type":"free","notify_list":[],"template_variable_presets":[],"template_variables":[],"title":"tf-TestAccDatadogDashboardEventStream-local-1621467939","widgets":[{"definition":{"event_size":"l","query":"*","tags_execution":"and","time":{"live_span":"4h"},"title":"Widget Title","title_align":"right","title_size":"16","type":"event_stream"},"layout":{"height":43,"is_column_break":false,"width":32,"x":5,"y":5}}]} | ||
{"description":"Created using the Datadog provider in Terraform","id":"","is_read_only":true,"layout_type":"free","notify_list":[],"template_variable_presets":[],"template_variables":[],"title":"tf-TestAccDatadogDashboardEventStream-local-1626081924","widgets":[{"definition":{"event_size":"l","query":"*","tags_execution":"and","time":{"live_span":"4h"},"title":"Widget Title","title_align":"right","title_size":"16","type":"event_stream"},"layout":{"height":43,"width":32,"x":5,"y":5}}]} | ||
form: {} | ||
headers: | ||
Accept: | ||
|
@@ -13,11 +13,11 @@ interactions: | |
Dd-Operation-Id: | ||
- CreateDashboard | ||
User-Agent: | ||
- terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.22 (go go1.15.11; os darwin; arch amd64) | ||
- terraform-provider-datadog/dev (terraform 2.7.0; terraform-cli 0.14.6) datadog-api-client-go/1.1.1+dev (go go1.16.2; 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":"hgw-kkx-56n","title":"tf-TestAccDatadogDashboardEventStream-local-1621467939","url":"/dashboard/hgw-kkx-56n/tf-testaccdatadogdashboardeventstream-local-1621467939","created_at":"2021-05-19T23:45:40.663940+00:00","modified_at":"2021-05-19T23:45:40.663940+00:00","author_handle":"[email protected]","widgets":[{"definition":{"title_size":"16","title":"Widget Title","title_align":"right","tags_execution":"and","time":{"live_span":"4h"},"query":"*","type":"event_stream","event_size":"l"},"layout":{"y":5,"width":32,"is_column_break":false,"x":5,"height":43},"id":4337925842615708}],"layout_type":"free"}' | ||
body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"p4i-69v-wza","title":"tf-TestAccDatadogDashboardEventStream-local-1626081924","url":"/dashboard/p4i-69v-wza/tf-testaccdatadogdashboardeventstream-local-1626081924","created_at":"2021-07-12T09:25:26.328377+00:00","modified_at":"2021-07-12T09:25:26.328377+00:00","author_handle":"[email protected]","widgets":[{"definition":{"title_size":"16","title":"Widget Title","title_align":"right","tags_execution":"and","time":{"live_span":"4h"},"query":"*","type":"event_stream","event_size":"l"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":3389778989732665}],"layout_type":"free"}' | ||
headers: | ||
Cache-Control: | ||
- no-cache | ||
|
@@ -28,7 +28,7 @@ interactions: | |
Content-Type: | ||
- application/json | ||
Date: | ||
- Wed, 19 May 2021 23:45:43 GMT | ||
- Mon, 12 Jul 2021 09:25:29 GMT | ||
Pragma: | ||
- no-cache | ||
Strict-Transport-Security: | ||
|
@@ -37,10 +37,6 @@ interactions: | |
- Accept-Encoding | ||
X-Content-Type-Options: | ||
- nosniff | ||
X-Dd-Debug: | ||
- SY1h8ScsWq+kYmtbh63ltMLFAZsQjqfrgvdfAoRX+9TzT1sgMBRYaFRwfWWRRe9a | ||
X-Dd-Version: | ||
- "35.4569410" | ||
X-Frame-Options: | ||
- SAMEORIGIN | ||
status: 200 OK | ||
|
@@ -55,11 +51,11 @@ interactions: | |
Dd-Operation-Id: | ||
- GetDashboard | ||
User-Agent: | ||
- terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.22 (go go1.15.11; os darwin; arch amd64) | ||
url: https://api.datadoghq.com/api/v1/dashboard/hgw-kkx-56n | ||
- terraform-provider-datadog/dev (terraform 2.7.0; terraform-cli 0.14.6) datadog-api-client-go/1.1.1+dev (go go1.16.2; os darwin; arch amd64) | ||
url: https://api.datadoghq.com/api/v1/dashboard/p4i-69v-wza | ||
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":"hgw-kkx-56n","title":"tf-TestAccDatadogDashboardEventStream-local-1621467939","url":"/dashboard/hgw-kkx-56n/tf-testaccdatadogdashboardeventstream-local-1621467939","created_at":"2021-05-19T23:45:40.663940+00:00","modified_at":"2021-05-19T23:45:40.663940+00:00","author_handle":"[email protected]","widgets":[{"definition":{"title_size":"16","title":"Widget Title","title_align":"right","tags_execution":"and","time":{"live_span":"4h"},"query":"*","type":"event_stream","event_size":"l"},"layout":{"y":5,"width":32,"is_column_break":false,"x":5,"height":43},"id":4337925842615708}],"layout_type":"free"}' | ||
body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"p4i-69v-wza","title":"tf-TestAccDatadogDashboardEventStream-local-1626081924","url":"/dashboard/p4i-69v-wza/tf-testaccdatadogdashboardeventstream-local-1626081924","created_at":"2021-07-12T09:25:26.328377+00:00","modified_at":"2021-07-12T09:25:26.328377+00:00","author_handle":"[email protected]","widgets":[{"definition":{"title_size":"16","title":"Widget Title","title_align":"right","tags_execution":"and","time":{"live_span":"4h"},"query":"*","type":"event_stream","event_size":"l"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":3389778989732665}],"layout_type":"free"}' | ||
headers: | ||
Cache-Control: | ||
- no-cache | ||
|
@@ -70,7 +66,7 @@ interactions: | |
Content-Type: | ||
- application/json | ||
Date: | ||
- Wed, 19 May 2021 23:45:43 GMT | ||
- Mon, 12 Jul 2021 09:25:29 GMT | ||
Pragma: | ||
- no-cache | ||
Strict-Transport-Security: | ||
|
@@ -79,10 +75,6 @@ interactions: | |
- Accept-Encoding | ||
X-Content-Type-Options: | ||
- nosniff | ||
X-Dd-Debug: | ||
- LcgNasIYBRkNppmD6mCKE9J6iv0eEjosuuHR5V5zw2fWbR54i39C8dhdK8zDq/40 | ||
X-Dd-Version: | ||
- "35.4569410" | ||
X-Frame-Options: | ||
- SAMEORIGIN | ||
status: 200 OK | ||
|
@@ -97,11 +89,11 @@ interactions: | |
Dd-Operation-Id: | ||
- GetDashboard | ||
User-Agent: | ||
- terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.22 (go go1.15.11; os darwin; arch amd64) | ||
url: https://api.datadoghq.com/api/v1/dashboard/hgw-kkx-56n | ||
- terraform-provider-datadog/dev (terraform 2.7.0; terraform-cli 0.14.6) datadog-api-client-go/1.1.1+dev (go go1.16.2; os darwin; arch amd64) | ||
url: https://api.datadoghq.com/api/v1/dashboard/p4i-69v-wza | ||
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":"hgw-kkx-56n","title":"tf-TestAccDatadogDashboardEventStream-local-1621467939","url":"/dashboard/hgw-kkx-56n/tf-testaccdatadogdashboardeventstream-local-1621467939","created_at":"2021-05-19T23:45:40.663940+00:00","modified_at":"2021-05-19T23:45:40.663940+00:00","author_handle":"[email protected]","widgets":[{"definition":{"title_size":"16","title":"Widget Title","title_align":"right","tags_execution":"and","time":{"live_span":"4h"},"query":"*","type":"event_stream","event_size":"l"},"layout":{"y":5,"width":32,"is_column_break":false,"x":5,"height":43},"id":4337925842615708}],"layout_type":"free"}' | ||
body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"p4i-69v-wza","title":"tf-TestAccDatadogDashboardEventStream-local-1626081924","url":"/dashboard/p4i-69v-wza/tf-testaccdatadogdashboardeventstream-local-1626081924","created_at":"2021-07-12T09:25:26.328377+00:00","modified_at":"2021-07-12T09:25:26.328377+00:00","author_handle":"[email protected]","widgets":[{"definition":{"title_size":"16","title":"Widget Title","title_align":"right","tags_execution":"and","time":{"live_span":"4h"},"query":"*","type":"event_stream","event_size":"l"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":3389778989732665}],"layout_type":"free"}' | ||
headers: | ||
Cache-Control: | ||
- no-cache | ||
|
@@ -112,7 +104,7 @@ interactions: | |
Content-Type: | ||
- application/json | ||
Date: | ||
- Wed, 19 May 2021 23:45:43 GMT | ||
- Mon, 12 Jul 2021 09:25:29 GMT | ||
Pragma: | ||
- no-cache | ||
Strict-Transport-Security: | ||
|
@@ -121,10 +113,6 @@ interactions: | |
- Accept-Encoding | ||
X-Content-Type-Options: | ||
- nosniff | ||
X-Dd-Debug: | ||
- dPySkcOzIZtKyMKDAAzuysY3gNGGj6RtYogGuSb76E8mPvoqzREyRp6lPYm91hQU | ||
X-Dd-Version: | ||
- "35.4569410" | ||
X-Frame-Options: | ||
- SAMEORIGIN | ||
status: 200 OK | ||
|
@@ -139,11 +127,11 @@ interactions: | |
Dd-Operation-Id: | ||
- GetDashboard | ||
User-Agent: | ||
- terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.22 (go go1.15.11; os darwin; arch amd64) | ||
url: https://api.datadoghq.com/api/v1/dashboard/hgw-kkx-56n | ||
- terraform-provider-datadog/dev (terraform 2.7.0; terraform-cli 0.14.6) datadog-api-client-go/1.1.1+dev (go go1.16.2; os darwin; arch amd64) | ||
url: https://api.datadoghq.com/api/v1/dashboard/p4i-69v-wza | ||
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":"hgw-kkx-56n","title":"tf-TestAccDatadogDashboardEventStream-local-1621467939","url":"/dashboard/hgw-kkx-56n/tf-testaccdatadogdashboardeventstream-local-1621467939","created_at":"2021-05-19T23:45:40.663940+00:00","modified_at":"2021-05-19T23:45:40.663940+00:00","author_handle":"[email protected]","widgets":[{"definition":{"title_size":"16","title":"Widget Title","title_align":"right","tags_execution":"and","time":{"live_span":"4h"},"query":"*","type":"event_stream","event_size":"l"},"layout":{"y":5,"width":32,"is_column_break":false,"x":5,"height":43},"id":4337925842615708}],"layout_type":"free"}' | ||
body: '{"notify_list":[],"description":"Created using the Datadog provider in Terraform","author_name":null,"template_variable_presets":[],"template_variables":[],"is_read_only":true,"id":"p4i-69v-wza","title":"tf-TestAccDatadogDashboardEventStream-local-1626081924","url":"/dashboard/p4i-69v-wza/tf-testaccdatadogdashboardeventstream-local-1626081924","created_at":"2021-07-12T09:25:26.328377+00:00","modified_at":"2021-07-12T09:25:26.328377+00:00","author_handle":"[email protected]","widgets":[{"definition":{"title_size":"16","title":"Widget Title","title_align":"right","tags_execution":"and","time":{"live_span":"4h"},"query":"*","type":"event_stream","event_size":"l"},"layout":{"y":5,"width":32,"x":5,"height":43},"id":3389778989732665}],"layout_type":"free"}' | ||
headers: | ||
Cache-Control: | ||
- no-cache | ||
|
@@ -154,7 +142,7 @@ interactions: | |
Content-Type: | ||
- application/json | ||
Date: | ||
- Wed, 19 May 2021 23:45:44 GMT | ||
- Mon, 12 Jul 2021 09:25:30 GMT | ||
Pragma: | ||
- no-cache | ||
Strict-Transport-Security: | ||
|
@@ -163,10 +151,6 @@ interactions: | |
- Accept-Encoding | ||
X-Content-Type-Options: | ||
- nosniff | ||
X-Dd-Debug: | ||
- 5gfwVh/5HZ+AnGd/Di93w3NEWC6KMHT9KzmHEiRJmNdOjBtAsbOcgVFyqEChw71h | ||
X-Dd-Version: | ||
- "35.4569410" | ||
X-Frame-Options: | ||
- SAMEORIGIN | ||
status: 200 OK | ||
|
@@ -181,11 +165,11 @@ interactions: | |
Dd-Operation-Id: | ||
- DeleteDashboard | ||
User-Agent: | ||
- terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.22 (go go1.15.11; os darwin; arch amd64) | ||
url: https://api.datadoghq.com/api/v1/dashboard/hgw-kkx-56n | ||
- terraform-provider-datadog/dev (terraform 2.7.0; terraform-cli 0.14.6) datadog-api-client-go/1.1.1+dev (go go1.16.2; os darwin; arch amd64) | ||
url: https://api.datadoghq.com/api/v1/dashboard/p4i-69v-wza | ||
method: DELETE | ||
response: | ||
body: '{"deleted_dashboard_id":"hgw-kkx-56n"}' | ||
body: '{"deleted_dashboard_id":"p4i-69v-wza"}' | ||
headers: | ||
Cache-Control: | ||
- no-cache | ||
|
@@ -196,7 +180,7 @@ interactions: | |
Content-Type: | ||
- application/json | ||
Date: | ||
- Wed, 19 May 2021 23:45:45 GMT | ||
- Mon, 12 Jul 2021 09:25:31 GMT | ||
Pragma: | ||
- no-cache | ||
Strict-Transport-Security: | ||
|
@@ -205,10 +189,6 @@ interactions: | |
- Accept-Encoding | ||
X-Content-Type-Options: | ||
- nosniff | ||
X-Dd-Debug: | ||
- nLnnBNvlCFDECRnZvzDb0z4sAO35G+IMidcAs8vrCKyjvsKWE8Yd9S3n6OjZ1qRN | ||
X-Dd-Version: | ||
- "35.4569410" | ||
X-Frame-Options: | ||
- SAMEORIGIN | ||
status: 200 OK | ||
|
@@ -223,11 +203,11 @@ interactions: | |
Dd-Operation-Id: | ||
- GetDashboard | ||
User-Agent: | ||
- terraform-provider-datadog/dev (terraform 2.4.4; terraform-cli 0.14.7) datadog-api-client-go/1.0.0-beta.22 (go go1.15.11; os darwin; arch amd64) | ||
url: https://api.datadoghq.com/api/v1/dashboard/hgw-kkx-56n | ||
- terraform-provider-datadog/dev (terraform 2.7.0; terraform-cli 0.14.6) datadog-api-client-go/1.1.1+dev (go go1.16.2; os darwin; arch amd64) | ||
url: https://api.datadoghq.com/api/v1/dashboard/p4i-69v-wza | ||
method: GET | ||
response: | ||
body: '{"errors": ["Dashboard with ID hgw-kkx-56n not found"]}' | ||
body: '{"errors": ["Dashboard with ID p4i-69v-wza not found"]}' | ||
headers: | ||
Cache-Control: | ||
- no-cache | ||
|
@@ -238,7 +218,7 @@ interactions: | |
Content-Type: | ||
- application/json | ||
Date: | ||
- Wed, 19 May 2021 23:45:45 GMT | ||
- Mon, 12 Jul 2021 09:25:32 GMT | ||
Pragma: | ||
- no-cache | ||
Strict-Transport-Security: | ||
|
@@ -247,8 +227,6 @@ interactions: | |
- Accept-Encoding | ||
X-Content-Type-Options: | ||
- nosniff | ||
X-Dd-Version: | ||
- "35.4569410" | ||
X-Frame-Options: | ||
- SAMEORIGIN | ||
status: 404 Not Found | ||
|
2 changes: 1 addition & 1 deletion
2
datadog/tests/cassettes/TestAccDatadogDashboardEventStream_import.freeze
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
2021-05-19T19:45:39.34166-04:00 | ||
2021-07-12T11:25:24.046699+02:00 |
Oops, something went wrong.