-
Notifications
You must be signed in to change notification settings - Fork 179
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
[Bug] Silent SSO token expiration #1072
Conversation
… bug/851-silent-sso-token-expiration
looking into the further up swap to a looking at
falling back to dbt-adapters and looking at the method defined there as part of
applying breakpoint here and checking type and str of
I'm looking into where the the current idea is class |
… bug/851-silent-sso-token-expiration
tests/functional/oauth/test_oauth.py
Outdated
@@ -88,3 +90,28 @@ def models(self): | |||
def test_snowflake_basic(self, project): | |||
run_dbt() | |||
check_relations_equal(project.adapter, ["MODEL_3", "MODEL_4"]) | |||
|
|||
|
|||
class TestSnowflakeOAuthExpiration: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking at the test run logs I think the issue here is that as part of test setup we are creating a connection with the database so it's failing in test setup and not in the test_token_expiration
method
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated the test, it hits the error then for some reason continues on into a RunTimeError as well
… bug/851-silent-sso-token-expiration
… bug/851-silent-sso-token-expiration
… bug/851-silent-sso-token-expiration
…com/dbt-labs/dbt-snowflake into bug/851-silent-sso-token-expiration
resolves #851
Problem
Expired SSO tokens fail silently.
Solution
Catch the specific exception for an expired SSO token and raise it so the user is aware of why the connection is failing.
Checklist