Skip to content

Commit

Permalink
test: Add BigQuery tests to AWS and GCP
Browse files Browse the repository at this point in the history
  • Loading branch information
erezrokah committed Dec 12, 2023
1 parent daf256a commit 7171982
Show file tree
Hide file tree
Showing 8 changed files with 80 additions and 8 deletions.
18 changes: 18 additions & 0 deletions transformations/aws/compliance-free/tests/bigquery.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
kind: source
spec:
name: aws
path: cloudquery/aws
version: "v22.19.2" # latest version of source aws plugin
destinations: ["bigquery"]
tables: ["*"]
---
kind: destination
spec:
name: bigquery
path: cloudquery/bigquery
registry: cloudquery
version: "v3.3.9"
write_mode: "append"
spec:
project_id: cq-integration-tests
dataset_id: policies_premium_ci_test
4 changes: 2 additions & 2 deletions transformations/aws/compliance-free/tests/profiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ aws_compliance: # This should match the name in your dbt_project.yml
dev-bigquery:
type: bigquery
method: oauth
project: cq-playground
dataset: bigquery-test # You can also use "schema" here
project: cq-integration-tests
dataset: policies_premium_ci_test # You can also use "schema" here
threads: 4 # Must be a value of 1 or greater
18 changes: 18 additions & 0 deletions transformations/aws/compliance-premium/tests/bigquery.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
kind: source
spec:
name: aws
path: cloudquery/aws
version: "v22.19.2" # latest version of source aws plugin
destinations: ["bigquery"]
tables: ["*"]
---
kind: destination
spec:
name: bigquery
path: cloudquery/bigquery
registry: cloudquery
version: "v3.3.9"
write_mode: "append"
spec:
project_id: cq-integration-tests
dataset_id: policies_premium_ci_test
4 changes: 2 additions & 2 deletions transformations/aws/compliance-premium/tests/profiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ aws_compliance: # This should match the name in your dbt_project.yml
dev-bigquery:
type: bigquery
method: oauth
project: cq-playground
dataset: bigquery-test # You can also use "schema" here
project: cq-integration-tests
dataset: policies_premium_ci_test # You can also use "schema" here
threads: 4 # Must be a value of 1 or greater
18 changes: 18 additions & 0 deletions transformations/gcp/compliance-free/tests/bigquery.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
kind: source
spec:
name: gcp
path: cloudquery/gcp
version: "v10.0.0" # latest version of source gcp plugin
destinations: ["bigquery"]
tables: ["*"]
---
kind: destination
spec:
name: bigquery
path: cloudquery/bigquery
registry: cloudquery
version: "v3.3.9"
write_mode: "append"
spec:
project_id: cq-integration-tests
dataset_id: policies_premium_ci_test
4 changes: 2 additions & 2 deletions transformations/gcp/compliance-free/tests/profiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ gcp_compliance: # This should match the name in your dbt_project.yml
dev-bigquery:
type: bigquery
method: oauth
project: cq-playground
dataset: bigquery-test # You can also use "schema" here
project: cq-integration-tests
dataset: policies_premium_ci_test # You can also use "schema" here
threads: 4 # Must be a value of 1 or greater
18 changes: 18 additions & 0 deletions transformations/gcp/compliance-premium/tests/bigquery.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
kind: source
spec:
name: gcp
path: cloudquery/gcp
version: "v10.0.0" # latest version of source gcp plugin
destinations: ["bigquery"]
tables: ["*"]
---
kind: destination
spec:
name: bigquery
path: cloudquery/bigquery
registry: cloudquery
version: "v3.3.9"
write_mode: "append"
spec:
project_id: cq-integration-tests
dataset_id: policies_premium_ci_test
4 changes: 2 additions & 2 deletions transformations/gcp/compliance-premium/tests/profiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ gcp_compliance: # This should match the name in your dbt_project.yml
dev-bigquery:
type: bigquery
method: oauth
project: cq-playground
dataset: bigquery-test # You can also use "schema" here
project: cq-integration-tests
dataset: policies_premium_ci_test # You can also use "schema" here
threads: 4 # Must be a value of 1 or greater

0 comments on commit 7171982

Please sign in to comment.