Skip to content

Commit 673dfb1

Browse files
Fix regtest doc (#2955)
1 parent 04c8ee6 commit 673dfb1

File tree

1 file changed

+2
-22
lines changed

1 file changed

+2
-22
lines changed

regtests/README.md

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -185,30 +185,10 @@ Other commands are available in the `regtests/t_spark_sql/src` directory.
185185
## Python Tests
186186

187187
Python tests are based on `pytest`. They rely on a python Polaris client, which is generated from the openapi spec.
188-
The client can be generated using two commands:
188+
The client can be generated using make command:
189189

190190
```shell
191-
# generate the management api client
192-
docker run --rm \
193-
-v ${PWD}:/local openapitools/openapi-generator-cli generate \
194-
-i /local/spec/polaris-management-service.yml \
195-
-g python \
196-
-o /local/client/python --additional-properties=packageName=polaris.management --additional-properties=apiNamePrefix=polaris
197-
198-
# generate the iceberg rest client
199-
docker run --rm \
200-
-v ${PWD}:/local openapitools/openapi-generator-cli generate \
201-
-i /local/spec/polaris-catalog-service.yaml \
202-
-g python \
203-
-o /local/client/python --additional-properties=packageName=polaris.catalog --additional-properties=apiNameSuffix="" --additional-properties=apiNamePrefix=Iceberg
204-
```
205-
206-
Tests rely on Python 3.9 or higher. `pyenv` can be used to install a current version and mapped to the local directory
207-
by using
208-
209-
```shell
210-
pyenv install 3.9
211-
pyenv local 3.9
191+
make client-regenerate
212192
```
213193

214194
Once you've done that, you can run `setup.sh` to generate a python virtual environment (installed at `~/polaris-venv`)

0 commit comments

Comments
 (0)