Skip to content

Commit 3fe7964

Browse files
fixed failing test TestAccSecurityCenterV2OrganizationBigQueryExport (#12088) (#8517)
[upstream:b5c742afdee71b2b22a3af5cbbb686b7aed859d8] Signed-off-by: Modular Magician <[email protected]>
1 parent 312cf00 commit 3fe7964

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

.changelog/12088.txt

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:none
2+
securitycenterv2: fixed flaky test TestAccSecurityCenterV2OrganizationBigQueryExportConfig_basic
3+
```

google-beta/services/securitycenterv2/resource_scc_v2_organization_big_query_export_config_test.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ resource "google_bigquery_dataset" "default" {
6767
location = "US"
6868
default_table_expiration_ms = 3600000
6969
default_partition_expiration_ms = null
70+
delete_contents_on_destroy = true
7071
7172
labels = {
7273
env = "default"
@@ -79,7 +80,7 @@ resource "google_bigquery_dataset" "default" {
7980
8081
resource "time_sleep" "wait_1_minute" {
8182
depends_on = [google_bigquery_dataset.default]
82-
create_duration = "3m"
83+
create_duration = "6m"
8384
}
8485
8586
resource "google_scc_v2_organization_scc_big_query_export" "default" {
@@ -111,6 +112,7 @@ resource "google_bigquery_dataset" "default" {
111112
location = "US"
112113
default_table_expiration_ms = 3600000
113114
default_partition_expiration_ms = null
115+
delete_contents_on_destroy = true
114116
115117
labels = {
116118
env = "default"

google-beta/services/securitycenterv2/resource_scc_v2_organization_big_query_exports_config_test.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ resource "google_bigquery_dataset" "default" {
6767
location = "US"
6868
default_table_expiration_ms = 3600000
6969
default_partition_expiration_ms = null
70+
delete_contents_on_destroy = true
7071
7172
labels = {
7273
env = "default"
@@ -79,7 +80,7 @@ resource "google_bigquery_dataset" "default" {
7980
8081
resource "time_sleep" "wait_1_minute" {
8182
depends_on = [google_bigquery_dataset.default]
82-
create_duration = "3m"
83+
create_duration = "6m"
8384
}
8485
8586
resource "google_scc_v2_organization_scc_big_query_exports" "default" {
@@ -111,6 +112,7 @@ resource "google_bigquery_dataset" "default" {
111112
location = "US"
112113
default_table_expiration_ms = 3600000
113114
default_partition_expiration_ms = null
115+
delete_contents_on_destroy = true
114116
115117
labels = {
116118
env = "default"

0 commit comments

Comments
 (0)