Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Grpc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tci-gateway-module
Grpc
Commits
f9f856bb
Commit
f9f856bb
authored
8 years ago
by
David Garcia Quintas
Browse files
Options
Downloads
Patches
Plain Diff
Added todos for more grpclb tests.
parent
d84cec73
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/cpp/grpclb/grpclb_test.cc
+14
-10
14 additions, 10 deletions
test/cpp/grpclb/grpclb_test.cc
with
14 additions
and
10 deletions
test/cpp/grpclb/grpclb_test.cc
+
14
−
10
View file @
f9f856bb
...
...
@@ -60,6 +60,11 @@ extern "C" {
#define NUM_BACKENDS 4
// TODO(dgq): Other scenarios in need of testing:
// - Send identical serverlist update
// - Test reception of invalid serverlist
// - Test pinging
namespace
grpc
{
namespace
{
...
...
@@ -95,15 +100,14 @@ static void *tag(intptr_t t) { return (void *)t; }
static
gpr_slice
build_response_payload_slice
(
const
char
*
host
,
int
*
ports
,
size_t
nports
,
int64_t
expiration_interval_secs
,
int32_t
expiration_interval_nanos
)
{
/*
server_list {
servers {
ip_address: "127.0.0.1"
port: ...
load_balance_token: "token..."
}
...
} */
// server_list {
// servers {
// ip_address: "127.0.0.1"
// port: ...
// load_balance_token: "token..."
// }
// ...
// }
grpc
::
lb
::
v1
::
LoadBalanceResponse
response
;
auto
*
serverlist
=
response
.
mutable_server_list
();
...
...
@@ -184,7 +188,7 @@ static void start_lb_server(server_fixture *sf, int *ports, size_t nports,
GPR_ASSERT
(
GRPC_CALL_OK
==
error
);
gpr_log
(
GPR_INFO
,
"LB Server[%s] after tag 201"
,
sf
->
servers_hostport
);
/
*
receive request for backends
*/
/
/
receive request for backends
op
=
ops
;
op
->
op
=
GRPC_OP_RECV_MESSAGE
;
op
->
data
.
recv_message
=
&
request_payload_recv
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment