Skip to content

Commit

Permalink
Source Stripe: enable high strictness level
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-yermilov-gl committed Feb 27, 2023
1 parent 4e963d5 commit 4128779
Show file tree
Hide file tree
Showing 5 changed files with 122 additions and 43 deletions.
2 changes: 1 addition & 1 deletion airbyte-integrations/connectors/source-stripe/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ COPY main.py ./
ENV AIRBYTE_ENTRYPOINT "python /airbyte/integration_code/main.py"
ENTRYPOINT ["python", "/airbyte/integration_code/main.py"]

LABEL io.airbyte.version=3.0.0
LABEL io.airbyte.version=3.0.1
LABEL io.airbyte.name=airbyte/source-stripe
Original file line number Diff line number Diff line change
@@ -1,50 +1,67 @@
connector_image: airbyte/source-stripe:dev
tests:
test_strictness_level: high
acceptance_tests:
spec:
tests:
- spec_path: "source_stripe/spec.yaml"
connection:
- config_path: "secrets/config.json"
status: "succeed"
- config_path: "secrets/connected_account_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"
discovery:
- config_path: "secrets/config.json"
backward_compatibility_tests_config:
disable_for_version: "2.0.0"
- config_path: "secrets/connected_account_config.json"
backward_compatibility_tests_config:
disable_for_version: "2.0.0"
tests:
- config_path: "secrets/config.json"
backward_compatibility_tests_config:
disable_for_version: "2.0.0"
basic_read:
- config_path: "secrets/config.json"
configured_catalog_path: "integration_tests/full_refresh_configured_catalog.json"
empty_streams: ["bank_accounts", "checkout_sessions", "checkout_sessions_line_items", "external_account_bank_accounts"]
# TEST 1 - Reading catalog without invoice_line_items
- config_path: "secrets/config.json"
configured_catalog_path: "integration_tests/non_invoice_line_items_catalog.json"
empty_streams: ["transfers"]
timeout_seconds: 3600
# TEST 2 - Reading data from account that has no records for stream Disputes
- config_path: "secrets/connected_account_config.json"
configured_catalog_path: "integration_tests/connected_account_configured_catalog.json"
timeout_seconds: 3600
tests:
- config_path: "secrets/config.json"
empty_streams:
- name: "bank_accounts"
bypass_reason: "This stream can't be seeded in our sandbox account"
- name: "external_account_bank_accounts"
bypass_reason: "This stream can't be seeded in our sandbox account"
- name: "external_account_cards"
bypass_reason: "This stream can't be seeded in our sandbox account"
- name: "checkout_sessions"
bypass_reason: "This stream can't be seeded in our sandbox account"
- name: "checkout_sessions_line_items"
bypass_reason: "This stream can't be seeded in our sandbox account"
- name: "transfers"
bypass_reason: "This stream can't be seeded in our sandbox account"
expect_records:
path: "integration_tests/expected_records.jsonl"
extra_fields: no
exact_order: no
extra_records: yes
ignored_fields:
invoices:
- name: invoice_pdf
bypass_reason: "fast changing data"
- name: hosted_invoice_url
bypass_reason: "fast changing data"
charges:
- name: receipt_url
bypass_reason: "fast changing data"
payment_intents:
- name: receipt_url
bypass_reason: "fast changing data"
- name: charges/data/*/receipt_url
bypass_reason: "fast changing data"
incremental:
- config_path: "secrets/config.json"
configured_catalog_path: "integration_tests/non_invoice_line_items_catalog.json"
future_state_path: "integration_tests/abnormal_state.json"
- config_path: "secrets/connected_account_config.json"
configured_catalog_path: "integration_tests/connected_account_configured_catalog.json"
future_state_path: "integration_tests/abnormal_state.json"
tests:
- config_path: "secrets/config.json"
future_state:
future_state_path: "integration_tests/abnormal_state.json"
full_refresh:
- config_path: "secrets/config.json"
configured_catalog_path: "integration_tests/non_invoice_line_items_catalog.json"
timeout_seconds: 3600
- config_path: "secrets/config.json"
configured_catalog_path: "integration_tests/full_refresh_configured_catalog.json"
- config_path: "secrets/connected_account_config.json"
configured_catalog_path: "integration_tests/connected_account_configured_catalog.json"
ignored_fields:
"invoices":
- invoice_pdf
- hosted_invoice_url
tests:
- config_path: "secrets/config.json"
timeout_seconds: 3600
ignored_fields:
invoices:
- name: invoice_pdf
bypass_reason: "fast changing data"
- name: hosted_invoice_url
bypass_reason: "fast changing data"
Empty file.
Loading

0 comments on commit 4128779

Please sign in to comment.