|
|
@ -119,12 +119,19 @@ def _resolver_test_cases(resolver_component_data, records_to_skip): |
|
|
|
for test_case in resolver_component_data['resolver_component_tests']: |
|
|
|
for test_case in resolver_component_data['resolver_component_tests']: |
|
|
|
if test_case['record_to_resolve'] in records_to_skip: |
|
|
|
if test_case['record_to_resolve'] in records_to_skip: |
|
|
|
continue |
|
|
|
continue |
|
|
|
|
|
|
|
target_name = _append_zone_name( |
|
|
|
|
|
|
|
test_case['record_to_resolve'], |
|
|
|
|
|
|
|
resolver_component_data['resolver_tests_common_zone_name']) |
|
|
|
out.append({ |
|
|
|
out.append({ |
|
|
|
'target_name': _append_zone_name(test_case['record_to_resolve'], |
|
|
|
'test_title': target_name, |
|
|
|
resolver_component_data['resolver_tests_common_zone_name']), |
|
|
|
'arg_names_and_values': [ |
|
|
|
'expected_addrs': _build_expected_addrs_cmd_arg(test_case['expected_addrs']), |
|
|
|
('target_name', target_name), |
|
|
|
'expected_chosen_service_config': (test_case['expected_chosen_service_config'] or ''), |
|
|
|
('expected_addrs', |
|
|
|
'expected_lb_policy': (test_case['expected_lb_policy'] or ''), |
|
|
|
_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 |
|
|
|
return out |
|
|
|
|
|
|
|
|
|
|
|