Skip to content

Commit

Permalink
connector acceptance tests: fix regression in test_airbyte_trace_mess…
Browse files Browse the repository at this point in the history
…age_on_failure
  • Loading branch information
Marius Posta committed Aug 23, 2024
1 parent 59d0cb6 commit 3099108
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 18 deletions.
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

0 comments on commit 3099108

Please sign in to comment.