forked from GoogleCloudPlatform/k8s-config-connector
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request GoogleCloudPlatform#2722 from xiaoweim/add_mock_co…
…verage_bigquerydataset test:add mockgcp test full suite for bigquerydataset
- Loading branch information
Showing
6 changed files
with
964 additions
and
0 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
...1beta1/bigquerydataset/fullybigquerydataset/_generated_export_fullybigquerydataset.golden
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
apiVersion: bigquery.cnrm.cloud.google.com/v1beta1 | ||
kind: BigQueryDataset | ||
metadata: | ||
annotations: | ||
cnrm.cloud.google.com/delete-contents-on-destroy: "false" | ||
labels: | ||
cnrm-test: "true" | ||
managed-by-cnrm: "true" | ||
name: bigquerydataset${uniqueId} | ||
spec: | ||
access: | ||
- role: OWNER | ||
specialGroup: projectOwners | ||
defaultCollation: und:ci | ||
defaultEncryptionConfiguration: | ||
kmsKeyRef: | ||
external: projects/${projectId}/locations/us/keyRings/kmskeyring-${uniqueId}/cryptoKeys/kmscryptokey-${uniqueId} | ||
defaultPartitionExpirationMs: 3600000 | ||
defaultTableExpirationMs: 3600000 | ||
description: Fully Configured BigQuery Dataset | ||
friendlyName: bigquerydataset-fullyconfigured | ||
isCaseInsensitive: true | ||
location: US | ||
maxTimeTravelHours: "72" | ||
projectRef: | ||
external: ${projectId} | ||
resourceID: bigquerydataset${uniqueId} | ||
storageBillingModel: LOGICAL |
45 changes: 45 additions & 0 deletions
45
...1/bigquerydataset/fullybigquerydataset/_generated_object_fullybigquerydataset.golden.yaml
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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
apiVersion: bigquery.cnrm.cloud.google.com/v1beta1 | ||
kind: BigQueryDataset | ||
metadata: | ||
annotations: | ||
cnrm.cloud.google.com/management-conflict-prevention-policy: none | ||
cnrm.cloud.google.com/state-into-spec: absent | ||
finalizers: | ||
- cnrm.cloud.google.com/finalizer | ||
- cnrm.cloud.google.com/deletion-defender | ||
generation: 2 | ||
labels: | ||
cnrm-test: "true" | ||
name: bigquerydataset${uniqueId} | ||
namespace: ${uniqueId} | ||
spec: | ||
access: | ||
- role: OWNER | ||
specialGroup: projectOwners | ||
defaultCollation: und:ci | ||
defaultEncryptionConfiguration: | ||
kmsKeyRef: | ||
name: kmscryptokey-${uniqueId} | ||
defaultPartitionExpirationMs: 3600000 | ||
defaultTableExpirationMs: 3600000 | ||
description: Fully Configured BigQuery Dataset | ||
friendlyName: bigquerydataset-fullyconfigured | ||
isCaseInsensitive: true | ||
location: US | ||
maxTimeTravelHours: "72" | ||
projectRef: | ||
external: ${projectId} | ||
resourceID: bigquerydataset${uniqueId} | ||
storageBillingModel: LOGICAL | ||
status: | ||
conditions: | ||
- lastTransitionTime: "1970-01-01T00:00:00Z" | ||
message: The resource is up to date | ||
reason: UpToDate | ||
status: "True" | ||
type: Ready | ||
creationTime: "1970-01-01T00:00:00Z" | ||
etag: abcdef123456 | ||
lastModifiedTime: "1970-01-01T00:00:00Z" | ||
observedGeneration: 2 | ||
selfLink: https://bigquery.googleapis.com/bigquery/v2/projects/${projectId}/datasets/bigquerydataset${uniqueId} |
Oops, something went wrong.