Skip to content

Commit

Permalink
test(bigtable): adds test proxy for Bigtable test suite (#6568)
Browse files Browse the repository at this point in the history
* test(bigtable): adds test proxy

* fix: added license headers

* feat: ReadRows (partial)

* fixed bad unlock

* reduced amount of code to review
  • Loading branch information
telpirion committed Oct 3, 2022
1 parent ec2ad2f commit 373d2fc
Show file tree
Hide file tree
Showing 5 changed files with 858 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bigtable/go.mod
Expand Up @@ -8,7 +8,9 @@ require (
github.com/golang/protobuf v1.5.2
github.com/google/btree v1.1.2
github.com/google/go-cmp v0.5.8
github.com/googleapis/cloud-bigtable-clients-test v0.0.0-20220824184156-0ba36e446d93
github.com/googleapis/gax-go/v2 v2.5.1
golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1
google.golang.org/api v0.96.0
google.golang.org/genproto v0.0.0-20220926220553-6981cbe3cfce
google.golang.org/grpc v1.49.0
Expand All @@ -29,7 +31,6 @@ require (
github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect
go.opencensus.io v0.23.0 // indirect
golang.org/x/net v0.0.0-20220909164309-bea034e7d591 // indirect
golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect
golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect
golang.org/x/text v0.3.7 // indirect
golang.org/x/xerrors v0.0.0-20220609144429-65e65417b02f // indirect
Expand Down
2 changes: 2 additions & 0 deletions bigtable/go.sum
Expand Up @@ -173,6 +173,8 @@ github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm4
github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I=
github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
github.com/googleapis/cloud-bigtable-clients-test v0.0.0-20220824184156-0ba36e446d93 h1:41iSCOKGDBsK3XBfc+78/TTKLMReSGObSzUdVS9OMAo=
github.com/googleapis/cloud-bigtable-clients-test v0.0.0-20220824184156-0ba36e446d93/go.mod h1:1lRdlEG7pxSh809itBaBjEC8eC8sXwdyjgc607IM+es=
github.com/googleapis/enterprise-certificate-proxy v0.0.0-20220520183353-fd19c99a87aa/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8=
github.com/googleapis/enterprise-certificate-proxy v0.1.0 h1:zO8WHNx/MYiAKJ3d5spxZXZE6KHmIQGQcAzwUzV7qQw=
github.com/googleapis/enterprise-certificate-proxy v0.1.0/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8=
Expand Down
31 changes: 31 additions & 0 deletions bigtable/internal/testproxy/README.md
@@ -0,0 +1,31 @@
# Cloud Bigtable Go client library test proxy

The Bigtable test proxy is intended for use with the [Test Framework
for Cloud Bigtable Client Libraries](https://github.com/googleapis/cloud-bigtable-clients-test).

See the section on
[Test Execution](https://github.com/googleapis/cloud-bigtable-clients-test#test-execution)
for the Test Frameworks to see usage steps.

## Running the test proxy

1. Open a command terminal at the root of the Bigtable client library.

1. Run the test proxy (this)


go run internal/testproxy/proxy.go


You can also specify a port to use for the test proxy by using the `--port`
flag:

```
go run internal/testproxy/proxy.go --port 5000
```

## Running the unit tests

1. Run the following at the root of the test proxy folder:

go test -v .

0 comments on commit 373d2fc

Please sign in to comment.