Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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": {},
}

Expand Down
15 changes: 15 additions & 0 deletions providers/airbyte/tests/unit/airbyte/hooks/test_airbyte.py
Original file line number Diff line number Diff line change
Expand Up @@ -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": {},
}