1
0
mirror of synced 2026-01-31 19:01:59 -05:00

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>
This commit is contained in:
Jared Rhizor
2020-10-30 13:48:30 -07:00
committed by GitHub
parent a14d8385e7
commit 73446b2f48
28 changed files with 717 additions and 3 deletions

View File

@@ -36,6 +36,7 @@ class TestAction(Enum):
GET_SPEC = "get_spec"
GET_CONFIG = "get_config"
GET_CATALOG = "get_catalog"
GET_REGEX_TESTS = "get_regex_tests"
SETUP = "setup"
TEARDOWN = "teardown"
@@ -79,6 +80,8 @@ class StandardSourceTestRunner(StandardSourceTestIface):
self.test.setup()
elif cmd == TestAction.TEARDOWN:
self.test.teardown()
elif cmd == TestAction.GET_REGEX_TESTS:
output = json.dumps({"tests": self.test.get_regex_tests()})
else:
raise Exception("Unexpected command " + cmd)