Skip to content
This repository has been archived by the owner on Dec 4, 2024. It is now read-only.

New env vars for integration tests #29

Merged
merged 1 commit into from
Jun 18, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Use new test env vars
  • Loading branch information
jtcohen6 committed Jun 18, 2020
commit 82cc5232672f568b43c424feb49cfba996279576
14 changes: 5 additions & 9 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,6 @@ jobs:
steps:
- checkout

- run:
run: setup_creds
command: |
echo $GCLOUD_SERVICE_KEY | base64 --decode --ignore-garbage > ${HOME}/gcloud-service-key.json

- restore_cache:
key: deps1-{{ .Branch }}

Expand All @@ -33,10 +28,11 @@ jobs:
- run:
name: "Run Tests - Postgres"
environment:
CI_DBT_USER: root
CI_DBT_PASS: ''
CI_DBT_PORT: 5432
CI_DBT_DBNAME: circle_test
POSTGRES_TEST_HOST: localhost
POSTGRES_TEST_USER: root
POSTGRES_TEST_PASS: ''
POSTGRES_TEST_PORT: 5432
POSTGRES_TEST_DBNAME: circle_test
command: |
. venv/bin/activate
cd integration_tests
Expand Down
36 changes: 18 additions & 18 deletions integration_tests/ci/sample.profiles.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

# HEY! This file is used in the dbt-utils integrations tests with CircleCI.
# HEY! This file is used in the dbt-event-logging integrations tests with CircleCI.
# You should __NEVER__ check credentials into version control. Thanks for reading :)

config:
Expand All @@ -11,31 +11,31 @@ integration_tests:
outputs:
postgres:
type: postgres
host: localhost
user: "{{ env_var('CI_DBT_USER') }}"
pass: "{{ env_var('CI_DBT_PASS') }}"
port: "{{ env_var('CI_DBT_PORT') }}"
dbname: "{{ env_var('CI_DBT_DBNAME') }}"
host: "{{ env_var('POSTGRES_TEST_HOST') }}"
user: "{{ env_var('POSTGRES_TEST_USER') }}"
pass: "{{ env_var('POSTGRES_TEST_PASS') }}"
port: "{{ env_var('POSTGRES_TEST_PORT') }}"
dbname: "{{ env_var('POSTGRES_TEST_DBNAME') }}"
schema: event_logging_integration_tests_postgres
threads: 1

redshift:
type: redshift
host: "{{ env_var('CI_REDSHIFT_DBT_HOST') }}"
user: "{{ env_var('CI_REDSHIFT_DBT_USER') }}"
pass: "{{ env_var('CI_REDSHIFT_DBT_PASS') }}"
dbname: "{{ env_var('CI_REDSHIFT_DBT_DBNAME') }}"
port: 5439
host: "{{ env_var('REDSHIFT_TEST_HOST') }}"
user: "{{ env_var('REDSHIFT_TEST_USER') }}"
pass: "{{ env_var('REDSHIFT_TEST_PASS') }}"
dbname: "{{ env_var('REDSHIFT_TEST_DBNAME') }}"
port: "{{ env_var('REDSHIFT_TEST_PORT') }}"
schema: event_logging_integration_tests_redshift
threads: 1

snowflake:
type: snowflake
account: "{{ env_var('CI_SNOWFLAKE_DBT_ACCOUNT') }}"
user: "{{ env_var('CI_SNOWFLAKE_DBT_USER') }}"
password: "{{ env_var('CI_SNOWFLAKE_DBT_PASS') }}"
role: "{{ env_var('CI_SNOWFLAKE_DBT_ROLE') }}"
database: "{{ env_var('CI_SNOWFLAKE_DBT_DATABASE') }}"
warehouse: "{{ env_var('CI_SNOWFLAKE_DBT_WAREHOUSE') }}"
account: "{{ env_var('SNOWFLAKE_TEST_ACCOUNT') }}"
user: "{{ env_var('SNOWFLAKE_TEST_USER') }}"
password: "{{ env_var('SNOWFLAKE_TEST_PASSWORD') }}"
role: "{{ env_var('SNOWFLAKE_TEST_ROLE') }}"
database: "{{ env_var('SNOWFLAKE_TEST_DATABASE') }}"
warehouse: "{{ env_var('SNOWFLAKE_TEST_WAREHOUSE') }}"
schema: event_logging_integration_tests_snowflake
threads: 1