The CBT test proxy is intended for running conformance tests for Cloud Bigtable Python Client.
You can run the conformance tests in a single line by calling nox -s conformance
from the repo root
cd python-bigtable/test_proxy
nox -s conformance
You can use test_proxy.py
to launch a new test proxy process directly
cd python-bigtable/test_proxy
python test_proxy.py
The port can be set by passing in an extra positional argument
cd python-bigtable/test_proxy
python test_proxy.py --port 8080
You can run the test proxy against the previous v2
client by running it with the --legacy-client
flag:
python test_proxy.py --legacy-client
Prerequisites:
- If you have not already done so, install golang.
- Before running tests, launch an instance of the test proxy in a separate shell session, and make note of the port
Clone and navigate to the go test library:
git clone https://github.com/googleapis/cloud-bigtable-clients-test.git
cd cloud-bigtable-clients-test/tests
Launch the tests
go test -v -proxy_addr=:50055