Skip to content

Commit b1dfeed

Browse files
sherifnadaakashkulkoctavia-squidington-iii
authored
Source Fauna: fix unit tests (#19534)
* Source Fauna: fix unit tests * Bump version in dockerfile * Update fauna.md * auto-bump connector version Co-authored-by: Akash Kulkarni <113392464+akashkulk@users.noreply.github.com> Co-authored-by: Octavia Squidington III <octavia-squidington-iii@users.noreply.github.com>
1 parent d87b38d commit b1dfeed

File tree

6 files changed

+13
-6
lines changed

6 files changed

+13
-6
lines changed

airbyte-config/init/src/main/resources/seed/source_definitions.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@
452452
- name: Fauna
453453
sourceDefinitionId: 3825db3e-c94b-42ac-bd53-b5a9507ace2b
454454
dockerRepository: airbyte/source-fauna
455-
dockerImageTag: dev
455+
dockerImageTag: 0.1.0
456456
documentationUrl: https://docs.airbyte.com/integrations/sources/fauna
457457
icon: fauna.svg
458458
sourceType: database

airbyte-config/init/src/main/resources/seed/source_specs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3774,7 +3774,7 @@
37743774
supportsNormalization: false
37753775
supportsDBT: false
37763776
supported_destination_sync_modes: []
3777-
- dockerImage: "airbyte/source-fauna:dev"
3777+
- dockerImage: "airbyte/source-fauna:0.1.0"
37783778
spec:
37793779
documentationUrl: "https://github.com/fauna/airbyte/blob/source-fauna/docs/integrations/sources/fauna.md"
37803780
connectionSpecification:

airbyte-integrations/connectors/source-fauna/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,5 @@ COPY source_fauna ./source_fauna
3434
ENV AIRBYTE_ENTRYPOINT "python /airbyte/integration_code/main.py"
3535
ENTRYPOINT ["python", "/airbyte/integration_code/main.py"]
3636

37-
LABEL io.airbyte.version=dev
37+
LABEL io.airbyte.version=0.1.0
3838
LABEL io.airbyte.name=airbyte/source-fauna

airbyte-integrations/connectors/source-fauna/unit_tests/database_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ def run_removes_order_test(source: SourceFauna, logger, stream: ConfiguredAirbyt
228228

229229
def run_general_remove_test(source: SourceFauna, logger):
230230
stream = ConfiguredAirbyteStream(
231-
stream=AirbyteStream(name="deletions_test", json_schema={}),
231+
stream=AirbyteStream(name="deletions_test", json_schema={}, supported_sync_modes=[SyncMode.incremental, SyncMode.full_refresh]),
232232
sync_mode=SyncMode.incremental,
233233
destination_sync_mode=DestinationSyncMode.append_dedup,
234234
)
@@ -478,7 +478,7 @@ def run_updates_test(db_data, source: SourceFauna, logger, catalog: ConfiguredAi
478478
def run_test(db_data, source: SourceFauna):
479479
logger = mock_logger()
480480
stream = ConfiguredAirbyteStream(
481-
stream=AirbyteStream(name="foo", json_schema={}),
481+
stream=AirbyteStream(name="foo", json_schema={}, supported_sync_modes=[SyncMode.incremental, SyncMode.full_refresh]),
482482
sync_mode=SyncMode.incremental,
483483
destination_sync_mode=DestinationSyncMode.append_dedup,
484484
)

airbyte-integrations/connectors/source-fauna/unit_tests/incremental_test.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ def read_removes_hardcoded(
115115
stream=AirbyteStream(
116116
name="my_stream_name",
117117
json_schema={},
118+
supported_sync_modes=[SyncMode.incremental, SyncMode.full_refresh]
118119
),
119120
)
120121
]
@@ -226,6 +227,7 @@ def read_removes_hardcoded(
226227
stream=AirbyteStream(
227228
name="my_stream_name",
228229
json_schema={},
230+
supported_sync_modes=[SyncMode.incremental, SyncMode.full_refresh]
229231
),
230232
)
231233
]
@@ -683,6 +685,7 @@ def query_hardcoded(expr):
683685
stream=AirbyteStream(
684686
name="my_stream_name",
685687
json_schema={},
688+
supported_sync_modes=[SyncMode.incremental, SyncMode.full_refresh]
686689
),
687690
),
688691
CollectionConfig(page_size=PAGE_SIZE),
@@ -719,6 +722,7 @@ def query_hardcoded(expr):
719722
stream=AirbyteStream(
720723
name="my_stream_name",
721724
json_schema={},
725+
supported_sync_modes=[SyncMode.incremental, SyncMode.full_refresh]
722726
),
723727
),
724728
CollectionConfig(page_size=PAGE_SIZE),
@@ -741,6 +745,7 @@ def query_hardcoded(expr):
741745
stream=AirbyteStream(
742746
name="my_stream_name",
743747
json_schema={},
748+
supported_sync_modes=[SyncMode.incremental, SyncMode.full_refresh]
744749
),
745750
),
746751
CollectionConfig(page_size=PAGE_SIZE),
@@ -854,6 +859,7 @@ def query_hardcoded(expr):
854859
stream=AirbyteStream(
855860
name="my_stream_name",
856861
json_schema={},
862+
supported_sync_modes=[SyncMode.incremental, SyncMode.full_refresh]
857863
),
858864
),
859865
CollectionConfig(page_size=PAGE_SIZE),
@@ -885,6 +891,7 @@ def query_hardcoded(expr):
885891
stream=AirbyteStream(
886892
name="my_stream_name",
887893
json_schema={},
894+
supported_sync_modes=[SyncMode.incremental, SyncMode.full_refresh]
888895
),
889896
),
890897
CollectionConfig(page_size=PAGE_SIZE),

docs/integrations/sources/fauna.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,4 +224,4 @@ FQL [`Select`](https://docs.fauna.com/fauna/current/api/fql/functions/select) is
224224

225225
| Version | Date | Pull Request | Subject |
226226
| ------- | ---------- | -------------------------------------------------------- | ---------------- |
227-
| 0.1.0 | 2022-08-03 | [15274](https://github.com/airbytehq/airbyte/pull/15274) | Add Fauna Source |
227+
| 0.1.0 | 2022-11-17 | [15274](https://github.com/airbytehq/airbyte/pull/15274) | Add Fauna Source |

0 commit comments

Comments
 (0)