Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Source Jira: Improved code to become BETA (#20128)
Signed-off-by: Sergey Chvalyuk <grubberr@gmail.com>
- Loading branch information
Showing
25 changed files
with
1,366 additions
and
13,182 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
75 changes: 38 additions & 37 deletions
75
airbyte-integrations/connectors/source-jira/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,44 +1,45 @@ | ||
# 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-jira:dev | ||
tests: | ||
acceptance_tests: | ||
spec: | ||
- spec_path: "source_jira/spec.json" | ||
backward_compatibility_tests_config: | ||
disable_for_version: "0.2.23" | ||
tests: | ||
- spec_path: "source_jira/spec.json" | ||
backward_compatibility_tests_config: | ||
disable_for_version: "0.2.23" | ||
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" | ||
discovery: | ||
- config_path: "secrets/config.json" | ||
backward_compatibility_tests_config: | ||
disable_for_version: "0.2.23" | ||
tests: | ||
- config_path: "secrets/config.json" | ||
backward_compatibility_tests_config: | ||
disable_for_version: "0.2.23" | ||
backward_compatibility_tests_config: | ||
disable_for_version: "0.3.0" | ||
basic_read: | ||
# TEST for the Labels stream | ||
- config_path: "secrets/config.json" | ||
configured_catalog_path: "integration_tests/labels_catalog.json" | ||
expect_records: | ||
path: "integration_tests/expected_label_records.txt" | ||
- config_path: "secrets/config.json" | ||
configured_catalog_path: "integration_tests/issues_configured_catalog.json" | ||
- config_path: "secrets/config.json" | ||
configured_catalog_path: "integration_tests/issue_worklogs_configured_catalog.json" | ||
- config_path: "secrets/config.json" | ||
configured_catalog_path: "integration_tests/projects_configured_catalog.json" | ||
empty_streams: ["project_permission_schemes"] | ||
- config_path: "secrets/config.json" | ||
configured_catalog_path: "integration_tests/workflows_configured_catalog.json" | ||
- config_path: "secrets/config.json" | ||
configured_catalog_path: "integration_tests/configured_catalog.json" | ||
empty_streams: ["epics", "screen_tab_fields", "sprint_issues", "sprints"] | ||
timeout_seconds: 1800 | ||
# incremental: | ||
# - config_path: "secrets/config.json" | ||
# configured_catalog_path: "integration_tests/inc_configured_catalog.json" | ||
# future_state_path: "integration_tests/abnormal_state.json" | ||
# Jira Source has a lot streams. It takes to long to sync them, which caused timeout error | ||
# full_refresh: | ||
# - config_path: "secrets/config.json" | ||
# configured_catalog_path: "integration_tests/full_configured_catalog.json" | ||
tests: | ||
- config_path: "secrets/config.json" | ||
configured_catalog_path: "integration_tests/configured_catalog.json" | ||
expect_records: | ||
path: "integration_tests/expected_records.txt" | ||
extra_fields: no | ||
exact_order: no | ||
extra_records: yes | ||
empty_streams: | ||
- name: "issue_properties" | ||
- name: "project_permission_schemes" | ||
- name: "screen_tab_fields" | ||
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" | ||
full_refresh: | ||
tests: | ||
- config_path: "secrets/config.json" | ||
configured_catalog_path: "integration_tests/configured_catalog.json" |
61 changes: 55 additions & 6 deletions
61
airbyte-integrations/connectors/source-jira/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,8 +1,57 @@ | ||
{ | ||
"issues": { | ||
"created": "2121-02-14T22:01:22.313Z" | ||
[ | ||
{ | ||
"type": "STREAM", | ||
"stream": { | ||
"stream_descriptor": { | ||
"name": "board_issues" | ||
}, | ||
"stream_state": { | ||
"updated": "2122-01-01T00:00:00Z" | ||
} | ||
} | ||
}, | ||
"issue_worklogs": { | ||
"started": "2121-04-14T11:30:22.313Z" | ||
{ | ||
"type": "STREAM", | ||
"stream": { | ||
"stream_descriptor": { | ||
"name": "issues" | ||
}, | ||
"stream_state": { | ||
"updated": "2122-01-01T00:00:00Z" | ||
} | ||
} | ||
}, | ||
{ | ||
"type": "STREAM", | ||
"stream": { | ||
"stream_descriptor": { | ||
"name": "issue_comments" | ||
}, | ||
"stream_state": { | ||
"updated": "2122-01-01T00:00:00Z" | ||
} | ||
} | ||
}, | ||
{ | ||
"type": "STREAM", | ||
"stream": { | ||
"stream_descriptor": { | ||
"name": "issue_worklogs" | ||
}, | ||
"stream_state": { | ||
"updated": "2122-01-01T00:00:00Z" | ||
} | ||
} | ||
}, | ||
{ | ||
"type": "STREAM", | ||
"stream": { | ||
"stream_descriptor": { | ||
"name": "sprint_issues" | ||
}, | ||
"stream_state": { | ||
"updated": "2122-01-01T00:00:00Z" | ||
} | ||
} | ||
} | ||
} | ||
] |
Oops, something went wrong.