-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'augustin/11-13-live-tests_handle_multiple_connections' …
…of github.com:airbytehq/airbyte into augustin/11-13-live-tests_handle_multiple_connections
- Loading branch information
Showing
9 changed files
with
257 additions
and
122 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,8 +29,7 @@ pytest = "^8.1.1" | |
pydash = "~=7.0.7" | ||
docker = ">=6,<7" | ||
asyncclick = "^8.1.7.1" | ||
# Pinning until we can manage multiple connections returned by the new connection-retriever version | ||
connection-retriever = {git = "[email protected]:airbytehq/airbyte-platform-internal", subdirectory = "tools/connection-retriever", rev = "f7359106b28e5197e45b3c8524c4f72a314805a2"} | ||
connection-retriever = {git = "[email protected]:airbytehq/airbyte-platform-internal", subdirectory = "tools/connection-retriever"} | ||
duckdb = "<=0.10.1" # Pinned due to this issue https://github.com/duckdb/duckdb/issues/11152 | ||
pandas = "^2.2.1" | ||
pytest-sugar = "^1.0.0" | ||
|
209 changes: 133 additions & 76 deletions
209
airbyte-ci/connectors/live-tests/src/live_tests/commons/connection_objects_retrieval.py
Large diffs are not rendered by default.
Oops, something went wrong.
23 changes: 23 additions & 0 deletions
23
airbyte-ci/connectors/live-tests/src/live_tests/commons/hacks.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Copyright (c) 2024 Airbyte, Inc., all rights reserved. | ||
|
||
import copy | ||
|
||
import rich | ||
|
||
console = rich.get_console() | ||
|
||
|
||
def patch_configured_catalog(configured_catalog: dict) -> dict: | ||
""" | ||
The configured catalog extracted from the platform can be incompatible with the airbyte-protocol. | ||
This leads to validation error when we serialize the configured catalog into a ConfiguredAirbyteCatalog object. | ||
This functions is a best effort to patch the configured catalog to make it compatible with the airbyte-protocol. | ||
""" | ||
patched_catalog = copy.deepcopy(configured_catalog) | ||
for stream in patched_catalog["streams"]: | ||
if stream.get("destination_sync_mode") == "overwrite_dedup": | ||
stream["destination_sync_mode"] = "overwrite" | ||
console.log( | ||
f"Stream {stream['stream']['name']} destination_sync_mode has been patched from 'overwrite_dedup' to 'overwrite' to guarantee compatibility with the airbyte-protocol." | ||
) | ||
return patched_catalog |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.