Skip to content
This repository was archived by the owner on May 8, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 13 additions & 11 deletions test-proxy/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand All @@ -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
Expand All @@ -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-<proxy_version>.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=<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-<proxy_version>.jar
```

## Run the test cases
Expand All @@ -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.
32 changes: 32 additions & 0 deletions test-proxy/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,38 @@
<skip>true</skip>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<filters>
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>META-INF/*.SF</exclude>
<exclude>META-INF/*.DSA</exclude>
<exclude>META-INF/*.RSA</exclude>
</excludes>
</filter>
</filters>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" />
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<manifestEntries>
<Main-Class>com.google.cloud.bigtable.testproxy.CbtTestProxyMain</Main-Class>
</manifestEntries>
</transformer>
</transformers>
</configuration>
</execution>
</executions>
</plugin>
<!-- end skip publishing to maven central -->
</plugins>
</build>
Expand Down