Skip to content

Commit c15b4dc

Browse files
committed
add other SAT tests to the template
1 parent 90d9f45 commit c15b4dc

File tree

10 files changed

+116
-0
lines changed

10 files changed

+116
-0
lines changed

airbyte-integrations/connector-templates/source-java-jdbc/acceptance-test-config.yml.hbs

+14
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,17 @@ tests:
55
spec:
66
- spec_path: "src/test-integration/resources/expected_spec.json"
77
config_path: "src/test-integration/resources/dummy_config.json"
8+
connection:
9+
- config_path: "secrets/sat-config.json"
10+
status: "succeed"
11+
discovery:
12+
- config_path: "secrets/sat-config.json"
13+
basic_read:
14+
- config_path: "secrets/sat-config.json"
15+
expect_records:
16+
path: "integration_tests/expected_records.json"
17+
full_refresh:
18+
- config_path: "secrets/sat-config.json"
19+
incremental:
20+
- config_path: "secrets/sat-config.json"
21+
configured_catalog_path: "integration_tests/configured_catalog_inc.json"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"streams": [
3+
{
4+
"stream": {
5+
"name": "stream_name",
6+
"json_schema": {},
7+
"supported_sync_modes": ["full_refresh"],
8+
"source_defined_cursor": null,
9+
"default_cursor_field": null,
10+
"source_defined_primary_key": [["pk_name"]],
11+
"namespace": null
12+
},
13+
"sync_mode": "stream_name",
14+
"cursor_field": null,
15+
"destination_sync_mode": "append",
16+
"primary_key": null
17+
}
18+
]
19+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"streams": [
3+
{
4+
"stream": {
5+
"name": "stream_name",
6+
"json_schema": {},
7+
"supported_sync_modes": ["incremental"],
8+
"source_defined_cursor": true,
9+
"default_cursor_field": ["cursor_name"]
10+
},
11+
"sync_mode": "incremental",
12+
"cursor_field": ["cursor_name"],
13+
"destination_sync_mode": "append"
14+
}
15+
]
16+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
{"stream": "stream_name", "data": {"column_1": "value_1", "column_2": -128 }, "emitted_at": 1626172757000 }
2+
{"stream": "stream_name", "data": {"column_1": "value_2", "column_2": 128 }, "emitted_at": 1626172757000 }
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"host": "host",
3+
"port": 5555,
4+
"database": "database",
5+
"username": "username",
6+
"replication_method": "STANDARD"
7+
}

airbyte-integrations/connectors/source-scaffold-java-jdbc/acceptance-test-config.yml

+14
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,17 @@ tests:
55
spec:
66
- spec_path: "src/test-integration/resources/expected_spec.json"
77
config_path: "src/test-integration/resources/dummy_config.json"
8+
connection:
9+
- config_path: "secrets/sat-config.json"
10+
status: "succeed"
11+
discovery:
12+
- config_path: "secrets/sat-config.json"
13+
basic_read:
14+
- config_path: "secrets/sat-config.json"
15+
expect_records:
16+
path: "integration_tests/expected_records.json"
17+
full_refresh:
18+
- config_path: "secrets/sat-config.json"
19+
incremental:
20+
- config_path: "secrets/sat-config.json"
21+
configured_catalog_path: "integration_tests/configured_catalog_inc.json"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"streams": [
3+
{
4+
"stream": {
5+
"name": "stream_name",
6+
"json_schema": {},
7+
"supported_sync_modes": ["full_refresh"],
8+
"source_defined_cursor": null,
9+
"default_cursor_field": null,
10+
"source_defined_primary_key": [["pk_name"]],
11+
"namespace": null
12+
},
13+
"sync_mode": "stream_name",
14+
"cursor_field": null,
15+
"destination_sync_mode": "append",
16+
"primary_key": null
17+
}
18+
]
19+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"streams": [
3+
{
4+
"stream": {
5+
"name": "stream_name",
6+
"json_schema": {},
7+
"supported_sync_modes": ["incremental"],
8+
"source_defined_cursor": true,
9+
"default_cursor_field": ["cursor_name"]
10+
},
11+
"sync_mode": "incremental",
12+
"cursor_field": ["cursor_name"],
13+
"destination_sync_mode": "append"
14+
}
15+
]
16+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
{"stream": "stream_name", "data": {"column_1": "value_1", "column_2": -128 }, "emitted_at": 1626172757000 }
2+
{"stream": "stream_name", "data": {"column_1": "value_2", "column_2": 128 }, "emitted_at": 1626172757000 }
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"host": "host",
3+
"port": 5555,
4+
"database": "database",
5+
"username": "username",
6+
"replication_method": "STANDARD"
7+
}

0 commit comments

Comments
 (0)