Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

connector acceptance tests: fix regression in test_airbyte_trace_message_on_failure #44595

Merged
merged 1 commit into from
Aug 23, 2024
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
@@ -1,5 +1,9 @@
# Changelog

## 3.9.3

Undo failure trace message test case changes from 3.9.1

## 3.9.2

Relax test_oneof_usage criteria for constant value definitions.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1158,29 +1158,17 @@ async def test_airbyte_trace_message_on_failure(self, connector_config, inputs:

invalid_configured_catalog = ConfiguredAirbyteCatalog(
streams=[
# Create ConfiguredAirbyteStream without validation.
#
# Care must be taken for the created object to be valid regardless.
# Connectors using the Bulk CDK will perform schema validation
# https://github.com/airbytehq/airbyte/blob/master/airbyte-cdk/bulk/core/base/src/main/kotlin/io/airbyte/cdk/command/ConfiguredCatalogFactory.kt#L29
# Create ConfiguredAirbyteStream which is deliberately invalid
# with regard to the Airbyte Protocol.
# This should cause the connector to fail.
ConfiguredAirbyteStream.construct(
stream=AirbyteStream(
name="__AIRBYTE__stream_that_does_not_exist",
namespace="__AIRBYTE__namespace_that_does_not_exist",
json_schema={"type": "object", "properties": {"f1": {"type": "string"}}},
supported_sync_modes=[SyncMode.full_refresh],
source_defined_primary_key=[],
source_defined_cursor=False,
default_cursor_field=[],
is_resumable=False,
),
sync_mode=SyncMode.full_refresh,
destination_sync_mode=DestinationSyncMode.append,
primary_key=[],
cursor_field=[],
minimum_generation_id=1,
generation_id=1,
sync_id=1,
sync_mode="INVALID",
destination_sync_mode="INVALID",
)
]
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"

[tool.poetry]
name = "connector-acceptance-test"
version = "3.9.2"
version = "3.9.3"
description = "Contains acceptance tests for connectors."
authors = ["Airbyte <contact@airbyte.io>"]
license = "MIT"
Expand Down
Loading