diff --git a/providers/airbyte/src/airflow/providers/airbyte/hooks/airbyte.py b/providers/airbyte/src/airflow/providers/airbyte/hooks/airbyte.py index 494ab660b25ca..51233a477af6f 100644 --- a/providers/airbyte/src/airflow/providers/airbyte/hooks/airbyte.py +++ b/providers/airbyte/src/airflow/providers/airbyte/hooks/airbyte.py @@ -103,7 +103,12 @@ def get_ui_field_behaviour(cls) -> dict[str, Any]: "extra", "port", ], - "relabeling": {"login": "Client ID", "password": "Client Secret", "schema": "Token URL"}, + "relabeling": { + "host": "Server URL", + "login": "Client ID", + "password": "Client Secret", + "schema": "Token URL", + }, "placeholders": {}, } diff --git a/providers/airbyte/tests/unit/airbyte/hooks/test_airbyte.py b/providers/airbyte/tests/unit/airbyte/hooks/test_airbyte.py index 9dd563da9aaa9..4559beb3359d6 100644 --- a/providers/airbyte/tests/unit/airbyte/hooks/test_airbyte.py +++ b/providers/airbyte/tests/unit/airbyte/hooks/test_airbyte.py @@ -224,3 +224,18 @@ def test_create_api_session_with_proxy(self): # Check if the session is created correctly assert hook.airbyte_api is not None assert hook.airbyte_api.sdk_configuration.client.proxies == self._mock_proxy["proxies"] + + def test_get_ui_field_behaviour(self): + """ + Test the UI field behavior configuration for Airbyte connections. + """ + assert AirbyteHook.get_ui_field_behaviour() == { + "hidden_fields": ["extra", "port"], + "relabeling": { + "host": "Server URL", + "login": "Client ID", + "password": "Client Secret", + "schema": "Token URL", + }, + "placeholders": {}, + }