Merge pull request #17998 from apolcyn/disable_txt_lookups_by_defaut

Disable service config resolution with c-ares by default, for now
pull/18012/head
apolcyn 6 years ago committed by GitHub
commit 349864c77b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/core/ext/filters/client_channel/resolver/dns/c_ares/dns_resolver_ares.cc
  2. 1
      test/cpp/naming/gen_build_yaml.py
  3. 27
      test/cpp/naming/resolver_component_test.cc
  4. 61
      test/cpp/naming/resolver_component_tests_runner.py
  5. 60
      test/cpp/naming/resolver_test_record_groups.yaml

@ -151,7 +151,7 @@ AresDnsResolver::AresDnsResolver(const ResolverArgs& args)
// Disable service config option
const grpc_arg* arg = grpc_channel_args_find(
channel_args_, GRPC_ARG_SERVICE_CONFIG_DISABLE_RESOLUTION);
request_service_config_ = !grpc_channel_arg_get_bool(arg, false);
request_service_config_ = !grpc_channel_arg_get_bool(arg, true);
// Min time b/t resolutions option
arg = grpc_channel_args_find(channel_args_,
GRPC_ARG_DNS_MIN_TIME_BETWEEN_RESOLUTIONS_MS);

@ -49,6 +49,7 @@ def _resolver_test_cases(resolver_component_data):
(test_case['expected_chosen_service_config'] or '')),
('expected_lb_policy', (test_case['expected_lb_policy'] or '')),
('enable_srv_queries', test_case['enable_srv_queries']),
('enable_txt_queries', test_case['enable_txt_queries']),
],
})
return out

