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

Source Paypal Transaction: enable SAT high strictness #21593

Merged
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,36 +1,41 @@
# 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-paypal-transaction:dev
tests:
spec:
- spec_path: "source_paypal_transaction/spec.json"
acceptance_tests:
basic_read:
tests:
- config_path: secrets/config.json
empty_streams:
- name: balances
bypass_reason: "value of 'last_refresh_time' field changes during every read"
timeout_seconds: 1200
expect_records:
path: "integration_tests/expected_records.jsonl"
extra_fields: no
exact_order: no
extra_records: yes
connection:
- config_path: "secrets/config.json"
status: "succeed"
- config_path: "integration_tests/invalid_config.json"
status: "failed"
- config_path: "secrets/config_oauth.json"
status: "succeed"
- config_path: "integration_tests/invalid_config_oauth.json"
status: "failed"
tests:
- config_path: secrets/config.json
status: succeed
- config_path: integration_tests/invalid_config.json
status: failed
- config_path: secrets/config_oauth.json
status: succeed
- config_path: integration_tests/invalid_config_oauth.json
status: failed
discovery:
- config_path: "secrets/config.json"
basic_read:
# Sometimes test could fail (on weekends) because transactions could temporary disappear from Paypal Sandbox account
- config_path: "secrets/config.json"
configured_catalog_path: "integration_tests/configured_catalog.json"
empty_streams: ["transactions"]
# Two-sequence read is failing because of "last_refresh_time" property inside of response,
# It is enough to have basic_read test for all the records to check.
# full_refresh:
# - config_path: "secrets/config.json"
# configured_catalog_path: "integration_tests/configured_catalog.json"
# incremental:
# Only "Transactions" stream is tested here because "Balances" stream always return
# at least one message (and causes test failure)
# - config_path: "secrets/config.json"
# configured_catalog_path: "integration_tests/configured_catalog_transactions.json"
# future_state_path: "integration_tests/abnormal_state.json"
# cursor_paths:
# transactions: ["date"]

tests:
- config_path: secrets/config.json
full_refresh:
tests:
- config_path: secrets/config.json
configured_catalog_path: integration_tests/configured_catalog.json
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
spec:
tests:
- spec_path: source_paypal_transaction/spec.json
connector_image: airbyte/source-paypal-transaction:dev
test_strictness_level: high
Original file line number Diff line number Diff line change
@@ -1,8 +1,24 @@
{
"transactions": {
"date": "2021-07-11T23:00:00+00:00"
[
{
"type": "STREAM",
"stream": {
"stream_state": {
"date": "2023-06-09T00:00:00+00:00"
},
"stream_descriptor": {
"name": "balances"
}
}
},
"balances": {
"date": "2021-07-11T23:00:00+00:00"
{
"type": "STREAM",
"stream": {
"stream_state": {
"date": "2023-06-09T00:00:00+00:00"
},
"stream_descriptor": {
"name": "transactions"
}
}
}
}
]
Loading