From b125fd3bf59a52fe20789f00823e777929cdf44a Mon Sep 17 00:00:00 2001 From: Menghan Li Date: Fri, 20 Nov 2020 14:07:26 -0800 Subject: [PATCH] xds testing: add case insensitive path matching --- tools/run_tests/run_xds_tests.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/tools/run_tests/run_xds_tests.py b/tools/run_tests/run_xds_tests.py index 9ffcb261342..92f1f142efc 100755 --- a/tools/run_tests/run_xds_tests.py +++ b/tools/run_tests/run_xds_tests.py @@ -1045,6 +1045,21 @@ def test_path_matching(gcp, original_backend_service, instance_group, "UnaryCall": alternate_backend_instances, "EmptyCall": original_backend_instances }), + ( + [{ + 'priority': 0, + # ignoreCase EmptyCall -> alternate_backend_service. + 'matchRules': [{ + # Case insensitive matching. + 'fullPathMatch': '/gRpC.tEsTinG.tEstseRvice/empTycaLl', + 'ignoreCase': True, + }], + 'service': alternate_backend_service.url + }], + { + "UnaryCall": original_backend_instances, + "EmptyCall": alternate_backend_instances + }), ] for (route_rules, expected_instances) in test_cases: