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

Add SQL Endpoint specific integration tests. #45

Merged
merged 1 commit into from
Feb 3, 2022

Conversation

superdupershant
Copy link
Collaborator

Adds a new test profile and env variable DBT_DATABRICKS_ENDPOINT_HTTP_PATH

Description

Some features behave differently on sql endpoints vs spark clusters.

Adds a new test profile and env variable DBT_DATABRICKS_ENDPOINT_HTTP_PATH
[testenv:integration-spark-databricks-sql-endpoint-connector]
basepython = python3.8
commands = /bin/bash -c '{envpython} -m pytest -v tests/specs/spark-databricks-sql-endpoint-connector.dbtspec'
/bin/bash -c '{envpython} -m pytest -v -m profile_databricks_sql_connector {posargs} -n4 tests/integration/*'
Copy link
Collaborator

@ueshin ueshin Feb 3, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The profile name should be profile_databricks_sql_endpoint_connector, and we need to enable the custom integration tests for the profile, e.g., in test_incremental_strategies.py:

    @use_profile("databricks_sql_endpoint_connector")
    def test_default_append_databricks_sql_endpoint_connector(self):
        self.run_and_test()

@ueshin
Copy link
Collaborator

ueshin commented Feb 3, 2022

Thanks! I'd merge this now, and address my comment and refine the integration tests.

@ueshin ueshin merged commit 19fd451 into databricks:main Feb 3, 2022
ueshin pushed a commit that referenced this pull request Feb 4, 2022
Adds a new test profile and env variable DBT_DATABRICKS_ENDPOINT_HTTP_PATH

### Description

Some features behave differently on sql endpoints vs spark clusters.
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