Source-YouTube-Data: enable acceptance tests (#70971)
Co-authored-by: Octavia Squidington III <octavia-squidington-iii@users.noreply.github.com>
This commit is contained in:
@@ -6,12 +6,25 @@ acceptance_tests:
|
||||
tests:
|
||||
- spec_path: "manifest.yaml"
|
||||
connection:
|
||||
bypass_reason: "This is a builder contribution, and we do not have secrets at this time"
|
||||
tests:
|
||||
- config_path: "secrets/config_oauth.json"
|
||||
status: "succeed"
|
||||
- config_path: "secrets/config.json"
|
||||
status: "succeed"
|
||||
- config_path: "integration_tests/invalid_config.json"
|
||||
status: "failed"
|
||||
discovery:
|
||||
bypass_reason: "This is a builder contribution, and we do not have secrets at this time"
|
||||
tests:
|
||||
- config_path: "secrets/config_oauth.json"
|
||||
basic_read:
|
||||
bypass_reason: "This is a builder contribution, and we do not have secrets at this time"
|
||||
tests:
|
||||
- config_path: "secrets/config_oauth.json"
|
||||
configured_catalog_path: "integration_tests/configured_catalog.json"
|
||||
timeout_seconds: 1200
|
||||
incremental:
|
||||
bypass_reason: "This is a builder contribution, and we do not have secrets at this time"
|
||||
bypass_reason: "Connector doesn't support Incremental sync for any stream"
|
||||
full_refresh:
|
||||
bypass_reason: "This is a builder contribution, and we do not have secrets at this time"
|
||||
tests:
|
||||
- config_path: "secrets/config_oauth.json"
|
||||
configured_catalog_path: "integration_tests/configured_catalog.json"
|
||||
timeout_seconds: 3600
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
#
|
||||
# Copyright (c) 2025 Airbyte, Inc., all rights reserved.
|
||||
#
|
||||
@@ -0,0 +1,15 @@
|
||||
#
|
||||
# Copyright (c) 2023 Airbyte, Inc., all rights reserved.
|
||||
#
|
||||
|
||||
|
||||
import pytest
|
||||
|
||||
|
||||
pytest_plugins = ("connector_acceptance_test.plugin",)
|
||||
|
||||
|
||||
@pytest.fixture(scope="session", autouse=True)
|
||||
def connector_setup():
|
||||
"""This fixture is a placeholder for external resources that acceptance test might require."""
|
||||
yield
|
||||
@@ -0,0 +1,49 @@
|
||||
{
|
||||
"streams": [
|
||||
{
|
||||
"stream": {
|
||||
"name": "video",
|
||||
"json_schema": {},
|
||||
"supported_sync_modes": ["full_refresh"]
|
||||
},
|
||||
"sync_mode": "full_refresh",
|
||||
"destination_sync_mode": "append"
|
||||
},
|
||||
{
|
||||
"stream": {
|
||||
"name": "channels",
|
||||
"json_schema": {},
|
||||
"supported_sync_modes": ["full_refresh"]
|
||||
},
|
||||
"sync_mode": "full_refresh",
|
||||
"destination_sync_mode": "append"
|
||||
},
|
||||
{
|
||||
"stream": {
|
||||
"name": "comments",
|
||||
"json_schema": {},
|
||||
"supported_sync_modes": ["full_refresh"]
|
||||
},
|
||||
"sync_mode": "full_refresh",
|
||||
"destination_sync_mode": "append"
|
||||
},
|
||||
{
|
||||
"stream": {
|
||||
"name": "videos",
|
||||
"json_schema": {},
|
||||
"supported_sync_modes": ["full_refresh"]
|
||||
},
|
||||
"sync_mode": "full_refresh",
|
||||
"destination_sync_mode": "append"
|
||||
},
|
||||
{
|
||||
"stream": {
|
||||
"name": "channel_comments",
|
||||
"json_schema": {},
|
||||
"supported_sync_modes": ["full_refresh"]
|
||||
},
|
||||
"sync_mode": "full_refresh",
|
||||
"destination_sync_mode": "append"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"start_date": "2020-01-01",
|
||||
"end_date": "2020-01-02",
|
||||
"account_ids": [],
|
||||
"credentials": {
|
||||
"auth_method": "oAuth2.0",
|
||||
"client_id": "client_id",
|
||||
"client_secret": "client_secret",
|
||||
"refresh_token": "refresh_token"
|
||||
}
|
||||
}
|
||||
@@ -10,7 +10,7 @@ description: >-
|
||||
check:
|
||||
type: CheckStream
|
||||
stream_names:
|
||||
- video
|
||||
- channels
|
||||
|
||||
definitions:
|
||||
streams:
|
||||
|
||||
@@ -17,7 +17,7 @@ data:
|
||||
connectorSubtype: api
|
||||
connectorType: source
|
||||
definitionId: 743a2a44-fd13-4109-a8fe-fb0e68f467f5
|
||||
dockerImageTag: 0.0.42
|
||||
dockerImageTag: 0.0.43
|
||||
dockerRepository: airbyte/source-youtube-data
|
||||
githubIssueLabel: source-youtube-data
|
||||
icon: icon.svg
|
||||
@@ -33,6 +33,19 @@ data:
|
||||
ab_internal:
|
||||
ql: 100
|
||||
sl: 100
|
||||
connectorTestSuitesOptions:
|
||||
- suite: acceptanceTests
|
||||
testSecrets:
|
||||
- name: SECRET_YOUTUBE-DATA_CREDS
|
||||
fileName: config_oauth.json
|
||||
secretStore:
|
||||
type: GSM
|
||||
alias: airbyte-connector-testing-secret-store
|
||||
- name: SECRET_YOUTUBE-DATA_API_KEY_CREDS
|
||||
fileName: config.json
|
||||
secretStore:
|
||||
type: GSM
|
||||
alias: airbyte-connector-testing-secret-store
|
||||
externalDocumentationUrls:
|
||||
- title: YouTube Data API v3
|
||||
url: https://developers.google.com/youtube/v3
|
||||
|
||||
@@ -118,7 +118,8 @@ The YouTube Data API source connector supports the following sync modes:
|
||||
<summary>Expand to review</summary>
|
||||
|
||||
| Version | Date | Pull Request | Subject |
|
||||
|------------------|-------------------|--------------|----------------|
|
||||
|---------|------------|--------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| 0.0.43 | 2025-12-17 | [70971](https://github.com/airbytehq/airbyte/pull/70971) | Add acceptance tests
|
||||
| 0.0.42 | 2025-11-23 | [69315](https://github.com/airbytehq/airbyte/pull/69315) | Add OAuth 2.0 support |
|
||||
| 0.0.41 | 2025-11-25 | [70079](https://github.com/airbytehq/airbyte/pull/70079) | Update dependencies|
|
||||
| 0.0.40 | 2025-11-18 | [69532](https://github.com/airbytehq/airbyte/pull/69532) | Update dependencies|
|
||||
|
||||
Reference in New Issue
Block a user