@@ -10,18 +10,16 @@ This project contains utilities for running connector tests against live data.
10
10
11
11
## Install
12
12
``` bash
13
- # From tools/connectors/live-tests
14
- pipx install .
15
- # To install in editable mode for development
16
- pipx install . --force --editable
13
+ # From airbyte-ci/connectors/live-tests
14
+ poetry install
17
15
```
18
16
19
17
## Commands
20
18
21
19
### ` debug `
22
20
23
21
```
24
- Usage: live-tests debug [OPTIONS] {check|discover|read|read-with-state|spec}
22
+ Usage: poetry run live-tests debug [OPTIONS] {check|discover|read|read-with-state|spec}
25
23
26
24
Run a specific command on one or multiple connectors and persists the
27
25
outputs to local storage.
@@ -57,7 +55,7 @@ It will write artifacts to an output directory:
57
55
Let's run ` debug ` to check the output of ` read ` on two different versions of the same connector:
58
56
59
57
``` bash
60
- live-tests debug read \
58
+ poetry run live-tests debug read \
61
59
--connection-id=d3bd39cd-6fec-4691-a661-d52c466d8554
62
60
--connector-image=airbyte/source-pokeapi:dev \
63
61
--connector-image=airbyte/source-pokeapi:latest \
@@ -94,7 +92,7 @@ live_tests_debug_reports
94
92
You can also run the ` debug ` command on a live connection by passing the ` --connection-id ` option:
95
93
96
94
``` bash
97
- live-tests debug read \
95
+ poetry run live-tests debug read \
98
96
--connector-image=airbyte/source-pokeapi:dev \
99
97
--connector-image=airbyte/source-pokeapi:latest \
100
98
--connection-id=< CONNECTION-ID>
@@ -119,7 +117,8 @@ You can run the existing test suites with the following command:
119
117
#### With local connection objects (` config.json ` , ` catalog.json ` , ` state.json ` )
120
118
``` bash
121
119
poetry run pytest src/live_tests/regression_tests \
122
- --connector-image=airbyte/source-faker \
120
+ --connector-image=airbyte/source-faker \
121
+ --connection-id=< CONNECTION-ID> \
123
122
--config-path=< path-to-config-path> \
124
123
--catalog-path=< path-to-catalog-path> \
125
124
--target-version=dev \
0 commit comments