Skip to content

Commit

Permalink
review fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
stanley-cheung committed Jan 19, 2024
1 parent 19b26c1 commit cd3c218
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
6 changes: 4 additions & 2 deletions framework/test_app/runners/k8s/k8s_xds_client_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ def run( # pylint: disable=arguments-differ
print_response=False,
log_to_stdout: bool = False,
enable_csm_observability: bool = False,
request_payload_size: int = 0,
response_payload_size: int = 0,
) -> XdsTestClient:
logger.info(
(
Expand Down Expand Up @@ -156,8 +158,8 @@ def run( # pylint: disable=arguments-differ
server_target=server_target,
rpc=rpc,
qps=qps,
request_payload_size=271828,
response_payload_size=314159,
request_payload_size=request_payload_size,
response_payload_size=response_payload_size,
metadata=metadata,
secure_mode=secure_mode,
config_mesh=config_mesh,
Expand Down
4 changes: 4 additions & 0 deletions kubernetes-manifests/client.deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,12 @@ spec:
- "--qps=${qps}"
- "--rpc=${rpc}"
- "--metadata=${metadata}"
% if request_payload_size > 0:
- "--request_payload_size=${request_payload_size}"
% endif
% if response_payload_size > 0:
- "--response_payload_size=${response_payload_size}"
% endif
- "--print_response=${print_response}"
% if enable_csm_observability:
- "--enable_csm_observability"
Expand Down
4 changes: 3 additions & 1 deletion tests/gamma/csm_observability_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ def test_csm_observability(self):

with self.subTest("2_start_test_client"):
test_client: _XdsTestClient = self.startTestClient(
test_server, enable_csm_observability=True
test_server, enable_csm_observability=True,
request_payload_size=271828,
response_payload_size=314159,
)

with self.subTest("3_test_server_received_rpcs_from_test_client"):
Expand Down

0 comments on commit cd3c218

Please sign in to comment.