@ -99,6 +99,13 @@ DEFINE_string(
"generate "
"the python script runner doesn't allow us to pass a gflags bool to this "
"binary.");
DEFINE_string(
enable_txt_queries, "",
"Whether or not to enable TXT queries for the ares resolver instance."
"It would be better if this arg could be bool, but the way that we "
"generate "
"the python script runner doesn't allow us to pass a gflags bool to this "
"binary.");
DEFINE_string(expected_lb_policy, "",
"Expected lb policy name that appears in resolver result channel "
"arg. Empty for none.");
@ -461,6 +468,26 @@ void RunResolvesRelevantRecordsTest(void (*OnDoneLocked)(void* arg,
gpr_log(GPR_DEBUG, "Invalid value for --enable_srv_queries.");
abort();
}
gpr_log(GPR_DEBUG, "resolver_component_test: --enable_txt_queries: %s",
FLAGS_enable_txt_queries.c_str());
// By default, TXT queries are disabled, so tests that expect no TXT query
// should avoid setting any channel arg. Test cases that do rely on the TXT
// query must explicitly enable TXT though.
if (FLAGS_enable_txt_queries == "True") {
// Unlike SRV queries, there isn't a channel arg specific to TXT records.
// Rather, we use the resolver-agnostic "service config" resolution option,
// for which c-ares has its own specific default value, which isn't
// necessarily shared by other resolvers.
grpc_arg txt_queries_arg = grpc_channel_arg_integer_create(
const_cast<char*>(GRPC_ARG_SERVICE_CONFIG_DISABLE_RESOLUTION), false);
grpc_channel_args* tmp_args =
grpc_channel_args_copy_and_add(resolver_args, &txt_queries_arg, 1);
grpc_channel_args_destroy(resolver_args);
resolver_args = tmp_args;
} else if (FLAGS_enable_txt_queries != "False") {
gpr_log(GPR_DEBUG, "Invalid value for --enable_txt_queries.");
abort();
}
// create resolver and resolve
grpc_core::OrphanablePtr<grpc_core::Resolver> resolver =
grpc_core::ResolverRegistry::CreateResolver(whole_uri, resolver_args,

@ -126,6 +126,7 @@ current_test_subprocess = subprocess.Popen([
'--expected_chosen_service_config', '',
'--expected_lb_policy', '',
'--enable_srv_queries', 'True',
'--enable_txt_queries', 'True',
'--local_dns_server_address', '127.0.0.1:%d' % args.dns_server_port])
current_test_subprocess.communicate()
if current_test_subprocess.returncode != 0:
@ -139,6 +140,7 @@ current_test_subprocess = subprocess.Popen([
'--expected_chosen_service_config', '',
'--expected_lb_policy', '',
'--enable_srv_queries', 'True',
'--enable_txt_queries', 'True',
'--local_dns_server_address', '127.0.0.1:%d' % args.dns_server_port])
current_test_subprocess.communicate()
if current_test_subprocess.returncode != 0:
@ -152,6 +154,7 @@ current_test_subprocess = subprocess.Popen([
'--expected_chosen_service_config', '',
'--expected_lb_policy', '',
'--enable_srv_queries', 'True',
'--enable_txt_queries', 'True',
'--local_dns_server_address', '127.0.0.1:%d' % args.dns_server_port])
current_test_subprocess.communicate()
if current_test_subprocess.returncode != 0:
@ -165,6 +168,7 @@ current_test_subprocess = subprocess.Popen([
'--expected_chosen_service_config', '',
'--expected_lb_policy', '',
'--enable_srv_queries', 'True',
'--enable_txt_queries', 'True',
'--local_dns_server_address', '127.0.0.1:%d' % args.dns_server_port])
current_test_subprocess.communicate()
if current_test_subprocess.returncode != 0:
@ -178,6 +182,7 @@ current_test_subprocess = subprocess.Popen([
'--expected_chosen_service_config', '',
'--expected_lb_policy', '',
'--enable_srv_queries', 'True',
'--enable_txt_queries', 'True',
'--local_dns_server_address', '127.0.0.1:%d' % args.dns_server_port])
current_test_subprocess.communicate()
if current_test_subprocess.returncode != 0:
@ -191,6 +196,7 @@ current_test_subprocess = subprocess.Popen([
'--expected_chosen_service_config', '{"loadBalancingPolicy":"round_robin","methodConfig":[{"name":[{"method":"Foo","service":"SimpleService","waitForReady":true}]}]}',
'--expected_lb_policy', 'round_robin',
'--enable_srv_queries', 'True',
'--enable_txt_queries', 'True',
'--local_dns_server_address', '127.0.0.1:%d' % args.dns_server_port])
current_test_subprocess.communicate()
if current_test_subprocess.returncode != 0:
@ -204,6 +210,7 @@ current_test_subprocess = subprocess.Popen([
'--expected_chosen_service_config', '{"loadBalancingPolicy":"round_robin","methodConfig":[{"name":[{"method":"Foo","service":"NoSrvSimpleService","waitForReady":true}]}]}',
'--expected_lb_policy', 'round_robin',
'--enable_srv_queries', 'True',
'--enable_txt_queries', 'True',
'--local_dns_server_address', '127.0.0.1:%d' % args.dns_server_port])
current_test_subprocess.communicate()
if current_test_subprocess.returncode != 0:
@ -217,6 +224,7 @@ current_test_subprocess = subprocess.Popen([
'--expected_chosen_service_config', '',
'--expected_lb_policy', '',
'--enable_srv_queries', 'True',
'--enable_txt_queries', 'True',
'--local_dns_server_address', '127.0.0.1:%d' % args.dns_server_port])
current_test_subprocess.communicate()
if current_test_subprocess.returncode != 0:
@ -230,6 +238,7 @@ current_test_subprocess = subprocess.Popen([
'--expected_chosen_service_config', '',
'--expected_lb_policy', '',
'--enable_srv_queries', 'True',
'--enable_txt_queries', 'True',
'--local_dns_server_address', '127.0.0.1:%d' % args.dns_server_port])
current_test_subprocess.communicate()
if current_test_subprocess.returncode != 0:
@ -243,6 +252,7 @@ current_test_subprocess = subprocess.Popen([
'--expected_chosen_service_config', '{"loadBalancingPolicy":"round_robin","methodConfig":[{"name":[{"method":"Foo","service":"CppService","waitForReady":true}]}]}',
'--expected_lb_policy', 'round_robin',
'--enable_srv_queries', 'True',
'--enable_txt_queries', 'True',
'--local_dns_server_address', '127.0.0.1:%d' % args.dns_server_port])
current_test_subprocess.communicate()
if current_test_subprocess.returncode != 0:
@ -256,6 +266,7 @@ current_test_subprocess = subprocess.Popen([
'--expected_chosen_service_config', '{"loadBalancingPolicy":"round_robin","methodConfig":[{"name":[{"method":"Foo","service":"AlwaysPickedService","waitForReady":true}]}]}',
'--expected_lb_policy', 'round_robin',
'--enable_srv_queries', 'True',
'--enable_txt_queries', 'True',
'--local_dns_server_address', '127.0.0.1:%d' % args.dns_server_port])
current_test_subprocess.communicate()
if current_test_subprocess.returncode != 0:
@ -269,6 +280,7 @@ current_test_subprocess = subprocess.Popen([
'--expected_chosen_service_config', '',
'--expected_lb_policy', '',
'--enable_srv_queries', 'True',
'--enable_txt_queries', 'True',
'--local_dns_server_address', '127.0.0.1:%d' % args.dns_server_port])
current_test_subprocess.communicate()
if current_test_subprocess.returncode != 0:
@ -282,6 +294,7 @@ current_test_subprocess = subprocess.Popen([
'--expected_chosen_service_config', '',
'--expected_lb_policy', '',
'--enable_srv_queries', 'True',
'--enable_txt_queries', 'True',
'--local_dns_server_address', '127.0.0.1:%d' % args.dns_server_port])
current_test_subprocess.communicate()
if current_test_subprocess.returncode != 0:
@ -295,6 +308,7 @@ current_test_subprocess = subprocess.Popen([
'--expected_chosen_service_config', '{"loadBalancingPolicy":"round_robin","methodConfig":[{"name":[{"method":"Foo","service":"SimpleService","waitForReady":true}]},{"name":[{"method":"FooTwo","service":"SimpleService","waitForReady":true}]},{"name":[{"method":"FooThree","service":"SimpleService","waitForReady":true}]},{"name":[{"method":"FooFour","service":"SimpleService","waitForReady":true}]},{"name":[{"method":"FooFive","service":"SimpleService","waitForReady":true}]},{"name":[{"method":"FooSix","service":"SimpleService","waitForReady":true}]},{"name":[{"method":"FooSeven","service":"SimpleService","waitForReady":true}]},{"name":[{"method":"FooEight","service":"SimpleService","waitForReady":true}]},{"name":[{"method":"FooNine","service":"SimpleService","waitForReady":true}]},{"name":[{"method":"FooTen","service":"SimpleService","waitForReady":true}]},{"name":[{"method":"FooEleven","service":"SimpleService","waitForReady":true}]},{"name":[{"method":"FooTwelve","service":"SimpleService","waitForReady":true}]},{"name":[{"method":"FooTwelve","service":"SimpleService","waitForReady":true}]},{"name":[{"method":"FooTwelve","service":"SimpleService","waitForReady":true}]},{"name":[{"method":"FooTwelve","service":"SimpleService","waitForReady":true}]}]}',
'--expected_lb_policy', '',
'--enable_srv_queries', 'True',
'--enable_txt_queries', 'True',
'--local_dns_server_address', '127.0.0.1:%d' % args.dns_server_port])
current_test_subprocess.communicate()
if current_test_subprocess.returncode != 0:
@ -308,6 +322,7 @@ current_test_subprocess = subprocess.Popen([
'--expected_chosen_service_config', '',
'--expected_lb_policy', '',
'--enable_srv_queries', 'False',
'--enable_txt_queries', 'True',
'--local_dns_server_address', '127.0.0.1:%d' % args.dns_server_port])
current_test_subprocess.communicate()
if current_test_subprocess.returncode != 0:
@ -321,6 +336,7 @@ current_test_subprocess = subprocess.Popen([
'--expected_chosen_service_config', '',
'--expected_lb_policy', '',
'--enable_srv_queries', 'False',
'--enable_txt_queries', 'True',
'--local_dns_server_address', '127.0.0.1:%d' % args.dns_server_port])
current_test_subprocess.communicate()
if current_test_subprocess.returncode != 0:
@ -334,6 +350,7 @@ current_test_subprocess = subprocess.Popen([
'--expected_chosen_service_config', '',
'--expected_lb_policy', '',
'--enable_srv_queries', 'False',
'--enable_txt_queries', 'True',
'--local_dns_server_address', '127.0.0.1:%d' % args.dns_server_port])
current_test_subprocess.communicate()
if current_test_subprocess.returncode != 0:
@ -347,6 +364,7 @@ current_test_subprocess = subprocess.Popen([
'--expected_chosen_service_config', '',
'--expected_lb_policy', '',
'--enable_srv_queries', 'False',
'--enable_txt_queries', 'True',
'--local_dns_server_address', '127.0.0.1:%d' % args.dns_server_port])
current_test_subprocess.communicate()
if current_test_subprocess.returncode != 0:
@ -360,6 +378,49 @@ current_test_subprocess = subprocess.Popen([
'--expected_chosen_service_config', '{"loadBalancingPolicy":"round_robin","methodConfig":[{"name":[{"method":"Foo","service":"SimpleService","waitForReady":true}]}]}',
'--expected_lb_policy', 'round_robin',
'--enable_srv_queries', 'False',
'--enable_txt_queries', 'True',
'--local_dns_server_address', '127.0.0.1:%d' % args.dns_server_port])
current_test_subprocess.communicate()
if current_test_subprocess.returncode != 0:
num_test_failures += 1
test_runner_log('Run test with target: %s' % 'srv-ipv4-simple-service-config-txt-disabled.resolver-tests-version-4.grpctestingexp.')
current_test_subprocess = subprocess.Popen([
args.test_bin_path,
'--target_name', 'srv-ipv4-simple-service-config-txt-disabled.resolver-tests-version-4.grpctestingexp.',
'--expected_addrs', '1.2.3.4:1234,True',
'--expected_chosen_service_config', '',
'--expected_lb_policy', '',
'--enable_srv_queries', 'True',
'--enable_txt_queries', 'False',
'--local_dns_server_address', '127.0.0.1:%d' % args.dns_server_port])
current_test_subprocess.communicate()
if current_test_subprocess.returncode != 0:
num_test_failures += 1
test_runner_log('Run test with target: %s' % 'ipv4-cpp-config-has-zero-percentage-txt-disabled.resolver-tests-version-4.grpctestingexp.')
current_test_subprocess = subprocess.Popen([
args.test_bin_path,
'--target_name', 'ipv4-cpp-config-has-zero-percentage-txt-disabled.resolver-tests-version-4.grpctestingexp.',
'--expected_addrs', '1.2.3.4:443,False',
'--expected_chosen_service_config', '',
'--expected_lb_policy', '',
'--enable_srv_queries', 'True',
'--enable_txt_queries', 'False',
'--local_dns_server_address', '127.0.0.1:%d' % args.dns_server_port])
current_test_subprocess.communicate()
if current_test_subprocess.returncode != 0:
num_test_failures += 1
test_runner_log('Run test with target: %s' % 'ipv4-second-language-is-cpp-txt-disabled.resolver-tests-version-4.grpctestingexp.')
current_test_subprocess = subprocess.Popen([
args.test_bin_path,
'--target_name', 'ipv4-second-language-is-cpp-txt-disabled.resolver-tests-version-4.grpctestingexp.',
'--expected_addrs', '1.2.3.4:443,False',
'--expected_chosen_service_config', '',
'--expected_lb_policy', '',
'--enable_srv_queries', 'True',
'--enable_txt_queries', 'False',
'--local_dns_server_address', '127.0.0.1:%d' % args.dns_server_port])
current_test_subprocess.communicate()
if current_test_subprocess.returncode != 0:

@ -6,6 +6,7 @@ resolver_component_tests:
expected_chosen_service_config: null
expected_lb_policy: null
enable_srv_queries: true
enable_txt_queries: true
record_to_resolve: no-srv-ipv4-single-target
records:
no-srv-ipv4-single-target:
@ -15,6 +16,7 @@ resolver_component_tests:
expected_chosen_service_config: null
expected_lb_policy: null
enable_srv_queries: true
enable_txt_queries: true
record_to_resolve: srv-ipv4-single-target
records:
_grpclb._tcp.srv-ipv4-single-target:
@ -28,6 +30,7 @@ resolver_component_tests:
expected_chosen_service_config: null
expected_lb_policy: null
enable_srv_queries: true
enable_txt_queries: true
record_to_resolve: srv-ipv4-multi-target
records:
_grpclb._tcp.srv-ipv4-multi-target:
@ -41,6 +44,7 @@ resolver_component_tests:
expected_chosen_service_config: null
expected_lb_policy: null
enable_srv_queries: true
enable_txt_queries: true
record_to_resolve: srv-ipv6-single-target
records:
_grpclb._tcp.srv-ipv6-single-target:
@ -54,6 +58,7 @@ resolver_component_tests:
expected_chosen_service_config: null
expected_lb_policy: null
enable_srv_queries: true
enable_txt_queries: true
record_to_resolve: srv-ipv6-multi-target
records:
_grpclb._tcp.srv-ipv6-multi-target:
@ -67,6 +72,7 @@ resolver_component_tests:
expected_chosen_service_config: '{"loadBalancingPolicy":"round_robin","methodConfig":[{"name":[{"method":"Foo","service":"SimpleService","waitForReady":true}]}]}'
expected_lb_policy: round_robin
enable_srv_queries: true
enable_txt_queries: true
record_to_resolve: srv-ipv4-simple-service-config
records:
_grpclb._tcp.srv-ipv4-simple-service-config:
@ -81,6 +87,7 @@ resolver_component_tests:
expected_chosen_service_config: '{"loadBalancingPolicy":"round_robin","methodConfig":[{"name":[{"method":"Foo","service":"NoSrvSimpleService","waitForReady":true}]}]}'
expected_lb_policy: round_robin
enable_srv_queries: true
enable_txt_queries: true
record_to_resolve: ipv4-no-srv-simple-service-config
records:
ipv4-no-srv-simple-service-config:
@ -93,6 +100,7 @@ resolver_component_tests:
expected_chosen_service_config: null
expected_lb_policy: null
enable_srv_queries: true
enable_txt_queries: true
record_to_resolve: ipv4-no-config-for-cpp
records:
ipv4-no-config-for-cpp:
@ -105,6 +113,7 @@ resolver_component_tests:
expected_chosen_service_config: null
expected_lb_policy: null
enable_srv_queries: true
enable_txt_queries: true
record_to_resolve: ipv4-cpp-config-has-zero-percentage
records:
ipv4-cpp-config-has-zero-percentage:
@ -117,6 +126,7 @@ resolver_component_tests:
expected_chosen_service_config: '{"loadBalancingPolicy":"round_robin","methodConfig":[{"name":[{"method":"Foo","service":"CppService","waitForReady":true}]}]}'
expected_lb_policy: round_robin
enable_srv_queries: true
enable_txt_queries: true
record_to_resolve: ipv4-second-language-is-cpp
records:
ipv4-second-language-is-cpp:
@ -129,6 +139,7 @@ resolver_component_tests:
expected_chosen_service_config: '{"loadBalancingPolicy":"round_robin","methodConfig":[{"name":[{"method":"Foo","service":"AlwaysPickedService","waitForReady":true}]}]}'
expected_lb_policy: round_robin
enable_srv_queries: true
enable_txt_queries: true
record_to_resolve: ipv4-config-with-percentages
records:
ipv4-config-with-percentages:
@ -142,6 +153,7 @@ resolver_component_tests:
expected_chosen_service_config: null
expected_lb_policy: null
enable_srv_queries: true
enable_txt_queries: true
record_to_resolve: srv-ipv4-target-has-backend-and-balancer
records:
_grpclb._tcp.srv-ipv4-target-has-backend-and-balancer:
@ -156,6 +168,7 @@ resolver_component_tests:
expected_chosen_service_config: null
expected_lb_policy: null
enable_srv_queries: true
enable_txt_queries: true
record_to_resolve: srv-ipv6-target-has-backend-and-balancer
records:
_grpclb._tcp.srv-ipv6-target-has-backend-and-balancer:
@ -169,6 +182,7 @@ resolver_component_tests:
expected_chosen_service_config: '{"loadBalancingPolicy":"round_robin","methodConfig":[{"name":[{"method":"Foo","service":"SimpleService","waitForReady":true}]},{"name":[{"method":"FooTwo","service":"SimpleService","waitForReady":true}]},{"name":[{"method":"FooThree","service":"SimpleService","waitForReady":true}]},{"name":[{"method":"FooFour","service":"SimpleService","waitForReady":true}]},{"name":[{"method":"FooFive","service":"SimpleService","waitForReady":true}]},{"name":[{"method":"FooSix","service":"SimpleService","waitForReady":true}]},{"name":[{"method":"FooSeven","service":"SimpleService","waitForReady":true}]},{"name":[{"method":"FooEight","service":"SimpleService","waitForReady":true}]},{"name":[{"method":"FooNine","service":"SimpleService","waitForReady":true}]},{"name":[{"method":"FooTen","service":"SimpleService","waitForReady":true}]},{"name":[{"method":"FooEleven","service":"SimpleService","waitForReady":true}]},{"name":[{"method":"FooTwelve","service":"SimpleService","waitForReady":true}]},{"name":[{"method":"FooTwelve","service":"SimpleService","waitForReady":true}]},{"name":[{"method":"FooTwelve","service":"SimpleService","waitForReady":true}]},{"name":[{"method":"FooTwelve","service":"SimpleService","waitForReady":true}]}]}'
expected_lb_policy: null
enable_srv_queries: true
enable_txt_queries: true
record_to_resolve: ipv4-config-causing-fallback-to-tcp
records:
ipv4-config-causing-fallback-to-tcp:
@ -182,6 +196,7 @@ resolver_component_tests:
expected_chosen_service_config: null
expected_lb_policy: null
enable_srv_queries: false
enable_txt_queries: true
record_to_resolve: srv-ipv4-single-target-srv-disabled
records:
_grpclb._tcp.srv-ipv4-single-target-srv-disabled:
@ -197,6 +212,7 @@ resolver_component_tests:
expected_chosen_service_config: null
expected_lb_policy: null
enable_srv_queries: false
enable_txt_queries: true
record_to_resolve: srv-ipv4-multi-target-srv-disabled
records:
_grpclb._tcp.srv-ipv4-multi-target-srv-disabled:
@ -214,6 +230,7 @@ resolver_component_tests:
expected_chosen_service_config: null
expected_lb_policy: null
enable_srv_queries: false
enable_txt_queries: true
record_to_resolve: srv-ipv6-single-target-srv-disabled
records:
_grpclb._tcp.srv-ipv6-single-target-srv-disabled:
@ -229,6 +246,7 @@ resolver_component_tests:
expected_chosen_service_config: null
expected_lb_policy: null
enable_srv_queries: false
enable_txt_queries: true
record_to_resolve: srv-ipv6-multi-target-srv-disabled
records:
_grpclb._tcp.srv-ipv6-multi-target-srv-disabled:
@ -246,6 +264,7 @@ resolver_component_tests:
expected_chosen_service_config: '{"loadBalancingPolicy":"round_robin","methodConfig":[{"name":[{"method":"Foo","service":"SimpleService","waitForReady":true}]}]}'
expected_lb_policy: round_robin
enable_srv_queries: false
enable_txt_queries: true
record_to_resolve: srv-ipv4-simple-service-config-srv-disabled
records:
_grpclb._tcp.srv-ipv4-simple-service-config-srv-disabled:
@ -257,3 +276,44 @@ resolver_component_tests:
_grpc_config.srv-ipv4-simple-service-config-srv-disabled:
- {TTL: '2100', data: 'grpc_config=[{"serviceConfig":{"loadBalancingPolicy":"round_robin","methodConfig":[{"name":[{"method":"Foo","service":"SimpleService","waitForReady":true}]}]}}]',
type: TXT}
- expected_addrs:
- {address: '1.2.3.4:1234', is_balancer: true}
expected_chosen_service_config: null
expected_lb_policy: null
enable_srv_queries: true
enable_txt_queries: false
record_to_resolve: srv-ipv4-simple-service-config-txt-disabled
records:
_grpclb._tcp.srv-ipv4-simple-service-config-txt-disabled:
- {TTL: '2100', data: 0 0 1234 ipv4-simple-service-config-txt-disabled, type: SRV}
ipv4-simple-service-config-txt-disabled:
- {TTL: '2100', data: 1.2.3.4, type: A}
_grpc_config.srv-ipv4-simple-service-config-txt-disabled:
- {TTL: '2100', data: 'grpc_config=[{"serviceConfig":{"loadBalancingPolicy":"round_robin","methodConfig":[{"name":[{"method":"Foo","service":"SimpleService","waitForReady":true}]}]}}]',
type: TXT}
- expected_addrs:
- {address: '1.2.3.4:443', is_balancer: false}
expected_chosen_service_config: null
expected_lb_policy: null
enable_srv_queries: true
enable_txt_queries: false
record_to_resolve: ipv4-cpp-config-has-zero-percentage-txt-disabled
records:
ipv4-cpp-config-has-zero-percentage-txt-disabled:
- {TTL: '2100', data: 1.2.3.4, type: A}
_grpc_config.ipv4-cpp-config-has-zero-percentage-txt-disabled:
- {TTL: '2100', data: 'grpc_config=[{"percentage":0,"serviceConfig":{"loadBalancingPolicy":"round_robin","methodConfig":[{"name":[{"method":"Foo","service":"CppService","waitForReady":true}]}]}}]',
type: TXT}
- expected_addrs:
- {address: '1.2.3.4:443', is_balancer: false}
expected_chosen_service_config: null
expected_lb_policy: null
enable_srv_queries: true
enable_txt_queries: false
record_to_resolve: ipv4-second-language-is-cpp-txt-disabled
records:
ipv4-second-language-is-cpp-txt-disabled:
- {TTL: '2100', data: 1.2.3.4, type: A}
_grpc_config.ipv4-second-language-is-cpp-txt-disabled:
- {TTL: '2100', data: 'grpc_config=[{"clientLanguage":["go"],"serviceConfig":{"loadBalancingPolicy":"round_robin","methodConfig":[{"name":[{"method":"Foo","service":"GoService","waitForReady":true}]}]}},{"clientLanguage":["c++"],"serviceConfig":{"loadBalancingPolicy":"round_robin","methodConfig":[{"name":[{"method":"Foo","service":"CppService","waitForReady":true}]}]}}]',
type: TXT}

Loading…
Cancel
Save