-
Notifications
You must be signed in to change notification settings - Fork 554
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a test proxy to support client conformance tests
- Loading branch information
Matthew Eagar
committed
Apr 15, 2024
1 parent
77be955
commit 351fb41
Showing
9 changed files
with
928 additions
and
1 deletion.
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
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
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 @@ | ||
3.1.2 |
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,9 @@ | ||
# frozen_string_literal: true | ||
|
||
source "https://rubygems.org" | ||
|
||
gem "google-cloud-bigtable", path: "../../" | ||
gem "grpc", "~> 1.62" | ||
gem "grpc-tools", "~> 1.62" | ||
gem "googleapis-common-protos", "~> 1.5" | ||
gem "googleapis-common-protos-types", "~> 1.14" |
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,28 @@ | ||
|
||
This is a test proxy for Bigtable client conformance tests, created following these guides: https://github.com/googleapis/cloud-bigtable-clients-test/blob/main/docs/test_proxy.md#additional-notes | ||
|
||
## Run the Proxy | ||
|
||
Run `bundle install` and then: | ||
|
||
```bash | ||
$ export PORT=1234 # default 9999 if not set | ||
$ bundle exec ruby test_proxy.rb | ||
``` | ||
|
||
## Protos | ||
|
||
The file `proto/test_proxy.proto` was copied from https://github.com/googleapis/cndb-client-testing-protos/blob/main/google/bigtable/testproxy/test_proxy.proto, and compiled to `lib` via: | ||
|
||
```bash | ||
$ git clone git@github.com:googleapis/googleapis | ||
$ git clone git@github.com/googleapis/cndb-client-testing-protos | ||
|
||
$ bundle exec grpc_tools_ruby_protoc \ | ||
-I googleapis \ | ||
-I cndb-client-testing-protos \ | ||
--ruby_out=lib \ | ||
--grpc_out=lib \ | ||
--proto_path=proto \ | ||
proto/test_proxy.proto | ||
``` |
69 changes: 69 additions & 0 deletions
69
google-cloud-bigtable/test/test_proxy/lib/google/bigtable/testproxy/test_proxy_pb.rb
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
88 changes: 88 additions & 0 deletions
88
...le-cloud-bigtable/test/test_proxy/lib/google/bigtable/testproxy/test_proxy_services_pb.rb
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.