diff --git a/catalog-rest-service/src/main/resources/json/schema/entity/services/connections/database/redshiftConnection.json b/catalog-rest-service/src/main/resources/json/schema/entity/services/connections/database/redshiftConnection.json index c60bbbe3c9d..f021f3b06f1 100644 --- a/catalog-rest-service/src/main/resources/json/schema/entity/services/connections/database/redshiftConnection.json +++ b/catalog-rest-service/src/main/resources/json/schema/entity/services/connections/database/redshiftConnection.json @@ -74,5 +74,5 @@ } }, "additionalProperties": false, - "required": ["hostPort", "username"] + "required": ["hostPort", "username", "database"] } diff --git a/ingestion/tests/unit/test_source_url.py b/ingestion/tests/unit/test_source_url.py index 15b4ef56538..29971a43267 100644 --- a/ingestion/tests/unit/test_source_url.py +++ b/ingestion/tests/unit/test_source_url.py @@ -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"