aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/cpp/naming/resolver_test_record_groups.yaml
blob: 3c51a00c7b1cd2b50501cb42827c2c2b46aa7113 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
resolver_tests_common_zone_name: resolver-tests-version-4.grpctestingexp.
resolver_component_tests:
- expected_addrs:
  - {address: '5.5.5.5:443', is_balancer: false}
  expected_chosen_service_config: null
  expected_lb_policy: null
  record_to_resolve: no-srv-ipv4-single-target
  records:
    no-srv-ipv4-single-target:
    - {TTL: '2100', data: 5.5.5.5, type: A}
- expected_addrs:
  - {address: '1.2.3.4:1234', is_balancer: true}
  expected_chosen_service_config: null
  expected_lb_policy: null
  record_to_resolve: srv-ipv4-single-target
  records:
    _grpclb._tcp.srv-ipv4-single-target:
    - {TTL: '2100', data: 0 0 1234 ipv4-single-target, type: SRV}
    ipv4-single-target:
    - {TTL: '2100', data: 1.2.3.4, type: A}
- expected_addrs:
  - {address: '1.2.3.5:1234', is_balancer: true}
  - {address: '1.2.3.6:1234', is_balancer: true}
  - {address: '1.2.3.7:1234', is_balancer: true}
  expected_chosen_service_config: null
  expected_lb_policy: null
  record_to_resolve: srv-ipv4-multi-target
  records:
    _grpclb._tcp.srv-ipv4-multi-target:
    - {TTL: '2100', data: 0 0 1234 ipv4-multi-target, type: SRV}
    ipv4-multi-target:
    - {TTL: '2100', data: 1.2.3.5, type: A}
    - {TTL: '2100', data: 1.2.3.6, type: A}
    - {TTL: '2100', data: 1.2.3.7, type: A}
- expected_addrs:
  - {address: '[2607:f8b0:400a:801::1001]:1234', is_balancer: true}
  expected_chosen_service_config: null
  expected_lb_policy: null
  record_to_resolve: srv-ipv6-single-target
  records:
    _grpclb._tcp.srv-ipv6-single-target:
    - {TTL: '2100', data: 0 0 1234 ipv6-single-target, type: SRV}
    ipv6-single-target:
    - {TTL: '2100', data: '2607:f8b0:400a:801::1001', type: AAAA}
- expected_addrs:
  - {address: '[2607:f8b0:400a:801::1002]:1234', is_balancer: true}
  - {address: '[2607:f8b0:400a:801::1003]:1234', is_balancer: true}
  - {address: '[2607:f8b0:400a:801::1004]:1234', is_balancer: true}
  expected_chosen_service_config: null
  expected_lb_policy: null
  record_to_resolve: srv-ipv6-multi-target
  records:
    _grpclb._tcp.srv-ipv6-multi-target:
    - {TTL: '2100', data: 0 0 1234 ipv6-multi-target, type: SRV}
    ipv6-multi-target:
    - {TTL: '2100', data: '2607:f8b0:400a:801::1002', type: AAAA}
    - {TTL: '2100', data: '2607:f8b0:400a:801::1003', type: AAAA}
    - {TTL: '2100', data: '2607:f8b0:400a:801::1004', type: AAAA}
