From 3f3e89b6a2f11bdcea91d5eedb3b00eb15ebd3d5 Mon Sep 17 00:00:00 2001 From: Joseph Shearer Date: Fri, 2 Feb 2024 11:49:00 -0500 Subject: [PATCH] Add `source-hubspot` to CI, and tell it to push `:v4` tags --- .github/workflows/ci.yaml | 3 +++ source-hubspot/VERSION | 1 + source-hubspot/test.flow.yaml | 3 ++- ...spot_tests_test_snapshots__capture__capture.stdout.json} | 0 ...pot_tests_test_snapshots__discover__capture.stdout.json} | 0 ...hubspot_tests_test_snapshots__spec__capture.stdout.json} | 0 source-hubspot/tests/test_snapshots.py | 6 +++--- 7 files changed, 9 insertions(+), 4 deletions(-) create mode 100644 source-hubspot/VERSION rename source-hubspot/tests/snapshots/{snapshots__capture__capture.stdout.json => source_hubspot_tests_test_snapshots__capture__capture.stdout.json} (100%) rename source-hubspot/tests/snapshots/{snapshots__discover__capture.stdout.json => source_hubspot_tests_test_snapshots__discover__capture.stdout.json} (100%) rename source-hubspot/tests/snapshots/{snapshots__spec__capture.stdout.json => source_hubspot_tests_test_snapshots__spec__capture.stdout.json} (100%) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 656a6aa967..178a24127b 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -129,6 +129,9 @@ jobs: - connector: source-google-ads connector_type: capture python: true + - connector: source-hubspot + connector_type: capture + python: true steps: - uses: actions/checkout@v2 diff --git a/source-hubspot/VERSION b/source-hubspot/VERSION new file mode 100644 index 0000000000..2b26aeda6e --- /dev/null +++ b/source-hubspot/VERSION @@ -0,0 +1 @@ +v4 \ No newline at end of file diff --git a/source-hubspot/test.flow.yaml b/source-hubspot/test.flow.yaml index 9117e5bd62..6204c1cc42 100644 --- a/source-hubspot/test.flow.yaml +++ b/source-hubspot/test.flow.yaml @@ -15,7 +15,8 @@ captures: # - "--listen" # - "0.0.0.0:5678" # - "--wait-for-client" - - __main__.py + - "-m" + - source-hubspot config: config.yaml bindings: - resource: diff --git a/source-hubspot/tests/snapshots/snapshots__capture__capture.stdout.json b/source-hubspot/tests/snapshots/source_hubspot_tests_test_snapshots__capture__capture.stdout.json similarity index 100% rename from source-hubspot/tests/snapshots/snapshots__capture__capture.stdout.json rename to source-hubspot/tests/snapshots/source_hubspot_tests_test_snapshots__capture__capture.stdout.json diff --git a/source-hubspot/tests/snapshots/snapshots__discover__capture.stdout.json b/source-hubspot/tests/snapshots/source_hubspot_tests_test_snapshots__discover__capture.stdout.json similarity index 100% rename from source-hubspot/tests/snapshots/snapshots__discover__capture.stdout.json rename to source-hubspot/tests/snapshots/source_hubspot_tests_test_snapshots__discover__capture.stdout.json diff --git a/source-hubspot/tests/snapshots/snapshots__spec__capture.stdout.json b/source-hubspot/tests/snapshots/source_hubspot_tests_test_snapshots__spec__capture.stdout.json similarity index 100% rename from source-hubspot/tests/snapshots/snapshots__spec__capture.stdout.json rename to source-hubspot/tests/snapshots/source_hubspot_tests_test_snapshots__spec__capture.stdout.json diff --git a/source-hubspot/tests/test_snapshots.py b/source-hubspot/tests/test_snapshots.py index 57f528c0fa..f4de9af968 100644 --- a/source-hubspot/tests/test_snapshots.py +++ b/source-hubspot/tests/test_snapshots.py @@ -10,7 +10,7 @@ def test_capture(request, snapshot): "flowctl", "preview", "--source", - request.config.rootdir + "/test.flow.yaml", + request.config.rootdir + "/source-hubspot/test.flow.yaml", ], stdout=subprocess.PIPE, text=True, @@ -39,7 +39,7 @@ def test_discover(request, snapshot): "raw", "discover", "--source", - request.config.rootdir + "/test.flow.yaml", + request.config.rootdir + "/source-hubspot/test.flow.yaml", "-o", "json", "--emit-raw" @@ -59,7 +59,7 @@ def test_spec(request, snapshot): "raw", "spec", "--source", - request.config.rootdir + "/test.flow.yaml" + request.config.rootdir + "/source-hubspot/test.flow.yaml" ], stdout=subprocess.PIPE, text=True,