A client library will be included in this repository as well, prepare by moving all server components to a subdirectory. As part of this, the server script is refactored to a generated entrypoint script. Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
13 lines
467 B
Bash
Executable File
13 lines
467 B
Bash
Executable File
#!/bin/sh -ex
|
|
|
|
wd='/work'
|
|
podman run \
|
|
--cap-add CAP_NET_ADMIN \
|
|
--pull=always \
|
|
--rm \
|
|
-it \
|
|
-v .:"$wd" \
|
|
registry.opensuse.org/home/crameleon/containers/containers/crameleon/pytest-nftables:latest \
|
|
env NFT-API-CONFIG="$wd"/tests/config.yaml PYTHONPATH="$wd/nft_http_api_client:$wd/nft_http_api_server" pytest --pdb --pdbcls=IPython.terminal.debugger:Pdb -rA -s -v -x "$wd"/tests
|
|
|