-
Notifications
You must be signed in to change notification settings - Fork 86
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
Showing
1 changed file
with
46 additions
and
0 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,46 @@ | ||
# CBT Java Test Proxy | ||
|
||
The CBT test proxy is intended for running confromance tests for Cloug Bigtable Java Client. | ||
|
||
## Set up | ||
|
||
If you have not already done so, [install golang](https://go.dev/doc/install), then clone the go test library: | ||
|
||
``` | ||
git clone https://github.com/googleapis/cloud-bigtable-clients-test.git | ||
``` | ||
|
||
## Start test proxy | ||
|
||
Build the proxy with the latest version of the client | ||
|
||
``` | ||
cd java-bigtable/test-proxy | ||
mvn clean install | ||
``` | ||
|
||
Start the proxy on default port 9999 | ||
|
||
``` | ||
mvn exec:java -Dexec.mainClass=com.google.cloud.bigtable.testproxy.CbtTestProxyMain | ||
``` | ||
|
||
Start the proxy on a different port | ||
|
||
``` | ||
mvn exec:java -Dexec.mainClass=com.google.cloud.bigtable.testproxy.CbtTestProxyMain -Dport=1 | ||
``` | ||
|
||
Build and start the proxy with an older version of the client | ||
|
||
``` | ||
mvn clean install -Dbigtable.client.version=2.1.0 -Denforcer.skip | ||
mvn exec:java -Dexec.mainClass=com.google.cloud.bigtable.testproxy.CbtTestProxyMain | ||
``` | ||
|
||
## Run the test cases | ||
|
||
``` | ||
cd cloud-bigtable-clients-test/tests | ||
go test -v -proxy_addr=:9999 | ||
``` |