Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🎉 fix Google Adwords CI & publish new version #4205

Merged
merged 10 commits into from
Jun 25, 2021
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
connector_image: airbyte/source-google-adwords-singer:dev
tests:
spec:
- spec_path: "source_google_adwords_singer/spec.json"
connection:
- config_path: "secrets/config.json"
status: "succeed"
- config_path: "sample_files/invalid_config.json"
status: "failed"
discovery:
- config_path: "secrets/config.json"
basic_read:
- config_path: "secrets/config.json"
configured_catalog_path: "sample_files/configured_catalog.json"
po3na4skld marked this conversation as resolved.
Show resolved Hide resolved
validate_output_from_all_streams: yes
full_refresh:
- config_path: "secrets/config.json"
configured_catalog_path: "sample_files/configured_catalog.json"
po3na4skld marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ plugins {
id 'java'
id 'airbyte-python'
id 'airbyte-docker'
id 'airbyte-standard-source-test-file'
id 'airbyte-source-acceptance-test'
}

airbytePython {
Expand All @@ -11,7 +11,7 @@ airbytePython {


dependencies {
implementation files(project(':airbyte-integrations:bases:base-standard-source-test-file').airbyteDocker.outputs)
implementation files(project(':airbyte-integrations:bases:source-acceptance-test').airbyteDocker.outputs)
implementation files(project(':airbyte-integrations:bases:base-singer').airbyteDocker.outputs)
}

Expand All @@ -21,10 +21,3 @@ task('installSingerTap', type: PythonTask) {
command = "install tap-adwords==1.12.0"
po3na4skld marked this conversation as resolved.
Show resolved Hide resolved
}
installReqs.dependsOn installSingerTap

airbyteStandardSourceTestFile {
// For more information on standard source tests, see https://docs.airbyte.io/contributing-to-airbyte/building-new-connector/testing-connectors
specPath = "source_google_adwords_singer/spec.json"
configPath = "secrets/config.json"
configuredCatalogPath = "sample_files/configured_catalog.json"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
#
# MIT License
#
# Copyright (c) 2020 Airbyte
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
#


import pytest

pytest_plugins = ("source_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."""
# TODO: setup test dependencies
yield
# TODO: clean up test dependencies
Original file line number Diff line number Diff line change
Expand Up @@ -167,11 +167,9 @@
}
}
},
"supported_sync_modes": ["full_refresh"],
"source_defined_cursor": false
"supported_sync_modes": ["full_refresh"]
},
"sync_mode": "full_refresh",
"cursor_field": [],
"destination_sync_mode": "overwrite"
},
{
Expand Down Expand Up @@ -321,11 +319,9 @@
}
}
},
"supported_sync_modes": ["full_refresh"],
"source_defined_cursor": false
"supported_sync_modes": ["full_refresh"]
},
"sync_mode": "full_refresh",
"cursor_field": [],
"destination_sync_mode": "overwrite"
},
{
Expand Down Expand Up @@ -402,11 +398,9 @@
}
}
},
"supported_sync_modes": ["full_refresh"],
"source_defined_cursor": false
"supported_sync_modes": ["full_refresh"]
},
"sync_mode": "full_refresh",
"cursor_field": [],
"destination_sync_mode": "overwrite"
},
{
Expand Down Expand Up @@ -435,11 +429,9 @@
},
"type": ["null", "object"]
},
"supported_sync_modes": ["full_refresh"],
"source_defined_cursor": false
"supported_sync_modes": ["full_refresh"]
},
"sync_mode": "full_refresh",
"cursor_field": [],
"destination_sync_mode": "overwrite"
}
]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"developer_token": "hahaha",
"oauth_client_id": "notvalid.apps.googleusercontent.com",
"oauth_client_secret": "notasecret",
"refresh_token": "1//notarefrshtoken",
"customer_ids": ["0000000000"],
"start_date": "2020-06-01T00:00:00Z",
"user_agent": "unknown"
}