-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b6d232a
commit 8708a25
Showing
19 changed files
with
2,057 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Format: //devtools/kokoro/config/proto/build.proto | ||
|
||
env_vars: { | ||
key: "NOX_SESSION" | ||
value: "conformance" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
# CBT Python Test Proxy | ||
|
||
The CBT test proxy is intended for running conformance tests for Cloud Bigtable Python Client. | ||
|
||
## Option 1: Run Tests with Nox | ||
|
||
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 | ||
``` | ||
|
||
## Option 2: Run processes manually | ||
|
||
### Start test proxy | ||
|
||
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 | ||
``` | ||
|
||
### Run the test cases | ||
|
||
Prerequisites: | ||
- If you have not already done so, [install golang](https://go.dev/doc/install). | ||
- Before running tests, [launch an instance of the test proxy](#start-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 | ||
``` | ||
|
Oops, something went wrong.