Skip to content

Commit a26a4ad

Browse files
author
Marius Posta
authored
✨ Allow configuring "options=" in source-postgres jdbc url (#29534)
1 parent c6243e3 commit a26a4ad

File tree

23 files changed

+2295
-14
lines changed

23 files changed

+2295
-14
lines changed

airbyte-integrations/connectors/source-alloydb-strict-encrypt/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@ ENV APPLICATION source-alloydb-strict-encrypt
2424

2525
COPY --from=build /airbyte /airbyte
2626

27-
LABEL io.airbyte.version=3.1.3
27+
LABEL io.airbyte.version=3.1.5
2828
LABEL io.airbyte.name=airbyte/source-alloydb-strict-encrypt

airbyte-integrations/connectors/source-alloydb-strict-encrypt/metadata.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ data:
1111
connectorSubtype: database
1212
connectorType: source
1313
definitionId: 1fa90628-2b9e-11ed-a261-0242ac120002
14-
dockerImageTag: 3.1.3
14+
dockerImageTag: 3.1.5
1515
dockerRepository: airbyte/source-alloydb-strict-encrypt
1616
githubIssueLabel: source-alloydb
1717
icon: alloydb.svg

airbyte-integrations/connectors/source-alloydb/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@ ENV APPLICATION source-alloydb
2424

2525
COPY --from=build /airbyte /airbyte
2626

27-
LABEL io.airbyte.version=3.1.3
27+
LABEL io.airbyte.version=3.1.5
2828
LABEL io.airbyte.name=airbyte/source-alloydb

airbyte-integrations/connectors/source-alloydb/metadata.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ data:
66
connectorSubtype: database
77
connectorType: source
88
definitionId: 1fa90628-2b9e-11ed-a261-0242ac120002
9-
dockerImageTag: 3.1.3
9+
dockerImageTag: 3.1.5
1010
dockerRepository: airbyte/source-alloydb
1111
githubIssueLabel: source-alloydb
1212
icon: alloydb.svg

airbyte-integrations/connectors/source-postgres-strict-encrypt/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@ ENV APPLICATION source-postgres-strict-encrypt
2424

2525
COPY --from=build /airbyte /airbyte
2626

27-
LABEL io.airbyte.version=3.1.3
27+
LABEL io.airbyte.version=3.1.5
2828
LABEL io.airbyte.name=airbyte/source-postgres-strict-encrypt
Lines changed: 46 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,50 @@
11
# See [Connector Acceptance Tests](https://docs.airbyte.com/connector-development/testing-connectors/connector-acceptance-tests-reference)
22
# for more information about how to configure these tests
33
connector_image: airbyte/source-postgres-strict-encrypt:dev
4-
tests:
4+
custom_environment_variables:
5+
USE_STREAM_CAPABLE_STATE: true
6+
acceptance_tests:
57
spec:
6-
- spec_path: "src/test/resources/expected_spec.json"
8+
tests:
9+
- spec_path: "src/test-integration/resources/expected_strict_encrypt_spec.json"
10+
config_path: "secrets/config.json"
11+
backward_compatibility_tests_config:
12+
disable_for_version: "1.0.52"
13+
- spec_path: "src/test-integration/resources/expected_strict_encrypt_spec.json"
14+
config_path: "secrets/config_cdc.json"
15+
backward_compatibility_tests_config:
16+
disable_for_version: "1.0.52"
17+
connection:
18+
tests:
19+
- config_path: "secrets/config.json"
20+
status: "succeed"
21+
- config_path: "secrets/config_cdc.json"
22+
status: "succeed"
23+
discovery:
24+
tests:
25+
- config_path: "secrets/config.json"
26+
- config_path: "secrets/config_cdc.json"
27+
backward_compatibility_tests_config:
28+
disable_for_version: "2.1.1"
29+
basic_read:
30+
tests:
31+
- config_path: "secrets/config.json"
32+
expect_records:
33+
path: "integration_tests/expected_records.txt"
34+
- config_path: "secrets/config_cdc.json"
35+
expect_records:
36+
path: "integration_tests/expected_records.txt"
37+
full_refresh:
38+
tests:
39+
- config_path: "secrets/config.json"
40+
- config_path: "secrets/config_cdc.json"
41+
# incremental:
42+
# tests:
43+
# - config_path: "secrets/config.json"
44+
# configured_catalog_path: "integration_tests/incremental_configured_catalog.json"
45+
# future_state:
46+
# bypass_reason: "A java.lang.NullPointerException is thrown when a state with an invalid cursor value is passed"
47+
# - config_path: "secrets/config_cdc.json"
48+
# configured_catalog_path: "integration_tests/incremental_configured_catalog.json"
49+
# future_state:
50+
# bypass_reason: "A java.lang.NullPointerException is thrown when a state with an invalid cursor value is passed"
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
This directory contains files used to run Connector Acceptance Tests.
2+
* `abnormal_state.json` describes a connector state with a non-existing cursor value.
3+
* `expected_records.txt` lists all the records expected as the output of the basic read operation.
4+
* `incremental_configured_catalog.json` is a configured catalog used as an input of the `incremental` test.
5+
* `seed.sql` is the query we manually ran on a test postgres instance to seed it with test data and enable CDC.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
[
2+
{
3+
"type": "STREAM",
4+
"stream": {
5+
"stream_state": {
6+
"stream_name": "id_and_name",
7+
"stream_namespace": "public",
8+
"cursor_field": ["id"],
9+
"cursor": "4",
10+
"cursor_record_count": 1
11+
},
12+
"stream_descriptor": {
13+
"name": "id_and_name",
14+
"namespace": "public"
15+
}
16+
}
17+
}
18+
]
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#
2+
# Copyright (c) 2023 Airbyte, Inc., all rights reserved.
3+
#
4+
5+
6+
import pytest
7+
8+
pytest_plugins = ("connector_acceptance_test.plugin",)
9+
10+
11+
@pytest.fixture(scope="session", autouse=True)
12+
def connector_setup():
13+
"""This fixture is a placeholder for external resources that acceptance test might require."""
14+
# TODO: setup test dependencies if needed. otherwise remove the TODO comments
15+
yield
16+
# TODO: clean up test dependencies
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{"stream": "id_and_name", "data": {"id": 1, "name": "picard"}, "emitted_at": 999999}
2+
{"stream": "id_and_name", "data": {"id": 2, "name": "crusher"}, "emitted_at": 999999}
3+
{"stream": "id_and_name", "data": {"id": 3, "name": "vash"}, "emitted_at": 999999}

0 commit comments

Comments
 (0)