diff --git a/airbyte-integrations/connector-templates/source-java-jdbc/acceptance-test-config.yml.hbs b/airbyte-integrations/connector-templates/source-java-jdbc/acceptance-test-config.yml.hbs index bfb8b4b80ec13a..73c158827e560a 100644 --- a/airbyte-integrations/connector-templates/source-java-jdbc/acceptance-test-config.yml.hbs +++ b/airbyte-integrations/connector-templates/source-java-jdbc/acceptance-test-config.yml.hbs @@ -5,3 +5,17 @@ tests: spec: - spec_path: "src/test-integration/resources/expected_spec.json" config_path: "src/test-integration/resources/dummy_config.json" + connection: + - config_path: "secrets/sat-config.json" + status: "succeed" + discovery: + - config_path: "secrets/sat-config.json" + basic_read: + - config_path: "secrets/sat-config.json" + expect_records: + path: "integration_tests/expected_records.json" + full_refresh: + - config_path: "secrets/sat-config.json" + incremental: + - config_path: "secrets/sat-config.json" + configured_catalog_path: "integration_tests/configured_catalog_inc.json" \ No newline at end of file diff --git a/airbyte-integrations/connector-templates/source-java-jdbc/integration_tests/configured_catalog.json.hbs b/airbyte-integrations/connector-templates/source-java-jdbc/integration_tests/configured_catalog.json.hbs new file mode 100644 index 00000000000000..2d3e658ca0f6c0 --- /dev/null +++ b/airbyte-integrations/connector-templates/source-java-jdbc/integration_tests/configured_catalog.json.hbs @@ -0,0 +1,19 @@ +{ + "streams": [ + { + "stream": { + "name": "stream_name", + "json_schema": {}, + "supported_sync_modes": ["full_refresh"], + "source_defined_cursor": null, + "default_cursor_field": null, + "source_defined_primary_key": [["pk_name"]], + "namespace": null + }, + "sync_mode": "stream_name", + "cursor_field": null, + "destination_sync_mode": "append", + "primary_key": null + } + ] +} diff --git a/airbyte-integrations/connector-templates/source-java-jdbc/integration_tests/configured_catalog_inc.json.hbs b/airbyte-integrations/connector-templates/source-java-jdbc/integration_tests/configured_catalog_inc.json.hbs new file mode 100644 index 00000000000000..f2a1b7996596e6 --- /dev/null +++ b/airbyte-integrations/connector-templates/source-java-jdbc/integration_tests/configured_catalog_inc.json.hbs @@ -0,0 +1,16 @@ +{ + "streams": [ + { + "stream": { + "name": "stream_name", + "json_schema": {}, + "supported_sync_modes": ["incremental"], + "source_defined_cursor": true, + "default_cursor_field": ["cursor_name"] + }, + "sync_mode": "incremental", + "cursor_field": ["cursor_name"], + "destination_sync_mode": "append" + } + ] +} diff --git a/airbyte-integrations/connector-templates/source-java-jdbc/integration_tests/expected_records.json.hbs b/airbyte-integrations/connector-templates/source-java-jdbc/integration_tests/expected_records.json.hbs new file mode 100644 index 00000000000000..9641bfe0ba8bd7 --- /dev/null +++ b/airbyte-integrations/connector-templates/source-java-jdbc/integration_tests/expected_records.json.hbs @@ -0,0 +1,2 @@ +{"stream": "stream_name", "data": {"column_1": "value_1", "column_2": -128 }, "emitted_at": 1626172757000 } +{"stream": "stream_name", "data": {"column_1": "value_2", "column_2": 128 }, "emitted_at": 1626172757000 } \ No newline at end of file diff --git a/airbyte-integrations/connector-templates/source-java-jdbc/integration_tests/sat-config.json.hbs b/airbyte-integrations/connector-templates/source-java-jdbc/integration_tests/sat-config.json.hbs new file mode 100644 index 00000000000000..ff9ac622661697 --- /dev/null +++ b/airbyte-integrations/connector-templates/source-java-jdbc/integration_tests/sat-config.json.hbs @@ -0,0 +1,7 @@ +{ + "host": "host", + "port": 5555, + "database": "database", + "username": "username", + "replication_method": "STANDARD" +} diff --git a/airbyte-integrations/connectors/source-scaffold-java-jdbc/acceptance-test-config.yml b/airbyte-integrations/connectors/source-scaffold-java-jdbc/acceptance-test-config.yml index de264ed632333a..f1121ae0174f9b 100644 --- a/airbyte-integrations/connectors/source-scaffold-java-jdbc/acceptance-test-config.yml +++ b/airbyte-integrations/connectors/source-scaffold-java-jdbc/acceptance-test-config.yml @@ -5,3 +5,17 @@ tests: spec: - spec_path: "src/test-integration/resources/expected_spec.json" config_path: "src/test-integration/resources/dummy_config.json" + connection: + - config_path: "secrets/sat-config.json" + status: "succeed" + discovery: + - config_path: "secrets/sat-config.json" + basic_read: + - config_path: "secrets/sat-config.json" + expect_records: + path: "integration_tests/expected_records.json" + full_refresh: + - config_path: "secrets/sat-config.json" + incremental: + - config_path: "secrets/sat-config.json" + configured_catalog_path: "integration_tests/configured_catalog_inc.json" \ No newline at end of file diff --git a/airbyte-integrations/connectors/source-scaffold-java-jdbc/integration_tests/configured_catalog.json b/airbyte-integrations/connectors/source-scaffold-java-jdbc/integration_tests/configured_catalog.json new file mode 100644 index 00000000000000..2d3e658ca0f6c0 --- /dev/null +++ b/airbyte-integrations/connectors/source-scaffold-java-jdbc/integration_tests/configured_catalog.json @@ -0,0 +1,19 @@ +{ + "streams": [ + { + "stream": { + "name": "stream_name", + "json_schema": {}, + "supported_sync_modes": ["full_refresh"], + "source_defined_cursor": null, + "default_cursor_field": null, + "source_defined_primary_key": [["pk_name"]], + "namespace": null + }, + "sync_mode": "stream_name", + "cursor_field": null, + "destination_sync_mode": "append", + "primary_key": null + } + ] +} diff --git a/airbyte-integrations/connectors/source-scaffold-java-jdbc/integration_tests/configured_catalog_inc.json b/airbyte-integrations/connectors/source-scaffold-java-jdbc/integration_tests/configured_catalog_inc.json new file mode 100644 index 00000000000000..f2a1b7996596e6 --- /dev/null +++ b/airbyte-integrations/connectors/source-scaffold-java-jdbc/integration_tests/configured_catalog_inc.json @@ -0,0 +1,16 @@ +{ + "streams": [ + { + "stream": { + "name": "stream_name", + "json_schema": {}, + "supported_sync_modes": ["incremental"], + "source_defined_cursor": true, + "default_cursor_field": ["cursor_name"] + }, + "sync_mode": "incremental", + "cursor_field": ["cursor_name"], + "destination_sync_mode": "append" + } + ] +} diff --git a/airbyte-integrations/connectors/source-scaffold-java-jdbc/integration_tests/expected_records.json b/airbyte-integrations/connectors/source-scaffold-java-jdbc/integration_tests/expected_records.json new file mode 100644 index 00000000000000..9641bfe0ba8bd7 --- /dev/null +++ b/airbyte-integrations/connectors/source-scaffold-java-jdbc/integration_tests/expected_records.json @@ -0,0 +1,2 @@ +{"stream": "stream_name", "data": {"column_1": "value_1", "column_2": -128 }, "emitted_at": 1626172757000 } +{"stream": "stream_name", "data": {"column_1": "value_2", "column_2": 128 }, "emitted_at": 1626172757000 } \ No newline at end of file diff --git a/airbyte-integrations/connectors/source-scaffold-java-jdbc/integration_tests/sat-config.json b/airbyte-integrations/connectors/source-scaffold-java-jdbc/integration_tests/sat-config.json new file mode 100644 index 00000000000000..ff9ac622661697 --- /dev/null +++ b/airbyte-integrations/connectors/source-scaffold-java-jdbc/integration_tests/sat-config.json @@ -0,0 +1,7 @@ +{ + "host": "host", + "port": 5555, + "database": "database", + "username": "username", + "replication_method": "STANDARD" +}