aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorGravatar apolcyn <apolcyn@google.com>2018-05-14 11:36:40 -0700
committerGravatar GitHub <noreply@github.com>2018-05-14 11:36:40 -0700
commitb3700bbdd488158d1c5ac1c33387145872ca95c3 (patch)
tree5bab479781406508ba0efee6ab1e72b18530e798 /test
parent77461d45979cab23cc1a7954a147a4d3ac25fdaf (diff)
parent550621c1b57c006fd18ddd0c9c3c589e8a2944ad (diff)
Merge pull request #15346 from apolcyn/make_resolver_test_runner_generic
Make local DNS server test runner more generic
Diffstat (limited to 'test')
-rwxr-xr-xtest/cpp/naming/gen_build_yaml.py17
1 files changed, 12 insertions, 5 deletions
diff --git a/test/cpp/naming/gen_build_yaml.py b/test/cpp/naming/gen_build_yaml.py
index adebc62084..493713ff0e 100755
--- a/test/cpp/naming/gen_build_yaml.py
+++ b/test/cpp/naming/gen_build_yaml.py
@@ -119,12 +119,19 @@ def _resolver_test_cases(resolver_component_data, records_to_skip):
for test_case in resolver_component_data['resolver_component_tests']:
if test_case['record_to_resolve'] in records_to_skip:
continue
+ target_name = _append_zone_name(
+ test_case['record_to_resolve'],
+ resolver_component_data['resolver_tests_common_zone_name'])
out.append({
- 'target_name': _append_zone_name(test_case['record_to_resolve'],
- resolver_component_data['resolver_tests_common_zone_name']),
- 'expected_addrs': _build_expected_addrs_cmd_arg(test_case['expected_addrs']),
- 'expected_chosen_service_config': (test_case['expected_chosen_service_config'] or ''),
- 'expected_lb_policy': (test_case['expected_lb_policy'] or ''),
+ 'test_title': target_name,
+ 'arg_names_and_values': [
+ ('target_name', target_name),
+ ('expected_addrs',
+ _build_expected_addrs_cmd_arg(test_case['expected_addrs'])),
+ ('expected_chosen_service_config',
+ (test_case['expected_chosen_service_config'] or '')),
+ ('expected_lb_policy', (test_case['expected_lb_policy'] or '')),
+ ],
})
return out