xds testing: add path_matching and header_matching (#3764)

This commit is contained in:
Menghan Li
2020-07-28 10:33:47 -07:00
committed by GitHub
parent dfc0c05b2d
commit 067255ffae

View File

@ -19,11 +19,17 @@ popd
git clone -b "${branch}" --single-branch --depth=1 https://github.com/grpc/grpc.git git clone -b "${branch}" --single-branch --depth=1 https://github.com/grpc/grpc.git
grpc/tools/run_tests/helper_scripts/prep_xds.sh grpc/tools/run_tests/helper_scripts/prep_xds.sh
# Test cases "path_matching" and "header_matching" are not included in "all",
# because not all interop clients in all languages support these new tests.
#
# TODO: remove "path_matching" and "header_matching" from --test_case after
# they are added into "all".
GRPC_GO_LOG_VERBOSITY_LEVEL=99 GRPC_GO_LOG_SEVERITY_LEVEL=info \ GRPC_GO_LOG_VERBOSITY_LEVEL=99 GRPC_GO_LOG_SEVERITY_LEVEL=info \
python3 grpc/tools/run_tests/run_xds_tests.py \ python3 grpc/tools/run_tests/run_xds_tests.py \
--test_case=all \ --test_case="all,path_matching,header_matching" \
--project_id=grpc-testing \ --project_id=grpc-testing \
--source_image=projects/grpc-testing/global/images/xds-test-server \ --source_image=projects/grpc-testing/global/images/xds-test-server-2 \
--path_to_server_binary=/java_server/grpc-java/interop-testing/build/install/grpc-interop-testing/bin/xds-test-server \ --path_to_server_binary=/java_server/grpc-java/interop-testing/build/install/grpc-interop-testing/bin/xds-test-server \
--gcp_suffix=$(date '+%s') \ --gcp_suffix=$(date '+%s') \
--verbose \ --verbose \
@ -31,4 +37,7 @@ GRPC_GO_LOG_VERBOSITY_LEVEL=99 GRPC_GO_LOG_SEVERITY_LEVEL=info \
--server=xds:///{server_uri} \ --server=xds:///{server_uri} \
--stats_port={stats_port} \ --stats_port={stats_port} \
--qps={qps} \ --qps={qps} \
{fail_on_failed_rpc}" {fail_on_failed_rpc} \
{rpcs_to_send} \
{metadata_to_send}"