Skip to content

Commit

Permalink
Merge pull request GoogleCloudPlatform#2722 from xiaoweim/add_mock_co…
Browse files Browse the repository at this point in the history
…verage_bigquerydataset

test:add mockgcp test full suite for bigquerydataset
  • Loading branch information
google-oss-prow[bot] authored Sep 23, 2024
2 parents b3ba396 + 619a94f commit 15d222e
Show file tree
Hide file tree
Showing 6 changed files with 964 additions and 0 deletions.
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
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}
Loading

0 comments on commit 15d222e

Please sign in to comment.