Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: Support local integration tests for Teradata, Postgres and SQL Server #360

Conversation

ajw0100
Copy link
Contributor

@ajw0100 ajw0100 commented Jan 24, 2022

Ideally, I'd like to run the integration tests before submitting a PR.

After some brief searching around, I concluded the best way to do that for TD is with the TD Vantage Express VM
which uses dbc not udf as its user name.

Also, since Cloud SQL cannot re-use the same instance name until 1 week after deletion and the tests currently hard code the instance name, it's easier/cheaper to run the PG and MSSQL integration tests against local docker containers.

Changes made:

  • test: optionally get Teradata user name from TERADATA_USER env var

  • test: add --no-cloud-sql flag to pytest options

  • test: instantiate CloudSQLResourceManager in a fixture when --no-cloud-sql is not passed

  • test: optionally get Postgres host from POSTGRES_HOST env var

  • test: optionally get SQL Server host from SQL_SERVER_HOST env var

  • test: optionally get SQL server user from SQL_SERVER_USER env var

…Server

* test: get Teradata user name from TERADATA_USER env var

* test: add --no-cloud-sql flag to pytest options

* test: instantiate CloudSQLResourceManager in a fixture when --no-cloud-sql is not passed

* test: optionally get Postgres host from POSTGRES_HOST env var

* test: optionally get SQL Server host from SQL_SERVER_HOST env var

* test: optionally get SQL server user from SQL_SERVER_USER env var
@ajw0100
Copy link
Contributor Author

ajw0100 commented Jan 24, 2022

Also, I just started working at Google a few months ago: ajwelch@. Feel free to ping me internally if there's anything I need to do for the CLA.

@nehanene15 nehanene15 self-requested a review February 1, 2022 22:37
@ajwelch4
Copy link
Member

ajwelch4 commented Feb 1, 2022

Closed in favor of #364 which was submitted from my official Google account.

@ajw0100 ajw0100 closed this Feb 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants