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

BI-5376: Add db_name validation #490

Merged
merged 5 commits into from
Jun 26, 2024
Merged

BI-5376: Add db_name validation #490

merged 5 commits into from
Jun 26, 2024

Conversation

br0vk1n-ia
Copy link
Contributor

No description provided.

@br0vk1n-ia br0vk1n-ia force-pushed the add_db_name_validation branch from e80b1bf to 280627c Compare June 17, 2024 07:36
bi_headers: Optional[dict[str, str]],
connection_params: dict,
) -> None:
if not self.uses_classic_sql_connection_schema:
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe let's skip the test on this sort of condition?

if "db_name" not in connection_params:
    pytest.skip("No db_name field in schema")

This way we won't need to bother about what schema each connector uses and can throw away the uses_classic_sql_connection_schema flag

@br0vk1n-ia
Copy link
Contributor Author

all tests passed

@br0vk1n-ia br0vk1n-ia merged commit aed73ce into main Jun 26, 2024
57 checks passed
@br0vk1n-ia br0vk1n-ia deleted the add_db_name_validation branch June 26, 2024 06:36
@KonstantAnxiety KonstantAnxiety added component/connectors Connectors changelog Changes should be included in changelog type/feat New features labels Aug 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog Changes should be included in changelog component/connectors Connectors type/feat New features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants