mirror of
https://github.com/apache/superset.git
synced 2026-04-20 16:44:46 +00:00
feat: filter parameters from DB API (#21248)
This commit is contained in:
@@ -504,7 +504,15 @@ def test_base_parameters_mixin():
|
||||
)
|
||||
|
||||
parameters_from_uri = PostgresEngineSpec.get_parameters_from_uri(sqlalchemy_uri)
|
||||
assert parameters_from_uri == parameters
|
||||
assert parameters_from_uri == {
|
||||
"username": "username",
|
||||
"password": "password",
|
||||
"host": "localhost",
|
||||
"port": 5432,
|
||||
"database": "dbname",
|
||||
"query": {"foo": "bar"},
|
||||
"encryption": True,
|
||||
}
|
||||
|
||||
json_schema = PostgresEngineSpec.parameters_json_schema()
|
||||
assert json_schema == {
|
||||
|
||||
Reference in New Issue
Block a user