From b65ca596308b97ae7dc60c439a489ff36d4bafef Mon Sep 17 00:00:00 2001 From: xiaoweim Date: Thu, 31 Oct 2024 22:34:20 +0000 Subject: [PATCH] tests:fix mockgcp for bigquery to mimic real GCP behavoir --- mockgcp/mockbigquery/datasets.go | 6 ++++++ .../_generated_export_basicbigquerydataset.golden | 1 + .../v1beta1/bigquerydataset/basicbigquerydataset/_http.log | 6 +++++- .../_generated_export_bigquerydatasetaccessblock.golden | 1 + .../bigquerydataset/bigquerydatasetaccessblock/_http.log | 6 +++++- .../testdata/basic/bigquery/v1beta1/bigquerytable/_http.log | 2 ++ .../bigquerydatatransferconfig-salesforce/_http.log | 2 ++ .../bigquerydatatransferconfig-scheduledquery/_http.log | 2 ++ .../streamingdataflowflextemplatejob/_http.log | 2 ++ .../pubsubsubscription/bigquerypubsubsubscription/_http.log | 2 ++ .../projectid/_generated_export_projectid.golden | 1 + .../testdata/containerannotations/projectid/_http.log | 6 +++++- .../_generated_export_bigquerydataset.golden | 1 + .../reconcileintervalannotations/bigquerydataset/_http.log | 6 +++++- .../referencewithuserspecifiedresourceid/_http.log | 2 ++ .../_generated_export_userspecifiedresourceid.golden | 1 + .../testdata/resourceid/userspecifiedresourceid/_http.log | 6 +++++- .../_generated_export_bigquerydataset#01.golden | 1 + .../testdata/stateabsentinspec/bigquerydataset/_http.log | 6 +++++- 19 files changed, 54 insertions(+), 6 deletions(-) diff --git a/mockgcp/mockbigquery/datasets.go b/mockgcp/mockbigquery/datasets.go index eeff800705..243a442b68 100644 --- a/mockgcp/mockbigquery/datasets.go +++ b/mockgcp/mockbigquery/datasets.go @@ -31,6 +31,8 @@ import ( "github.com/golang/protobuf/ptypes/empty" ) +var defaultMaxTimeTravelHours = int64(168) + type datasetsServer struct { *MockService pb.UnimplementedDatasetsServerServer @@ -52,6 +54,10 @@ func (s *datasetsServer) GetDataset(ctx context.Context, req *pb.GetDatasetReque return nil, err } + if obj.MaxTimeTravelHours == nil { + obj.MaxTimeTravelHours = &defaultMaxTimeTravelHours + } + return obj, nil } diff --git a/pkg/test/resourcefixture/testdata/basic/bigquery/v1beta1/bigquerydataset/basicbigquerydataset/_generated_export_basicbigquerydataset.golden b/pkg/test/resourcefixture/testdata/basic/bigquery/v1beta1/bigquerydataset/basicbigquerydataset/_generated_export_basicbigquerydataset.golden index 09677b54be..95391263e2 100644 --- a/pkg/test/resourcefixture/testdata/basic/bigquery/v1beta1/bigquerydataset/basicbigquerydataset/_generated_export_basicbigquerydataset.golden +++ b/pkg/test/resourcefixture/testdata/basic/bigquery/v1beta1/bigquerydataset/basicbigquerydataset/_generated_export_basicbigquerydataset.golden @@ -19,6 +19,7 @@ spec: specialGroup: projectWriters friendlyName: bigquerydataset-sample-updated location: US + maxTimeTravelHours: "168" projectRef: external: ${projectId} resourceID: bigquerydatasetsample${uniqueId} \ No newline at end of file diff --git a/pkg/test/resourcefixture/testdata/basic/bigquery/v1beta1/bigquerydataset/basicbigquerydataset/_http.log b/pkg/test/resourcefixture/testdata/basic/bigquery/v1beta1/bigquerydataset/basicbigquerydataset/_http.log index e955a3353f..4f53cdab6e 100644 --- a/pkg/test/resourcefixture/testdata/basic/bigquery/v1beta1/bigquerydataset/basicbigquerydataset/_http.log +++ b/pkg/test/resourcefixture/testdata/basic/bigquery/v1beta1/bigquerydataset/basicbigquerydataset/_http.log @@ -146,6 +146,7 @@ X-Xss-Protection: 0 }, "lastModifiedTime": "123456789", "location": "US", + "maxTimeTravelHours": "168", "selfLink": "https://bigquery.googleapis.com/bigquery/v2/projects/${projectId}/datasets/bigquerydatasetsample${uniqueId}", "type": "DEFAULT" } @@ -183,7 +184,8 @@ User-Agent: Terraform/ (+https://www.terraform.io) Terraform-Plugin-SDK/2.10.1 t "cnrm-test": "true", "managed-by-cnrm": "true" }, - "location": "US" + "location": "US", + "maxTimeTravelHours": "168" } 200 OK @@ -231,6 +233,7 @@ X-Xss-Protection: 0 }, "lastModifiedTime": "123456789", "location": "US", + "maxTimeTravelHours": "168", "selfLink": "https://bigquery.googleapis.com/bigquery/v2/projects/${projectId}/datasets/bigquerydatasetsample${uniqueId}", "type": "DEFAULT" } @@ -286,6 +289,7 @@ X-Xss-Protection: 0 }, "lastModifiedTime": "123456789", "location": "US", + "maxTimeTravelHours": "168", "selfLink": "https://bigquery.googleapis.com/bigquery/v2/projects/${projectId}/datasets/bigquerydatasetsample${uniqueId}", "type": "DEFAULT" } diff --git a/pkg/test/resourcefixture/testdata/basic/bigquery/v1beta1/bigquerydataset/bigquerydatasetaccessblock/_generated_export_bigquerydatasetaccessblock.golden b/pkg/test/resourcefixture/testdata/basic/bigquery/v1beta1/bigquerydataset/bigquerydatasetaccessblock/_generated_export_bigquerydatasetaccessblock.golden index 116ccae263..778d0db239 100644 --- a/pkg/test/resourcefixture/testdata/basic/bigquery/v1beta1/bigquerydataset/bigquerydatasetaccessblock/_generated_export_bigquerydatasetaccessblock.golden +++ b/pkg/test/resourcefixture/testdata/basic/bigquery/v1beta1/bigquerydataset/bigquerydatasetaccessblock/_generated_export_bigquerydatasetaccessblock.golden @@ -19,6 +19,7 @@ spec: description: BigQuery Dataset With Access Block v2 friendlyName: bigquerydataset-accessblock location: US + maxTimeTravelHours: "168" projectRef: external: ${projectId} resourceID: bigquerydataset${uniqueId} \ No newline at end of file diff --git a/pkg/test/resourcefixture/testdata/basic/bigquery/v1beta1/bigquerydataset/bigquerydatasetaccessblock/_http.log b/pkg/test/resourcefixture/testdata/basic/bigquery/v1beta1/bigquerydataset/bigquerydatasetaccessblock/_http.log index 28d595a03c..fddff7d80b 100644 --- a/pkg/test/resourcefixture/testdata/basic/bigquery/v1beta1/bigquerydataset/bigquerydatasetaccessblock/_http.log +++ b/pkg/test/resourcefixture/testdata/basic/bigquery/v1beta1/bigquerydataset/bigquerydatasetaccessblock/_http.log @@ -146,6 +146,7 @@ X-Xss-Protection: 0 }, "lastModifiedTime": "123456789", "location": "US", + "maxTimeTravelHours": "168", "selfLink": "https://bigquery.googleapis.com/bigquery/v2/projects/${projectId}/datasets/bigquerydataset${uniqueId}", "type": "DEFAULT" } @@ -181,7 +182,8 @@ User-Agent: Terraform/ (+https://www.terraform.io) Terraform-Plugin-SDK/2.10.1 t "cnrm-test": "true", "managed-by-cnrm": "true" }, - "location": "US" + "location": "US", + "maxTimeTravelHours": "168" } 200 OK @@ -227,6 +229,7 @@ X-Xss-Protection: 0 }, "lastModifiedTime": "123456789", "location": "US", + "maxTimeTravelHours": "168", "selfLink": "https://bigquery.googleapis.com/bigquery/v2/projects/${projectId}/datasets/bigquerydataset${uniqueId}", "type": "DEFAULT" } @@ -280,6 +283,7 @@ X-Xss-Protection: 0 }, "lastModifiedTime": "123456789", "location": "US", + "maxTimeTravelHours": "168", "selfLink": "https://bigquery.googleapis.com/bigquery/v2/projects/${projectId}/datasets/bigquerydataset${uniqueId}", "type": "DEFAULT" } diff --git a/pkg/test/resourcefixture/testdata/basic/bigquery/v1beta1/bigquerytable/_http.log b/pkg/test/resourcefixture/testdata/basic/bigquery/v1beta1/bigquerytable/_http.log index b374b49161..4263316151 100644 --- a/pkg/test/resourcefixture/testdata/basic/bigquery/v1beta1/bigquerytable/_http.log +++ b/pkg/test/resourcefixture/testdata/basic/bigquery/v1beta1/bigquerytable/_http.log @@ -143,6 +143,7 @@ X-Xss-Protection: 0 }, "lastModifiedTime": "123456789", "location": "US", + "maxTimeTravelHours": "168", "selfLink": "https://bigquery.googleapis.com/bigquery/v2/projects/${projectId}/datasets/bigquerydatasetsample${uniqueId}", "type": "DEFAULT" } @@ -881,6 +882,7 @@ X-Xss-Protection: 0 }, "lastModifiedTime": "123456789", "location": "US", + "maxTimeTravelHours": "168", "selfLink": "https://bigquery.googleapis.com/bigquery/v2/projects/${projectId}/datasets/bigquerydatasetsample${uniqueId}", "type": "DEFAULT" } diff --git a/pkg/test/resourcefixture/testdata/basic/bigquerydatatransfer/v1beta1/bigquerydatatransferconfig/bigquerydatatransferconfig-salesforce/_http.log b/pkg/test/resourcefixture/testdata/basic/bigquerydatatransfer/v1beta1/bigquerydatatransferconfig/bigquerydatatransferconfig-salesforce/_http.log index bdf388a412..eeb7c8bab2 100644 --- a/pkg/test/resourcefixture/testdata/basic/bigquerydatatransfer/v1beta1/bigquerydatatransferconfig/bigquerydatatransferconfig-salesforce/_http.log +++ b/pkg/test/resourcefixture/testdata/basic/bigquerydatatransfer/v1beta1/bigquerydatatransferconfig/bigquerydatatransferconfig-salesforce/_http.log @@ -143,6 +143,7 @@ X-Xss-Protection: 0 }, "lastModifiedTime": "123456789", "location": "us-central1", + "maxTimeTravelHours": "168", "selfLink": "https://bigquery.googleapis.com/bigquery/v2/projects/${projectId}/datasets/bigquerydataset${uniqueId}", "type": "DEFAULT" } @@ -407,6 +408,7 @@ X-Xss-Protection: 0 }, "lastModifiedTime": "123456789", "location": "us-central1", + "maxTimeTravelHours": "168", "selfLink": "https://bigquery.googleapis.com/bigquery/v2/projects/${projectId}/datasets/bigquerydataset${uniqueId}", "type": "DEFAULT" } diff --git a/pkg/test/resourcefixture/testdata/basic/bigquerydatatransfer/v1beta1/bigquerydatatransferconfig/bigquerydatatransferconfig-scheduledquery/_http.log b/pkg/test/resourcefixture/testdata/basic/bigquerydatatransfer/v1beta1/bigquerydatatransferconfig/bigquerydatatransferconfig-scheduledquery/_http.log index bf9fcf2aee..52f923dac9 100644 --- a/pkg/test/resourcefixture/testdata/basic/bigquerydatatransfer/v1beta1/bigquerydatatransferconfig/bigquerydatatransferconfig-scheduledquery/_http.log +++ b/pkg/test/resourcefixture/testdata/basic/bigquerydatatransfer/v1beta1/bigquerydatatransferconfig/bigquerydatatransferconfig-scheduledquery/_http.log @@ -143,6 +143,7 @@ X-Xss-Protection: 0 }, "lastModifiedTime": "123456789", "location": "us-central1", + "maxTimeTravelHours": "168", "selfLink": "https://bigquery.googleapis.com/bigquery/v2/projects/${projectId}/datasets/bigquerydataset${uniqueId}", "type": "DEFAULT" } @@ -542,6 +543,7 @@ X-Xss-Protection: 0 }, "lastModifiedTime": "123456789", "location": "us-central1", + "maxTimeTravelHours": "168", "selfLink": "https://bigquery.googleapis.com/bigquery/v2/projects/${projectId}/datasets/bigquerydataset${uniqueId}", "type": "DEFAULT" } diff --git a/pkg/test/resourcefixture/testdata/basic/dataflow/v1beta1/dataflowflextemplatejob/streamingdataflowflextemplatejob/_http.log b/pkg/test/resourcefixture/testdata/basic/dataflow/v1beta1/dataflowflextemplatejob/streamingdataflowflextemplatejob/_http.log index d63f534bb0..6f2bafb6f2 100644 --- a/pkg/test/resourcefixture/testdata/basic/dataflow/v1beta1/dataflowflextemplatejob/streamingdataflowflextemplatejob/_http.log +++ b/pkg/test/resourcefixture/testdata/basic/dataflow/v1beta1/dataflowflextemplatejob/streamingdataflowflextemplatejob/_http.log @@ -143,6 +143,7 @@ X-Xss-Protection: 0 }, "lastModifiedTime": "123456789", "location": "US", + "maxTimeTravelHours": "168", "selfLink": "https://bigquery.googleapis.com/bigquery/v2/projects/${projectId}/datasets/bigquerydataset${uniqueId}", "type": "DEFAULT" } @@ -1413,6 +1414,7 @@ X-Xss-Protection: 0 }, "lastModifiedTime": "123456789", "location": "US", + "maxTimeTravelHours": "168", "selfLink": "https://bigquery.googleapis.com/bigquery/v2/projects/${projectId}/datasets/bigquerydataset${uniqueId}", "type": "DEFAULT" } diff --git a/pkg/test/resourcefixture/testdata/basic/pubsub/v1beta1/pubsubsubscription/bigquerypubsubsubscription/_http.log b/pkg/test/resourcefixture/testdata/basic/pubsub/v1beta1/pubsubsubscription/bigquerypubsubsubscription/_http.log index 8223250a6e..4cb23f7d40 100644 --- a/pkg/test/resourcefixture/testdata/basic/pubsub/v1beta1/pubsubsubscription/bigquerypubsubsubscription/_http.log +++ b/pkg/test/resourcefixture/testdata/basic/pubsub/v1beta1/pubsubsubscription/bigquerypubsubsubscription/_http.log @@ -830,6 +830,7 @@ X-Xss-Protection: 0 }, "lastModifiedTime": "123456789", "location": "US", + "maxTimeTravelHours": "168", "selfLink": "https://bigquery.googleapis.com/bigquery/v2/projects/${projectId}/datasets/bigquerydataset${uniqueId}", "type": "DEFAULT" } @@ -1607,6 +1608,7 @@ X-Xss-Protection: 0 }, "lastModifiedTime": "123456789", "location": "US", + "maxTimeTravelHours": "168", "selfLink": "https://bigquery.googleapis.com/bigquery/v2/projects/${projectId}/datasets/bigquerydataset${uniqueId}", "type": "DEFAULT" } diff --git a/pkg/test/resourcefixture/testdata/containerannotations/projectid/_generated_export_projectid.golden b/pkg/test/resourcefixture/testdata/containerannotations/projectid/_generated_export_projectid.golden index 09677b54be..95391263e2 100644 --- a/pkg/test/resourcefixture/testdata/containerannotations/projectid/_generated_export_projectid.golden +++ b/pkg/test/resourcefixture/testdata/containerannotations/projectid/_generated_export_projectid.golden @@ -19,6 +19,7 @@ spec: specialGroup: projectWriters friendlyName: bigquerydataset-sample-updated location: US + maxTimeTravelHours: "168" projectRef: external: ${projectId} resourceID: bigquerydatasetsample${uniqueId} \ No newline at end of file diff --git a/pkg/test/resourcefixture/testdata/containerannotations/projectid/_http.log b/pkg/test/resourcefixture/testdata/containerannotations/projectid/_http.log index e955a3353f..4f53cdab6e 100644 --- a/pkg/test/resourcefixture/testdata/containerannotations/projectid/_http.log +++ b/pkg/test/resourcefixture/testdata/containerannotations/projectid/_http.log @@ -146,6 +146,7 @@ X-Xss-Protection: 0 }, "lastModifiedTime": "123456789", "location": "US", + "maxTimeTravelHours": "168", "selfLink": "https://bigquery.googleapis.com/bigquery/v2/projects/${projectId}/datasets/bigquerydatasetsample${uniqueId}", "type": "DEFAULT" } @@ -183,7 +184,8 @@ User-Agent: Terraform/ (+https://www.terraform.io) Terraform-Plugin-SDK/2.10.1 t "cnrm-test": "true", "managed-by-cnrm": "true" }, - "location": "US" + "location": "US", + "maxTimeTravelHours": "168" } 200 OK @@ -231,6 +233,7 @@ X-Xss-Protection: 0 }, "lastModifiedTime": "123456789", "location": "US", + "maxTimeTravelHours": "168", "selfLink": "https://bigquery.googleapis.com/bigquery/v2/projects/${projectId}/datasets/bigquerydatasetsample${uniqueId}", "type": "DEFAULT" } @@ -286,6 +289,7 @@ X-Xss-Protection: 0 }, "lastModifiedTime": "123456789", "location": "US", + "maxTimeTravelHours": "168", "selfLink": "https://bigquery.googleapis.com/bigquery/v2/projects/${projectId}/datasets/bigquerydatasetsample${uniqueId}", "type": "DEFAULT" } diff --git a/pkg/test/resourcefixture/testdata/reconcileintervalannotations/bigquerydataset/_generated_export_bigquerydataset.golden b/pkg/test/resourcefixture/testdata/reconcileintervalannotations/bigquerydataset/_generated_export_bigquerydataset.golden index 09677b54be..95391263e2 100644 --- a/pkg/test/resourcefixture/testdata/reconcileintervalannotations/bigquerydataset/_generated_export_bigquerydataset.golden +++ b/pkg/test/resourcefixture/testdata/reconcileintervalannotations/bigquerydataset/_generated_export_bigquerydataset.golden @@ -19,6 +19,7 @@ spec: specialGroup: projectWriters friendlyName: bigquerydataset-sample-updated location: US + maxTimeTravelHours: "168" projectRef: external: ${projectId} resourceID: bigquerydatasetsample${uniqueId} \ No newline at end of file diff --git a/pkg/test/resourcefixture/testdata/reconcileintervalannotations/bigquerydataset/_http.log b/pkg/test/resourcefixture/testdata/reconcileintervalannotations/bigquerydataset/_http.log index e955a3353f..4f53cdab6e 100644 --- a/pkg/test/resourcefixture/testdata/reconcileintervalannotations/bigquerydataset/_http.log +++ b/pkg/test/resourcefixture/testdata/reconcileintervalannotations/bigquerydataset/_http.log @@ -146,6 +146,7 @@ X-Xss-Protection: 0 }, "lastModifiedTime": "123456789", "location": "US", + "maxTimeTravelHours": "168", "selfLink": "https://bigquery.googleapis.com/bigquery/v2/projects/${projectId}/datasets/bigquerydatasetsample${uniqueId}", "type": "DEFAULT" } @@ -183,7 +184,8 @@ User-Agent: Terraform/ (+https://www.terraform.io) Terraform-Plugin-SDK/2.10.1 t "cnrm-test": "true", "managed-by-cnrm": "true" }, - "location": "US" + "location": "US", + "maxTimeTravelHours": "168" } 200 OK @@ -231,6 +233,7 @@ X-Xss-Protection: 0 }, "lastModifiedTime": "123456789", "location": "US", + "maxTimeTravelHours": "168", "selfLink": "https://bigquery.googleapis.com/bigquery/v2/projects/${projectId}/datasets/bigquerydatasetsample${uniqueId}", "type": "DEFAULT" } @@ -286,6 +289,7 @@ X-Xss-Protection: 0 }, "lastModifiedTime": "123456789", "location": "US", + "maxTimeTravelHours": "168", "selfLink": "https://bigquery.googleapis.com/bigquery/v2/projects/${projectId}/datasets/bigquerydatasetsample${uniqueId}", "type": "DEFAULT" } diff --git a/pkg/test/resourcefixture/testdata/resourceid/referencewithuserspecifiedresourceid/_http.log b/pkg/test/resourcefixture/testdata/resourceid/referencewithuserspecifiedresourceid/_http.log index f30e67b6da..9c2d5b2eee 100644 --- a/pkg/test/resourcefixture/testdata/resourceid/referencewithuserspecifiedresourceid/_http.log +++ b/pkg/test/resourcefixture/testdata/resourceid/referencewithuserspecifiedresourceid/_http.log @@ -143,6 +143,7 @@ X-Xss-Protection: 0 }, "lastModifiedTime": "123456789", "location": "US", + "maxTimeTravelHours": "168", "selfLink": "https://bigquery.googleapis.com/bigquery/v2/projects/${projectId}/datasets/bigquerydataset_resourceid_${uniqueId}", "type": "DEFAULT" } @@ -445,6 +446,7 @@ X-Xss-Protection: 0 }, "lastModifiedTime": "123456789", "location": "US", + "maxTimeTravelHours": "168", "selfLink": "https://bigquery.googleapis.com/bigquery/v2/projects/${projectId}/datasets/bigquerydataset_resourceid_${uniqueId}", "type": "DEFAULT" } diff --git a/pkg/test/resourcefixture/testdata/resourceid/userspecifiedresourceid/_generated_export_userspecifiedresourceid.golden b/pkg/test/resourcefixture/testdata/resourceid/userspecifiedresourceid/_generated_export_userspecifiedresourceid.golden index bba5c4cdbd..c6deeeb8c5 100644 --- a/pkg/test/resourcefixture/testdata/resourceid/userspecifiedresourceid/_generated_export_userspecifiedresourceid.golden +++ b/pkg/test/resourcefixture/testdata/resourceid/userspecifiedresourceid/_generated_export_userspecifiedresourceid.golden @@ -19,6 +19,7 @@ spec: specialGroup: projectWriters friendlyName: bigquerydataset-sample-updated location: US + maxTimeTravelHours: "168" projectRef: external: ${projectId} resourceID: bigquerydataset_${uniqueId} \ No newline at end of file diff --git a/pkg/test/resourcefixture/testdata/resourceid/userspecifiedresourceid/_http.log b/pkg/test/resourcefixture/testdata/resourceid/userspecifiedresourceid/_http.log index 30769f1d3d..fd92a16a92 100644 --- a/pkg/test/resourcefixture/testdata/resourceid/userspecifiedresourceid/_http.log +++ b/pkg/test/resourcefixture/testdata/resourceid/userspecifiedresourceid/_http.log @@ -146,6 +146,7 @@ X-Xss-Protection: 0 }, "lastModifiedTime": "123456789", "location": "US", + "maxTimeTravelHours": "168", "selfLink": "https://bigquery.googleapis.com/bigquery/v2/projects/${projectId}/datasets/bigquerydataset_${uniqueId}", "type": "DEFAULT" } @@ -183,7 +184,8 @@ User-Agent: Terraform/ (+https://www.terraform.io) Terraform-Plugin-SDK/2.10.1 t "cnrm-test": "true", "managed-by-cnrm": "true" }, - "location": "US" + "location": "US", + "maxTimeTravelHours": "168" } 200 OK @@ -231,6 +233,7 @@ X-Xss-Protection: 0 }, "lastModifiedTime": "123456789", "location": "US", + "maxTimeTravelHours": "168", "selfLink": "https://bigquery.googleapis.com/bigquery/v2/projects/${projectId}/datasets/bigquerydataset_${uniqueId}", "type": "DEFAULT" } @@ -286,6 +289,7 @@ X-Xss-Protection: 0 }, "lastModifiedTime": "123456789", "location": "US", + "maxTimeTravelHours": "168", "selfLink": "https://bigquery.googleapis.com/bigquery/v2/projects/${projectId}/datasets/bigquerydataset_${uniqueId}", "type": "DEFAULT" } diff --git a/pkg/test/resourcefixture/testdata/stateabsentinspec/bigquerydataset/_generated_export_bigquerydataset#01.golden b/pkg/test/resourcefixture/testdata/stateabsentinspec/bigquerydataset/_generated_export_bigquerydataset#01.golden index 09677b54be..95391263e2 100644 --- a/pkg/test/resourcefixture/testdata/stateabsentinspec/bigquerydataset/_generated_export_bigquerydataset#01.golden +++ b/pkg/test/resourcefixture/testdata/stateabsentinspec/bigquerydataset/_generated_export_bigquerydataset#01.golden @@ -19,6 +19,7 @@ spec: specialGroup: projectWriters friendlyName: bigquerydataset-sample-updated location: US + maxTimeTravelHours: "168" projectRef: external: ${projectId} resourceID: bigquerydatasetsample${uniqueId} \ No newline at end of file diff --git a/pkg/test/resourcefixture/testdata/stateabsentinspec/bigquerydataset/_http.log b/pkg/test/resourcefixture/testdata/stateabsentinspec/bigquerydataset/_http.log index e955a3353f..4f53cdab6e 100644 --- a/pkg/test/resourcefixture/testdata/stateabsentinspec/bigquerydataset/_http.log +++ b/pkg/test/resourcefixture/testdata/stateabsentinspec/bigquerydataset/_http.log @@ -146,6 +146,7 @@ X-Xss-Protection: 0 }, "lastModifiedTime": "123456789", "location": "US", + "maxTimeTravelHours": "168", "selfLink": "https://bigquery.googleapis.com/bigquery/v2/projects/${projectId}/datasets/bigquerydatasetsample${uniqueId}", "type": "DEFAULT" } @@ -183,7 +184,8 @@ User-Agent: Terraform/ (+https://www.terraform.io) Terraform-Plugin-SDK/2.10.1 t "cnrm-test": "true", "managed-by-cnrm": "true" }, - "location": "US" + "location": "US", + "maxTimeTravelHours": "168" } 200 OK @@ -231,6 +233,7 @@ X-Xss-Protection: 0 }, "lastModifiedTime": "123456789", "location": "US", + "maxTimeTravelHours": "168", "selfLink": "https://bigquery.googleapis.com/bigquery/v2/projects/${projectId}/datasets/bigquerydatasetsample${uniqueId}", "type": "DEFAULT" } @@ -286,6 +289,7 @@ X-Xss-Protection: 0 }, "lastModifiedTime": "123456789", "location": "US", + "maxTimeTravelHours": "168", "selfLink": "https://bigquery.googleapis.com/bigquery/v2/projects/${projectId}/datasets/bigquerydatasetsample${uniqueId}", "type": "DEFAULT" }