diff --git a/test-proxy/README.md b/test-proxy/README.md index a97f40094e3a..287c3a0f131c 100644 --- a/test-proxy/README.md +++ b/test-proxy/README.md @@ -2,7 +2,7 @@ The CBT test proxy is intended for running confromance tests for Cloug Bigtable Java Client. -## Set up +## Set up If you have not already done so, [install golang](https://go.dev/doc/install), then clone the go test library: @@ -12,7 +12,7 @@ git clone https://github.com/googleapis/cloud-bigtable-clients-test.git ## Start test proxy -Build the proxy with the latest version of the client +Build the proxy with the latest/head version of the client ``` cd java-bigtable @@ -24,20 +24,13 @@ mvn clean install Start the proxy on default port 9999 ``` -mvn exec:java -Dexec.mainClass=com.google.cloud.bigtable.testproxy.CbtTestProxyMain +java -jar target/google-cloud-bigtable-test-proxy-.jar ``` 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= -Denforcer.skip -mvn exec:java -Dexec.mainClass=com.google.cloud.bigtable.testproxy.CbtTestProxyMain +java -Dport=1 -jar target/google-cloud-bigtable-test-proxy-.jar ``` ## Run the test cases @@ -46,3 +39,12 @@ mvn exec:java -Dexec.mainClass=com.google.cloud.bigtable.testproxy.CbtTestProxyM cd cloud-bigtable-clients-test/tests go test -v -proxy_addr=:9999 ``` + +## Test a released client + +To do so, you need to build the proxy with the released version of the client. +Please download the source code +[here](https://github.com/googleapis/java-bigtable/releases), and repeat the +above steps. + +Note that Kokoro presubmit test doesn't use this route. diff --git a/test-proxy/pom.xml b/test-proxy/pom.xml index 579270344287..fe289994ba26 100644 --- a/test-proxy/pom.xml +++ b/test-proxy/pom.xml @@ -134,6 +134,38 @@ true + + org.apache.maven.plugins + maven-shade-plugin + + + package + + shade + + + + + *:* + + META-INF/*.SF + META-INF/*.DSA + META-INF/*.RSA + + + + + + + + com.google.cloud.bigtable.testproxy.CbtTestProxyMain + + + + + + +