Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(tests): [Bigtable] add conformance tests and proxy #7959

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
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
25 changes: 25 additions & 0 deletions Bigtable/tests/Conformance/proxy/.rr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
version: "3"
rpc:
listen: "tcp://127.0.0.1:6001"

server:
command: "php worker.php"
relay: "pipes"
relay_timeout: "20s"

grpc:
listen: "tcp://127.0.0.1:9001"
proto: ["test_proxy.proto"]
max_send_msg_size: 50
max_recv_msg_size: 50
max_connection_idle: 0s
max_connection_age: 0s
max_connection_age_grace: 0s
max_concurrent_streams: 10
ping_time: 1s
timeout: 200s
pool:
num_workers: 2
max_jobs: 0
allocate_timeout: 60s
destroy_timeout: 60s
23 changes: 23 additions & 0 deletions Bigtable/tests/Conformance/proxy/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"name": "google-testing/proxy-bigtable-server",
"description": "Proxy Bigtable Server",
"repositories": [
{
"type": "path",
"url": "../../.."
}
],
"require": {
"google/cloud-bigtable": "*",
"grpc/grpc": "^1.36",
"spiral/roadrunner-cli": "^2.6",
"spiral/roadrunner-grpc": "^3.4"
},
"autoload": {
"psr-4": {
"": "src"
}
},
"minimum-stability": "dev",
"prefer-stable": true
}
17 changes: 17 additions & 0 deletions Bigtable/tests/Conformance/proxy/ping.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php

declare(strict_types=1);

require __DIR__ . '/vendor/autoload.php';

use Google\Bigtable\Testproxy\CreateClientRequest;

$client = new \ProxyClient('127.0.0.1:9001', [
'credentials' => \Grpc\ChannelCredentials::createInsecure(),
]);

$message = new CreateClientRequest();

[$response, $status] = $client->CreateClient($message)->wait();

echo $response->serializeToJsonString() . PHP_EOL;

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading