Modify redshift schema (#4624)

This commit is contained in:
Ayush Shah 2022-05-03 16:27:07 +05:30 committed by GitHub
parent 2a6208f9b4
commit 5cf9799578
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 11 deletions

View File

@ -74,5 +74,5 @@
}
},
"additionalProperties": false,
"required": ["hostPort", "username"]
"required": ["hostPort", "username", "database"]
}

View File

@ -48,13 +48,3 @@ class TestConfig(TestCase):
)
url = get_connection_url(connection)
assert url == "redshift+psycopg2://username:password@localhost:1234/dev"
def test_redshift_url_without_db(self):
"""
Validate Redshift without DB URL building
"""
connection_without_db = RedshiftConnection(
username="username", password="password", hostPort="localhost:1234"
)
url_without_db = get_connection_url(connection_without_db)
assert url_without_db == "redshift+psycopg2://username:password@localhost:1234"