1
0
mirror of synced 2026-01-21 15:06:13 -05:00
Files
airbyte/airbyte-integrations/bases/base-python-test/base_python_test/test_iface.py
Jared Rhizor 73446b2f48 google analytics source + regex standard testing (#715)
* save GA state

* bugfix, documentation, ci creds

* fmt

* set up standard testing

* set up config for check

* oops

* fix path for standard tests

* add to registry

* add documentation and env var handling

* working with new standard source test

* send pageview on setup

* use file for tracker code

* add regexes

* add logging and remove intentionally failing test case

* fmt

* Update airbyte-integrations/bases/standard-source-test/src/main/java/io/airbyte/integrations/base/TestSource.java

Co-authored-by: Sherif A. Nada <snadalive@gmail.com>

* Update airbyte-integrations/bases/standard-source-test/src/main/java/io/airbyte/integrations/base/TestSource.java

Co-authored-by: Sherif A. Nada <snadalive@gmail.com>

* switch to start_date for connection test

* add comment and use future date

* use dashes for packages

* better way to call GA than hardcoded

* restructure for more consistent naming

* fmt

* update ordering

* fix dep from merge

* add regex tests to jdbc

* fmt

Co-authored-by: Sherif A. Nada <snadalive@gmail.com>
2020-10-30 13:48:30 -07:00

51 lines
1.6 KiB
Python

"""
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.
"""
from typing import List
from airbyte_protocol import AirbyteCatalog, ConnectorSpecification
class StandardSourceTestIface(object):
def __init__(self):
pass
def get_spec(self) -> ConnectorSpecification:
raise Exception("Not Implemented")
def get_config(self) -> object:
raise Exception("Not Implemented")
def get_catalog(self) -> AirbyteCatalog:
raise Exception("Not Implemented")
def get_regex_tests(self) -> List[str]:
return []
def setup(self) -> None:
pass
def tear_down(self) -> None:
pass