- expected_addrs:
  - {address: '1.2.3.4:1234', is_balancer: true}
  expected_chosen_service_config: '{"loadBalancingPolicy":"round_robin","methodConfig":[{"name":[{"method":"Foo","service":"SimpleService","waitForReady":true}]}]}'
  expected_lb_policy: round_robin
  record_to_resolve: srv-ipv4-simple-service-config
  records:
    _grpclb._tcp.srv-ipv4-simple-service-config:
    - {TTL: '2100', data: 0 0 1234 ipv4-simple-service-config, type: SRV}
    ipv4-simple-service-config:
    - {TTL: '2100', data: 1.2.3.4, type: A}
    _grpc_config.srv-ipv4-simple-service-config:
    - {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: '{"loadBalancingPolicy":"round_robin","methodConfig":[{"name":[{"method":"Foo","service":"NoSrvSimpleService","waitForReady":true}]}]}'
  expected_lb_policy: round_robin
  record_to_resolve: ipv4-no-srv-simple-service-config
  records:
    ipv4-no-srv-simple-service-config:
    - {TTL: '2100', data: 1.2.3.4, type: A}
    _grpc_config.ipv4-no-srv-simple-service-config:
    - {TTL: '2100', data: 'grpc_config=[{"serviceConfig":{"loadBalancingPolicy":"round_robin","methodConfig":[{"name":[{"method":"Foo","service":"NoSrvSimpleService","waitForReady":true}]}]}}]',
      type: TXT}
- expected_addrs:
  - {address: '1.2.3.4:443', is_balancer: false}
  expected_chosen_service_config: null
  expected_lb_policy: null
  record_to_resolve: ipv4-no-config-for-cpp
  records:
    ipv4-no-config-for-cpp:
    - {TTL: '2100', data: 1.2.3.4, type: A}
    _grpc_config.ipv4-no-config-for-cpp:
    - {TTL: '2100', data: 'grpc_config=[{"clientLanguage":["python"],"serviceConfig":{"loadBalancingPolicy":"round_robin","methodConfig":[{"name":[{"method":"Foo","service":"PythonService","waitForReady":true}]}]}}]',
      type: TXT}
- expected_addrs:
  - {address: '1.2.3.4:443', is_balancer: false}
  expected_chosen_service_config: null
  expected_lb_policy: null
  record_to_resolve: ipv4-cpp-config-has-zero-percentage
  records:
    ipv4-cpp-config-has-zero-percentage:
    - {TTL: '2100', data: 1.2.3.4, type: A}
    _grpc_config.ipv4-cpp-config-has-zero-percentage:
    - {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: '{"loadBalancingPolicy":"round_robin","methodConfig":[{"name":[{"method":"Foo","service":"CppService","waitForReady":true}]}]}'
  expected_lb_policy: round_robin
  record_to_resolve: ipv4-second-language-is-cpp
  records:
    ipv4-second-language-is-cpp:
    - {TTL: '2100', data: 1.2.3.4, type: A}
    _grpc_config.ipv4-second-language-is-cpp:
    - {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}
- expected_addrs:
  - {address: '1.2.3.4:443', is_balancer: false}
  expected_chosen_service_config: '{"loadBalancingPolicy":"round_robin","methodConfig":[{"name":[{"method":"Foo","service":"AlwaysPickedService","waitForReady":true}]}]}'
  expected_lb_policy: round_robin
  record_to_resolve: ipv4-config-with-percentages
  records:
    ipv4-config-with-percentages:
    - {TTL: '2100', data: 1.2.3.4, type: A}
    _grpc_config.ipv4-config-with-percentages:
    - {TTL: '2100', data: 'grpc_config=[{"percentage":0,"serviceConfig":{"loadBalancingPolicy":"round_robin","methodConfig":[{"name":[{"method":"Foo","service":"NeverPickedService","waitForReady":true}]}]}},{"percentage":100,"serviceConfig":{"loadBalancingPolicy":"round_robin","methodConfig":[{"name":[{"method":"Foo","service":"AlwaysPickedService","waitForReady":true}]}]}}]',
      type: TXT}
- expected_addrs:
  - {address: '1.2.3.4:1234', is_balancer: true}
  - {address: '1.2.3.4:443', is_balancer: false}
  expected_chosen_service_config: null
  expected_lb_policy: null
  record_to_resolve: srv-ipv4-target-has-backend-and-balancer
  records:
    _grpclb._tcp.srv-ipv4-target-has-backend-and-balancer:
    - {TTL: '2100', data: 0 0 1234 balancer-for-ipv4-has-backend-and-balancer, type: SRV}
    balancer-for-ipv4-has-backend-and-balancer:
    - {TTL: '2100', data: 1.2.3.4, type: A}
    srv-ipv4-target-has-backend-and-balancer:
    - {TTL: '2100', data: 1.2.3.4, type: A}
- expected_addrs:
  - {address: '[2607:f8b0:400a:801::1002]:1234', is_balancer: true}
  - {address: '[2607:f8b0:400a:801::1002]:443', is_balancer: false}
  expected_chosen_service_config: null
  expected_lb_policy: null
  record_to_resolve: srv-ipv6-target-has-backend-and-balancer
  records:
    _grpclb._tcp.srv-ipv6-target-has-backend-and-balancer:
    - {TTL: '2100', data: 0 0 1234 balancer-for-ipv6-has-backend-and-balancer, type: SRV}
    balancer-for-ipv6-has-backend-and-balancer:
    - {TTL: '2100', data: '2607:f8b0:400a:801::1002', type: AAAA}
    srv-ipv6-target-has-backend-and-balancer:
    - {TTL: '2100', data: '2607:f8b0:400a:801::1002', type: AAAA}
- expected_addrs:
  - {address: '1.2.3.4:443', is_balancer: false}
  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
  record_to_resolve: ipv4-config-causing-fallback-to-tcp
  records:
    ipv4-config-causing-fallback-to-tcp:
    - {TTL: '2100', data: 1.2.3.4, type: A}
    _grpc_config.ipv4-config-causing-fallback-to-tcp:
    - {TTL: '2100', data: 'grpc_config=[{"serviceConfig":{"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}]}]}}]',
      type: TXT}