Skip to content

Commit

Permalink
#14152 source Gitlab: certify to beta (#20511)
Browse files Browse the repository at this point in the history
  • Loading branch information
davydov-d authored Dec 15, 2022
1 parent 6bf2448 commit 9a62139
Show file tree
Hide file tree
Showing 6 changed files with 402 additions and 95 deletions.
Original file line number Diff line number Diff line change
@@ -1,37 +1,43 @@
connector_image: airbyte/source-gitlab:dev
tests:
test_strictness_level: "high"
acceptance_tests:
spec:
- spec_path: "source_gitlab/spec.json"
tests:
- spec_path: "source_gitlab/spec.json"
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"
tests:
- config_path: "secrets/config.json"
basic_read:
- config_path: "secrets/config.json"
configured_catalog_path: "integration_tests/configured_catalog.json"
empty_streams: ["group_issue_boards"]
expect_records:
path: "integration_tests/expected_records.txt"
- config_path: "secrets/config_with_ids.json"
configured_catalog_path: "integration_tests/configured_catalog.json"
empty_streams: ["group_issue_boards", "epic_issues"]
expect_records:
path: "integration_tests/expected_records_with_ids.txt"
# We cannot use these tests for testing Incremental, since for Gitlab the State is saved for each Project separately,
# and the Acceptance Tests at this stage do not support this functionality.
# Therefore, we hardcode the cursor_paths for our config.
tests:
- config_path: "secrets/config.json"
expect_records:
path: "integration_tests/expected_records.txt"
- config_path: "secrets/config_with_ids.json"
empty_streams:
- name: "epics"
bypass_reason: "Group in this config does not have epics. This stream is tested in the above TC."
- name: "epic_issues"
bypass_reason: "Group in this config does not have epics issues. This stream is tested in the above TC."
expect_records:
path: "integration_tests/expected_records_with_ids.txt"
incremental:
- config_path: "secrets/config_with_ids.json"
configured_catalog_path: "integration_tests/incremental_catalog.json"
future_state_path: "integration_tests/abnormal_state.json"
cursor_paths:
commits: ["25157276", "created_at"]
issues: ["25157276", "updated_at"]
merge_requests: ["25157276", "updated_at"]
pipelines: ["25157276", "updated_at"]
tests:
- config_path: "secrets/config_with_ids.json"
configured_catalog_path: "integration_tests/incremental_catalog.json"
future_state:
future_state_path: "integration_tests/abnormal_state.json"
cursor_paths:
commits: ["25157276", "created_at"]
issues: ["25157276", "updated_at"]
merge_requests: ["25157276", "updated_at"]
pipelines: ["25157276", "updated_at"]
full_refresh:
- config_path: "secrets/config.json"
configured_catalog_path: "integration_tests/configured_catalog.json"
tests:
- config_path: "secrets/config.json"
configured_catalog_path: "integration_tests/configured_catalog.json"
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,17 @@
"destination_sync_mode": "overwrite",
"primary_key": [["id"]]
},
{
"stream": {
"name": "epics",
"json_schema": {},
"supported_sync_modes": ["full_refresh"],
"source_defined_primary_key": [["iid"]]
},
"sync_mode": "full_refresh",
"destination_sync_mode": "overwrite",
"primary_key": [["iid"]]
},
{
"stream": {
"name": "epic_issues",
Expand Down
Loading

0 comments on commit 9a62139

Please sign in to comment.