Skip to content

Commit

Permalink
Feat: test base64 decoding also for url-representation
Browse files Browse the repository at this point in the history
  • Loading branch information
Skynet committed Sep 26, 2023
1 parent a3a295e commit 027f42e
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions tests/load/snowflake/test_snowflake_configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,18 @@ def test_connection_string_with_all_params() -> None:
creds = SnowflakeCredentials()
creds.parse_native_representation(url)

assert creds.database == "db1"
assert creds.username == "user1"
assert creds.password == "pass1"
assert creds.host == "host1"
assert creds.warehouse == "warehouse1"
assert creds.role == "role1"
assert creds.private_key == "pk"
assert creds.private_key_passphrase == "paphr"
params = creds.to_connector_params()

assert params == dict(
database = "db1",
username = "user1",
password = "pass1",
host = "host1",
warehouse = "warehouse1",
role = "role1",
private_key = "pk",
private_key_passphrase = "paphr"
)

expected = make_url(url)

Expand Down

0 comments on commit 027f42e

Please sign in to comment.