1
0
mirror of synced 2025-12-19 18:14:56 -05:00

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:
Danylo Jablonski
2025-12-19 14:50:04 +02:00
committed by GitHub
parent e800536d85
commit f0d0c05ef3
8 changed files with 156 additions and 51 deletions

View File

@@ -6,12 +6,25 @@ acceptance_tests:
tests: tests:
- spec_path: "manifest.yaml" - spec_path: "manifest.yaml"
connection: 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: 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: 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: 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: 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

View File

@@ -0,0 +1,3 @@
#
# Copyright (c) 2025 Airbyte, Inc., all rights reserved.
#

View File

@@ -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

View File

@@ -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"
}
]
}

View File

@@ -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"
}
}

View File

@@ -10,7 +10,7 @@ description: >-
check: check:
type: CheckStream type: CheckStream
stream_names: stream_names:
- video - channels
definitions: definitions:
streams: streams:

View File

@@ -17,7 +17,7 @@ data:
connectorSubtype: api connectorSubtype: api
connectorType: source connectorType: source
definitionId: 743a2a44-fd13-4109-a8fe-fb0e68f467f5 definitionId: 743a2a44-fd13-4109-a8fe-fb0e68f467f5
dockerImageTag: 0.0.42 dockerImageTag: 0.0.43
dockerRepository: airbyte/source-youtube-data dockerRepository: airbyte/source-youtube-data
githubIssueLabel: source-youtube-data githubIssueLabel: source-youtube-data
icon: icon.svg icon: icon.svg
@@ -33,6 +33,19 @@ data:
ab_internal: ab_internal:
ql: 100 ql: 100
sl: 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: externalDocumentationUrls:
- title: YouTube Data API v3 - title: YouTube Data API v3
url: https://developers.google.com/youtube/v3 url: https://developers.google.com/youtube/v3

View File

@@ -118,7 +118,8 @@ The YouTube Data API source connector supports the following sync modes:
<summary>Expand to review</summary> <summary>Expand to review</summary>
| Version | Date | Pull Request | Subject | | 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.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.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| | 0.0.40 | 2025-11-18 | [69532](https://github.com/airbytehq/airbyte/pull/69532) | Update dependencies|