-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Faker V0.3 - CDK, consistent naming, determinism, display name, and S…
…AT (#19490) * better comment to show sync types * WIP - basics in place * test cleanup * emit `AirbyteEstimateTraceMessage` * assert estimates emitted * unit tests passing * format * flake * check tests * add newline * lint * check in with new file name * bump acceptance test yml * acceptance test progress * deterministic purchases * SAT making progress * better disable * adjust yaml * change abnormal_state.json format * per-stream state * products for abnormal state * products have state + incremental * purchases state = total_user_records * update docs and name * disable proper version * typo * try disable 0.2.1 * kwargs * v1.0.0 * lint * backward_compatibility_tests_config * auto-bump connector version Co-authored-by: alafanechere <augustin.lafanechere@gmail.com> Co-authored-by: Octavia Squidington III <octavia-squidington-iii@users.noreply.github.com>
- Loading branch information
1 parent
b4a334e
commit 1e160b2
Showing
23 changed files
with
739 additions
and
427 deletions.
There are no files selected for viewing
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
59 changes: 35 additions & 24 deletions
59
airbyte-integrations/connectors/source-faker/acceptance-test-config.yml
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 |
---|---|---|
@@ -1,29 +1,40 @@ | ||
# See [Source Acceptance Tests](https://docs.airbyte.com/connector-development/testing-connectors/source-acceptance-tests-reference) | ||
# for more information about how to configure these tests | ||
connector_image: airbyte/source-faker:dev | ||
tests: | ||
spec: | ||
- spec_path: "source_faker/spec.json" | ||
test_strictness_level: high | ||
acceptance_tests: | ||
connection: | ||
- config_path: "secrets/config.json" | ||
status: "succeed" | ||
- config_path: "integration_tests/invalid_config.json" | ||
status: "failed" | ||
tests: | ||
- config_path: secrets/config.json | ||
status: succeed | ||
- config_path: integration_tests/invalid_config.json | ||
status: failed | ||
spec: | ||
tests: | ||
- spec_path: source_faker/spec.json | ||
discovery: | ||
- config_path: "secrets/config.json" | ||
tests: | ||
- config_path: secrets/config.json | ||
backward_compatibility_tests_config: | ||
disable_for_version: "0.2.1" | ||
basic_read: | ||
- config_path: "secrets/config.json" | ||
configured_catalog_path: "integration_tests/configured_catalog.json" | ||
empty_streams: [] | ||
expect_records: | ||
path: "integration_tests/expected_records.txt" | ||
extra_fields: no | ||
exact_order: yes | ||
extra_records: no | ||
tests: | ||
- config_path: secrets/config.json | ||
empty_streams: [] | ||
expect_records: | ||
path: integration_tests/expected_records.jsonl | ||
exact_order: true | ||
extra_fields: false | ||
extra_records: false | ||
full_refresh: | ||
- config_path: "secrets/config.json" | ||
configured_catalog_path: "integration_tests/configured_catalog.json" | ||
ignored_fields: | ||
"Users": | ||
- created_at | ||
- updated_at | ||
tests: | ||
- config_path: secrets/config.json | ||
configured_catalog_path: integration_tests/configured_catalog.json | ||
ignored_fields: | ||
users: | ||
- created_at | ||
- updated_at | ||
incremental: | ||
tests: | ||
- config_path: secrets/config.json | ||
configured_catalog_path: integration_tests/configured_catalog.json | ||
future_state: | ||
future_state_path: integration_tests/abnormal_state.json |
38 changes: 34 additions & 4 deletions
38
airbyte-integrations/connectors/source-faker/integration_tests/abnormal_state.json
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 |
---|---|---|
@@ -1,5 +1,35 @@ | ||
{ | ||
"Users": { | ||
"cursor": -1 | ||
[ | ||
{ | ||
"type": "STREAM", | ||
"stream": { | ||
"stream_state": { | ||
"id": 11 | ||
}, | ||
"stream_descriptor": { | ||
"name": "users" | ||
} | ||
} | ||
}, | ||
{ | ||
"type": "STREAM", | ||
"stream": { | ||
"stream_state": { | ||
"user_id": 11 | ||
}, | ||
"stream_descriptor": { | ||
"name": "purchases" | ||
} | ||
} | ||
}, | ||
{ | ||
"type": "STREAM", | ||
"stream": { | ||
"stream_state": { | ||
"id": 101 | ||
}, | ||
"stream_descriptor": { | ||
"name": "products" | ||
} | ||
} | ||
} | ||
} | ||
] |
2 changes: 1 addition & 1 deletion
2
airbyte-integrations/connectors/source-faker/integration_tests/catalog.json
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.