Skip to content

Commit

Permalink
add a read me
Browse files Browse the repository at this point in the history
  • Loading branch information
mutianf committed Nov 8, 2022
1 parent f6ce49a commit 7ecc246
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions test-proxy/README.md
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
```

0 comments on commit 7ecc246

Please sign in to comment.