mirror of
https://github.com/datahub-project/datahub.git
synced 2025-07-05 08:07:04 +00:00
17 lines
416 B
Python
17 lines
416 B
Python
![]() |
from datahub.ingestion.source.sql.vertica import VerticaConfig
|
||
|
|
||
|
|
||
|
def test_vertica_uri_https():
|
||
|
config = VerticaConfig.parse_obj(
|
||
|
{
|
||
|
"username": "user",
|
||
|
"password": "password",
|
||
|
"host_port": "host:5433",
|
||
|
"database": "db",
|
||
|
}
|
||
|
)
|
||
|
assert (
|
||
|
config.get_sql_alchemy_url()
|
||
|
== "vertica+vertica_python://user:password@host:5433/db"
|
||
|
)
|