|
|
|
@ -34,191 +34,191 @@ echo "Sanity check DNS records are resolveable with dig:" |
|
|
|
|
EXIT_CODE=0 |
|
|
|
|
|
|
|
|
|
ONE_FAILED=0 |
|
|
|
|
dig SRV _grpclb._tcp.srv-ipv4-single-target.resolver-tests-version-1.grpctestingexp. | grep 'ANSWER SECTION' || ONE_FAILED=1 |
|
|
|
|
dig SRV _grpclb._tcp.srv-ipv4-single-target.resolver-tests-version-4.grpctestingexp. | grep 'ANSWER SECTION' || ONE_FAILED=1 |
|
|
|
|
if [[ "$ONE_FAILED" != 0 ]]; then |
|
|
|
|
echo "Sanity check: dig SRV _grpclb._tcp.srv-ipv4-single-target.resolver-tests-version-1.grpctestingexp. FAILED" |
|
|
|
|
echo "Sanity check: dig SRV _grpclb._tcp.srv-ipv4-single-target.resolver-tests-version-4.grpctestingexp. FAILED" |
|
|
|
|
exit 1 |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
ONE_FAILED=0 |
|
|
|
|
dig A ipv4-single-target.resolver-tests-version-1.grpctestingexp. | grep 'ANSWER SECTION' || ONE_FAILED=1 |
|
|
|
|
dig A ipv4-single-target.resolver-tests-version-4.grpctestingexp. | grep 'ANSWER SECTION' || ONE_FAILED=1 |
|
|
|
|
if [[ "$ONE_FAILED" != 0 ]]; then |
|
|
|
|
echo "Sanity check: dig A ipv4-single-target.resolver-tests-version-1.grpctestingexp. FAILED" |
|
|
|
|
echo "Sanity check: dig A ipv4-single-target.resolver-tests-version-4.grpctestingexp. FAILED" |
|
|
|
|
exit 1 |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
ONE_FAILED=0 |
|
|
|
|
dig SRV _grpclb._tcp.srv-ipv4-multi-target.resolver-tests-version-1.grpctestingexp. | grep 'ANSWER SECTION' || ONE_FAILED=1 |
|
|
|
|
dig SRV _grpclb._tcp.srv-ipv4-multi-target.resolver-tests-version-4.grpctestingexp. | grep 'ANSWER SECTION' || ONE_FAILED=1 |
|
|
|
|
if [[ "$ONE_FAILED" != 0 ]]; then |
|
|
|
|
echo "Sanity check: dig SRV _grpclb._tcp.srv-ipv4-multi-target.resolver-tests-version-1.grpctestingexp. FAILED" |
|
|
|
|
echo "Sanity check: dig SRV _grpclb._tcp.srv-ipv4-multi-target.resolver-tests-version-4.grpctestingexp. FAILED" |
|
|
|
|
exit 1 |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
ONE_FAILED=0 |
|
|
|
|
dig A ipv4-multi-target.resolver-tests-version-1.grpctestingexp. | grep 'ANSWER SECTION' || ONE_FAILED=1 |
|
|
|
|
dig A ipv4-multi-target.resolver-tests-version-4.grpctestingexp. | grep 'ANSWER SECTION' || ONE_FAILED=1 |
|
|
|
|
if [[ "$ONE_FAILED" != 0 ]]; then |
|
|
|
|
echo "Sanity check: dig A ipv4-multi-target.resolver-tests-version-1.grpctestingexp. FAILED" |
|
|
|
|
echo "Sanity check: dig A ipv4-multi-target.resolver-tests-version-4.grpctestingexp. FAILED" |
|
|
|
|
exit 1 |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
ONE_FAILED=0 |
|
|
|
|
dig SRV _grpclb._tcp.srv-ipv6-single-target.resolver-tests-version-1.grpctestingexp. | grep 'ANSWER SECTION' || ONE_FAILED=1 |
|
|
|
|
dig SRV _grpclb._tcp.srv-ipv6-single-target.resolver-tests-version-4.grpctestingexp. | grep 'ANSWER SECTION' || ONE_FAILED=1 |
|
|
|
|
if [[ "$ONE_FAILED" != 0 ]]; then |
|
|
|
|
echo "Sanity check: dig SRV _grpclb._tcp.srv-ipv6-single-target.resolver-tests-version-1.grpctestingexp. FAILED" |
|
|
|
|
echo "Sanity check: dig SRV _grpclb._tcp.srv-ipv6-single-target.resolver-tests-version-4.grpctestingexp. FAILED" |
|
|
|
|
exit 1 |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
ONE_FAILED=0 |
|
|
|
|
dig AAAA ipv6-single-target.resolver-tests-version-1.grpctestingexp. | grep 'ANSWER SECTION' || ONE_FAILED=1 |
|
|
|
|
dig AAAA ipv6-single-target.resolver-tests-version-4.grpctestingexp. | grep 'ANSWER SECTION' || ONE_FAILED=1 |
|
|
|
|
if [[ "$ONE_FAILED" != 0 ]]; then |
|
|
|
|
echo "Sanity check: dig AAAA ipv6-single-target.resolver-tests-version-1.grpctestingexp. FAILED" |
|
|
|
|
echo "Sanity check: dig AAAA ipv6-single-target.resolver-tests-version-4.grpctestingexp. FAILED" |
|
|
|
|
exit 1 |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
ONE_FAILED=0 |
|
|
|
|
dig SRV _grpclb._tcp.srv-ipv6-multi-target.resolver-tests-version-1.grpctestingexp. | grep 'ANSWER SECTION' || ONE_FAILED=1 |
|
|
|
|
dig SRV _grpclb._tcp.srv-ipv6-multi-target.resolver-tests-version-4.grpctestingexp. | grep 'ANSWER SECTION' || ONE_FAILED=1 |
|
|
|
|
if [[ "$ONE_FAILED" != 0 ]]; then |
|
|
|
|
echo "Sanity check: dig SRV _grpclb._tcp.srv-ipv6-multi-target.resolver-tests-version-1.grpctestingexp. FAILED" |
|
|
|
|
echo "Sanity check: dig SRV _grpclb._tcp.srv-ipv6-multi-target.resolver-tests-version-4.grpctestingexp. FAILED" |
|
|
|
|
exit 1 |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
ONE_FAILED=0 |
|
|
|
|
dig AAAA ipv6-multi-target.resolver-tests-version-1.grpctestingexp. | grep 'ANSWER SECTION' || ONE_FAILED=1 |
|
|
|
|
dig AAAA ipv6-multi-target.resolver-tests-version-4.grpctestingexp. | grep 'ANSWER SECTION' || ONE_FAILED=1 |
|
|
|
|
if [[ "$ONE_FAILED" != 0 ]]; then |
|
|
|
|
echo "Sanity check: dig AAAA ipv6-multi-target.resolver-tests-version-1.grpctestingexp. FAILED" |
|
|
|
|
echo "Sanity check: dig AAAA ipv6-multi-target.resolver-tests-version-4.grpctestingexp. FAILED" |
|
|
|
|
exit 1 |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
ONE_FAILED=0 |
|
|
|
|
dig TXT srv-ipv4-simple-service-config.resolver-tests-version-1.grpctestingexp. | grep 'ANSWER SECTION' || ONE_FAILED=1 |
|
|
|
|
dig TXT _grpc_config.srv-ipv4-simple-service-config.resolver-tests-version-4.grpctestingexp. | grep 'ANSWER SECTION' || ONE_FAILED=1 |
|
|
|
|
if [[ "$ONE_FAILED" != 0 ]]; then |
|
|
|
|
echo "Sanity check: dig TXT srv-ipv4-simple-service-config.resolver-tests-version-1.grpctestingexp. FAILED" |
|
|
|
|
echo "Sanity check: dig TXT _grpc_config.srv-ipv4-simple-service-config.resolver-tests-version-4.grpctestingexp. FAILED" |
|
|
|
|
exit 1 |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
ONE_FAILED=0 |
|
|
|
|
dig A ipv4-simple-service-config.resolver-tests-version-1.grpctestingexp. | grep 'ANSWER SECTION' || ONE_FAILED=1 |
|
|
|
|
dig SRV _grpclb._tcp.srv-ipv4-simple-service-config.resolver-tests-version-4.grpctestingexp. | grep 'ANSWER SECTION' || ONE_FAILED=1 |
|
|
|
|
if [[ "$ONE_FAILED" != 0 ]]; then |
|
|
|
|
echo "Sanity check: dig A ipv4-simple-service-config.resolver-tests-version-1.grpctestingexp. FAILED" |
|
|
|
|
echo "Sanity check: dig SRV _grpclb._tcp.srv-ipv4-simple-service-config.resolver-tests-version-4.grpctestingexp. FAILED" |
|
|
|
|
exit 1 |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
ONE_FAILED=0 |
|
|
|
|
dig SRV _grpclb._tcp.srv-ipv4-simple-service-config.resolver-tests-version-1.grpctestingexp. | grep 'ANSWER SECTION' || ONE_FAILED=1 |
|
|
|
|
dig A ipv4-simple-service-config.resolver-tests-version-4.grpctestingexp. | grep 'ANSWER SECTION' || ONE_FAILED=1 |
|
|
|
|
if [[ "$ONE_FAILED" != 0 ]]; then |
|
|
|
|
echo "Sanity check: dig SRV _grpclb._tcp.srv-ipv4-simple-service-config.resolver-tests-version-1.grpctestingexp. FAILED" |
|
|
|
|
echo "Sanity check: dig A ipv4-simple-service-config.resolver-tests-version-4.grpctestingexp. FAILED" |
|
|
|
|
exit 1 |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
ONE_FAILED=0 |
|
|
|
|
dig A ipv4-no-srv-simple-service-config.resolver-tests-version-1.grpctestingexp. | grep 'ANSWER SECTION' || ONE_FAILED=1 |
|
|
|
|
dig A ipv4-no-srv-simple-service-config.resolver-tests-version-4.grpctestingexp. | grep 'ANSWER SECTION' || ONE_FAILED=1 |
|
|
|
|
if [[ "$ONE_FAILED" != 0 ]]; then |
|
|
|
|
echo "Sanity check: dig A ipv4-no-srv-simple-service-config.resolver-tests-version-1.grpctestingexp. FAILED" |
|
|
|
|
echo "Sanity check: dig A ipv4-no-srv-simple-service-config.resolver-tests-version-4.grpctestingexp. FAILED" |
|
|
|
|
exit 1 |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
ONE_FAILED=0 |
|
|
|
|
dig TXT ipv4-no-srv-simple-service-config.resolver-tests-version-1.grpctestingexp. | grep 'ANSWER SECTION' || ONE_FAILED=1 |
|
|
|
|
dig TXT _grpc_config.ipv4-no-srv-simple-service-config.resolver-tests-version-4.grpctestingexp. | grep 'ANSWER SECTION' || ONE_FAILED=1 |
|
|
|
|
if [[ "$ONE_FAILED" != 0 ]]; then |
|
|
|
|
echo "Sanity check: dig TXT ipv4-no-srv-simple-service-config.resolver-tests-version-1.grpctestingexp. FAILED" |
|
|
|
|
echo "Sanity check: dig TXT _grpc_config.ipv4-no-srv-simple-service-config.resolver-tests-version-4.grpctestingexp. FAILED" |
|
|
|
|
exit 1 |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
ONE_FAILED=0 |
|
|
|
|
dig A ipv4-no-config-for-cpp.resolver-tests-version-1.grpctestingexp. | grep 'ANSWER SECTION' || ONE_FAILED=1 |
|
|
|
|
dig TXT _grpc_config.ipv4-no-config-for-cpp.resolver-tests-version-4.grpctestingexp. | grep 'ANSWER SECTION' || ONE_FAILED=1 |
|
|
|
|
if [[ "$ONE_FAILED" != 0 ]]; then |
|
|
|
|
echo "Sanity check: dig A ipv4-no-config-for-cpp.resolver-tests-version-1.grpctestingexp. FAILED" |
|
|
|
|
echo "Sanity check: dig TXT _grpc_config.ipv4-no-config-for-cpp.resolver-tests-version-4.grpctestingexp. FAILED" |
|
|
|
|
exit 1 |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
ONE_FAILED=0 |
|
|
|
|
dig TXT ipv4-no-config-for-cpp.resolver-tests-version-1.grpctestingexp. | grep 'ANSWER SECTION' || ONE_FAILED=1 |
|
|
|
|
dig A ipv4-no-config-for-cpp.resolver-tests-version-4.grpctestingexp. | grep 'ANSWER SECTION' || ONE_FAILED=1 |
|
|
|
|
if [[ "$ONE_FAILED" != 0 ]]; then |
|
|
|
|
echo "Sanity check: dig TXT ipv4-no-config-for-cpp.resolver-tests-version-1.grpctestingexp. FAILED" |
|
|
|
|
echo "Sanity check: dig A ipv4-no-config-for-cpp.resolver-tests-version-4.grpctestingexp. FAILED" |
|
|
|
|
exit 1 |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
ONE_FAILED=0 |
|
|
|
|
dig A ipv4-cpp-config-has-zero-percentage.resolver-tests-version-1.grpctestingexp. | grep 'ANSWER SECTION' || ONE_FAILED=1 |
|
|
|
|
dig A ipv4-cpp-config-has-zero-percentage.resolver-tests-version-4.grpctestingexp. | grep 'ANSWER SECTION' || ONE_FAILED=1 |
|
|
|
|
if [[ "$ONE_FAILED" != 0 ]]; then |
|
|
|
|
echo "Sanity check: dig A ipv4-cpp-config-has-zero-percentage.resolver-tests-version-1.grpctestingexp. FAILED" |
|
|
|
|
echo "Sanity check: dig A ipv4-cpp-config-has-zero-percentage.resolver-tests-version-4.grpctestingexp. FAILED" |
|
|
|
|
exit 1 |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
ONE_FAILED=0 |
|
|
|
|
dig TXT ipv4-cpp-config-has-zero-percentage.resolver-tests-version-1.grpctestingexp. | grep 'ANSWER SECTION' || ONE_FAILED=1 |
|
|
|
|
dig TXT _grpc_config.ipv4-cpp-config-has-zero-percentage.resolver-tests-version-4.grpctestingexp. | grep 'ANSWER SECTION' || ONE_FAILED=1 |
|
|
|
|
if [[ "$ONE_FAILED" != 0 ]]; then |
|
|
|
|
echo "Sanity check: dig TXT ipv4-cpp-config-has-zero-percentage.resolver-tests-version-1.grpctestingexp. FAILED" |
|
|
|
|
echo "Sanity check: dig TXT _grpc_config.ipv4-cpp-config-has-zero-percentage.resolver-tests-version-4.grpctestingexp. FAILED" |
|
|
|
|
exit 1 |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
ONE_FAILED=0 |
|
|
|
|
dig A ipv4-second-language-is-cpp.resolver-tests-version-1.grpctestingexp. | grep 'ANSWER SECTION' || ONE_FAILED=1 |
|
|
|
|
dig TXT _grpc_config.ipv4-second-language-is-cpp.resolver-tests-version-4.grpctestingexp. | grep 'ANSWER SECTION' || ONE_FAILED=1 |
|
|
|
|
if [[ "$ONE_FAILED" != 0 ]]; then |
|
|
|
|
echo "Sanity check: dig A ipv4-second-language-is-cpp.resolver-tests-version-1.grpctestingexp. FAILED" |
|
|
|
|
echo "Sanity check: dig TXT _grpc_config.ipv4-second-language-is-cpp.resolver-tests-version-4.grpctestingexp. FAILED" |
|
|
|
|
exit 1 |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
ONE_FAILED=0 |
|
|
|
|
dig TXT ipv4-second-language-is-cpp.resolver-tests-version-1.grpctestingexp. | grep 'ANSWER SECTION' || ONE_FAILED=1 |
|
|
|
|
dig A ipv4-second-language-is-cpp.resolver-tests-version-4.grpctestingexp. | grep 'ANSWER SECTION' || ONE_FAILED=1 |
|
|
|
|
if [[ "$ONE_FAILED" != 0 ]]; then |
|
|
|
|
echo "Sanity check: dig TXT ipv4-second-language-is-cpp.resolver-tests-version-1.grpctestingexp. FAILED" |
|
|
|
|
echo "Sanity check: dig A ipv4-second-language-is-cpp.resolver-tests-version-4.grpctestingexp. FAILED" |
|
|
|
|
exit 1 |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
ONE_FAILED=0 |
|
|
|
|
dig A ipv4-config-with-percentages.resolver-tests-version-1.grpctestingexp. | grep 'ANSWER SECTION' || ONE_FAILED=1 |
|
|
|
|
dig A ipv4-config-with-percentages.resolver-tests-version-4.grpctestingexp. | grep 'ANSWER SECTION' || ONE_FAILED=1 |
|
|
|
|
if [[ "$ONE_FAILED" != 0 ]]; then |
|
|
|
|
echo "Sanity check: dig A ipv4-config-with-percentages.resolver-tests-version-1.grpctestingexp. FAILED" |
|
|
|
|
echo "Sanity check: dig A ipv4-config-with-percentages.resolver-tests-version-4.grpctestingexp. FAILED" |
|
|
|
|
exit 1 |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
ONE_FAILED=0 |
|
|
|
|
dig TXT ipv4-config-with-percentages.resolver-tests-version-1.grpctestingexp. | grep 'ANSWER SECTION' || ONE_FAILED=1 |
|
|
|
|
dig TXT _grpc_config.ipv4-config-with-percentages.resolver-tests-version-4.grpctestingexp. | grep 'ANSWER SECTION' || ONE_FAILED=1 |
|
|
|
|
if [[ "$ONE_FAILED" != 0 ]]; then |
|
|
|
|
echo "Sanity check: dig TXT ipv4-config-with-percentages.resolver-tests-version-1.grpctestingexp. FAILED" |
|
|
|
|
echo "Sanity check: dig TXT _grpc_config.ipv4-config-with-percentages.resolver-tests-version-4.grpctestingexp. FAILED" |
|
|
|
|
exit 1 |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
ONE_FAILED=0 |
|
|
|
|
dig SRV _grpclb._tcp.srv-ipv4-target-has-backend-and-balancer.resolver-tests-version-1.grpctestingexp. | grep 'ANSWER SECTION' || ONE_FAILED=1 |
|
|
|
|
dig SRV _grpclb._tcp.srv-ipv4-target-has-backend-and-balancer.resolver-tests-version-4.grpctestingexp. | grep 'ANSWER SECTION' || ONE_FAILED=1 |
|
|
|
|
if [[ "$ONE_FAILED" != 0 ]]; then |
|
|
|
|
echo "Sanity check: dig SRV _grpclb._tcp.srv-ipv4-target-has-backend-and-balancer.resolver-tests-version-1.grpctestingexp. FAILED" |
|
|
|
|
echo "Sanity check: dig SRV _grpclb._tcp.srv-ipv4-target-has-backend-and-balancer.resolver-tests-version-4.grpctestingexp. FAILED" |
|
|
|
|
exit 1 |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
ONE_FAILED=0 |
|
|
|
|
dig A balancer-for-ipv4-has-backend-and-balancer.resolver-tests-version-1.grpctestingexp. | grep 'ANSWER SECTION' || ONE_FAILED=1 |
|
|
|
|
dig A balancer-for-ipv4-has-backend-and-balancer.resolver-tests-version-4.grpctestingexp. | grep 'ANSWER SECTION' || ONE_FAILED=1 |
|
|
|
|
if [[ "$ONE_FAILED" != 0 ]]; then |
|
|
|
|
echo "Sanity check: dig A balancer-for-ipv4-has-backend-and-balancer.resolver-tests-version-1.grpctestingexp. FAILED" |
|
|
|
|
echo "Sanity check: dig A balancer-for-ipv4-has-backend-and-balancer.resolver-tests-version-4.grpctestingexp. FAILED" |
|
|
|
|
exit 1 |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
ONE_FAILED=0 |
|
|
|
|
dig A srv-ipv4-target-has-backend-and-balancer.resolver-tests-version-1.grpctestingexp. | grep 'ANSWER SECTION' || ONE_FAILED=1 |
|
|
|
|
dig A srv-ipv4-target-has-backend-and-balancer.resolver-tests-version-4.grpctestingexp. | grep 'ANSWER SECTION' || ONE_FAILED=1 |
|
|
|
|
if [[ "$ONE_FAILED" != 0 ]]; then |
|
|
|
|
echo "Sanity check: dig A srv-ipv4-target-has-backend-and-balancer.resolver-tests-version-1.grpctestingexp. FAILED" |
|
|
|
|
echo "Sanity check: dig A srv-ipv4-target-has-backend-and-balancer.resolver-tests-version-4.grpctestingexp. FAILED" |
|
|
|
|
exit 1 |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
ONE_FAILED=0 |
|
|
|
|
dig SRV _grpclb._tcp.srv-ipv6-target-has-backend-and-balancer.resolver-tests-version-1.grpctestingexp. | grep 'ANSWER SECTION' || ONE_FAILED=1 |
|
|
|
|
dig SRV _grpclb._tcp.srv-ipv6-target-has-backend-and-balancer.resolver-tests-version-4.grpctestingexp. | grep 'ANSWER SECTION' || ONE_FAILED=1 |
|
|
|
|
if [[ "$ONE_FAILED" != 0 ]]; then |
|
|
|
|
echo "Sanity check: dig SRV _grpclb._tcp.srv-ipv6-target-has-backend-and-balancer.resolver-tests-version-1.grpctestingexp. FAILED" |
|
|
|
|
echo "Sanity check: dig SRV _grpclb._tcp.srv-ipv6-target-has-backend-and-balancer.resolver-tests-version-4.grpctestingexp. FAILED" |
|
|
|
|
exit 1 |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
ONE_FAILED=0 |
|
|
|
|
dig AAAA balancer-for-ipv6-has-backend-and-balancer.resolver-tests-version-1.grpctestingexp. | grep 'ANSWER SECTION' || ONE_FAILED=1 |
|
|
|
|
dig AAAA balancer-for-ipv6-has-backend-and-balancer.resolver-tests-version-4.grpctestingexp. | grep 'ANSWER SECTION' || ONE_FAILED=1 |
|
|
|
|
if [[ "$ONE_FAILED" != 0 ]]; then |
|
|
|
|
echo "Sanity check: dig AAAA balancer-for-ipv6-has-backend-and-balancer.resolver-tests-version-1.grpctestingexp. FAILED" |
|
|
|
|
echo "Sanity check: dig AAAA balancer-for-ipv6-has-backend-and-balancer.resolver-tests-version-4.grpctestingexp. FAILED" |
|
|
|
|
exit 1 |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
ONE_FAILED=0 |
|
|
|
|
dig AAAA srv-ipv6-target-has-backend-and-balancer.resolver-tests-version-1.grpctestingexp. | grep 'ANSWER SECTION' || ONE_FAILED=1 |
|
|
|
|
dig AAAA srv-ipv6-target-has-backend-and-balancer.resolver-tests-version-4.grpctestingexp. | grep 'ANSWER SECTION' || ONE_FAILED=1 |
|
|
|
|
if [[ "$ONE_FAILED" != 0 ]]; then |
|
|
|
|
echo "Sanity check: dig AAAA srv-ipv6-target-has-backend-and-balancer.resolver-tests-version-1.grpctestingexp. FAILED" |
|
|
|
|
echo "Sanity check: dig AAAA srv-ipv6-target-has-backend-and-balancer.resolver-tests-version-4.grpctestingexp. FAILED" |
|
|
|
|
exit 1 |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
@ -226,133 +226,133 @@ echo "Sanity check PASSED. Run resolver tests:" |
|
|
|
|
|
|
|
|
|
ONE_FAILED=0 |
|
|
|
|
bins/$CONFIG/resolver_component_test \ |
|
|
|
|
--target_name='srv-ipv4-single-target.resolver-tests-version-1.grpctestingexp.' \ |
|
|
|
|
--target_name='srv-ipv4-single-target.resolver-tests-version-4.grpctestingexp.' \ |
|
|
|
|
--expected_addrs='1.2.3.4:1234,True' \ |
|
|
|
|
--expected_chosen_service_config='' \ |
|
|
|
|
--expected_lb_policy='' || ONE_FAILED=1 |
|
|
|
|
if [[ "$ONE_FAILED" != 0 ]]; then |
|
|
|
|
echo "Test based on target record: srv-ipv4-single-target.resolver-tests-version-1.grpctestingexp. FAILED" |
|
|
|
|
echo "Test based on target record: srv-ipv4-single-target.resolver-tests-version-4.grpctestingexp. FAILED" |
|
|
|
|
EXIT_CODE=1 |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
ONE_FAILED=0 |
|
|
|
|
bins/$CONFIG/resolver_component_test \ |
|
|
|
|
--target_name='srv-ipv4-multi-target.resolver-tests-version-1.grpctestingexp.' \ |
|
|
|
|
--target_name='srv-ipv4-multi-target.resolver-tests-version-4.grpctestingexp.' \ |
|
|
|
|
--expected_addrs='1.2.3.5:1234,True;1.2.3.6:1234,True;1.2.3.7:1234,True' \ |
|
|
|
|
--expected_chosen_service_config='' \ |
|
|
|
|
--expected_lb_policy='' || ONE_FAILED=1 |
|
|
|
|
if [[ "$ONE_FAILED" != 0 ]]; then |
|
|
|
|
echo "Test based on target record: srv-ipv4-multi-target.resolver-tests-version-1.grpctestingexp. FAILED" |
|
|
|
|
echo "Test based on target record: srv-ipv4-multi-target.resolver-tests-version-4.grpctestingexp. FAILED" |
|
|
|
|
EXIT_CODE=1 |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
ONE_FAILED=0 |
|
|
|
|
bins/$CONFIG/resolver_component_test \ |
|
|
|
|
--target_name='srv-ipv6-single-target.resolver-tests-version-1.grpctestingexp.' \ |
|
|
|
|
--target_name='srv-ipv6-single-target.resolver-tests-version-4.grpctestingexp.' \ |
|
|
|
|
--expected_addrs='[2607:f8b0:400a:801::1001]:1234,True' \ |
|
|
|
|
--expected_chosen_service_config='' \ |
|
|
|
|
--expected_lb_policy='' || ONE_FAILED=1 |
|
|
|
|
if [[ "$ONE_FAILED" != 0 ]]; then |
|
|
|
|
echo "Test based on target record: srv-ipv6-single-target.resolver-tests-version-1.grpctestingexp. FAILED" |
|
|
|
|
echo "Test based on target record: srv-ipv6-single-target.resolver-tests-version-4.grpctestingexp. FAILED" |
|
|
|
|
EXIT_CODE=1 |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
ONE_FAILED=0 |
|
|
|
|
bins/$CONFIG/resolver_component_test \ |
|
|
|
|
--target_name='srv-ipv6-multi-target.resolver-tests-version-1.grpctestingexp.' \ |
|
|
|
|
--target_name='srv-ipv6-multi-target.resolver-tests-version-4.grpctestingexp.' \ |
|
|
|
|
--expected_addrs='[2607:f8b0:400a:801::1002]:1234,True;[2607:f8b0:400a:801::1003]:1234,True;[2607:f8b0:400a:801::1004]:1234,True' \ |
|
|
|
|
--expected_chosen_service_config='' \ |
|
|
|
|
--expected_lb_policy='' || ONE_FAILED=1 |
|
|
|
|
if [[ "$ONE_FAILED" != 0 ]]; then |
|
|
|
|
echo "Test based on target record: srv-ipv6-multi-target.resolver-tests-version-1.grpctestingexp. FAILED" |
|
|
|
|
echo "Test based on target record: srv-ipv6-multi-target.resolver-tests-version-4.grpctestingexp. FAILED" |
|
|
|
|
EXIT_CODE=1 |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
ONE_FAILED=0 |
|
|
|
|
bins/$CONFIG/resolver_component_test \ |
|
|
|
|
--target_name='srv-ipv4-simple-service-config.resolver-tests-version-1.grpctestingexp.' \ |
|
|
|
|
--target_name='srv-ipv4-simple-service-config.resolver-tests-version-4.grpctestingexp.' \ |
|
|
|
|
--expected_addrs='1.2.3.4:1234,True' \ |
|
|
|
|
--expected_chosen_service_config='{"loadBalancingPolicy":"round_robin","methodConfig":[{"name":[{"method":"Foo","service":"SimpleService","waitForReady":true}]}]}' \ |
|
|
|
|
--expected_lb_policy='round_robin' || ONE_FAILED=1 |
|
|
|
|
if [[ "$ONE_FAILED" != 0 ]]; then |
|
|
|
|
echo "Test based on target record: srv-ipv4-simple-service-config.resolver-tests-version-1.grpctestingexp. FAILED" |
|
|
|
|
echo "Test based on target record: srv-ipv4-simple-service-config.resolver-tests-version-4.grpctestingexp. FAILED" |
|
|
|
|
EXIT_CODE=1 |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
ONE_FAILED=0 |
|
|
|
|
bins/$CONFIG/resolver_component_test \ |
|
|
|
|
--target_name='ipv4-no-srv-simple-service-config.resolver-tests-version-1.grpctestingexp.' \ |
|
|
|
|
--target_name='ipv4-no-srv-simple-service-config.resolver-tests-version-4.grpctestingexp.' \ |
|
|
|
|
--expected_addrs='1.2.3.4:443,False' \ |
|
|
|
|
--expected_chosen_service_config='{"loadBalancingPolicy":"round_robin","methodConfig":[{"name":[{"method":"Foo","service":"NoSrvSimpleService","waitForReady":true}]}]}' \ |
|
|
|
|
--expected_lb_policy='round_robin' || ONE_FAILED=1 |
|
|
|
|
if [[ "$ONE_FAILED" != 0 ]]; then |
|
|
|
|
echo "Test based on target record: ipv4-no-srv-simple-service-config.resolver-tests-version-1.grpctestingexp. FAILED" |
|
|
|
|
echo "Test based on target record: ipv4-no-srv-simple-service-config.resolver-tests-version-4.grpctestingexp. FAILED" |
|
|
|
|
EXIT_CODE=1 |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
ONE_FAILED=0 |
|
|
|
|
bins/$CONFIG/resolver_component_test \ |
|
|
|
|
--target_name='ipv4-no-config-for-cpp.resolver-tests-version-1.grpctestingexp.' \ |
|
|
|
|
--target_name='ipv4-no-config-for-cpp.resolver-tests-version-4.grpctestingexp.' \ |
|
|
|
|
--expected_addrs='1.2.3.4:443,False' \ |
|
|
|
|
--expected_chosen_service_config='' \ |
|
|
|
|
--expected_lb_policy='' || ONE_FAILED=1 |
|
|
|
|
if [[ "$ONE_FAILED" != 0 ]]; then |
|
|
|
|
echo "Test based on target record: ipv4-no-config-for-cpp.resolver-tests-version-1.grpctestingexp. FAILED" |
|
|
|
|
echo "Test based on target record: ipv4-no-config-for-cpp.resolver-tests-version-4.grpctestingexp. FAILED" |
|
|
|
|
EXIT_CODE=1 |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
ONE_FAILED=0 |
|
|
|
|
bins/$CONFIG/resolver_component_test \ |
|
|
|
|
--target_name='ipv4-cpp-config-has-zero-percentage.resolver-tests-version-1.grpctestingexp.' \ |
|
|
|
|
--target_name='ipv4-cpp-config-has-zero-percentage.resolver-tests-version-4.grpctestingexp.' \ |
|
|
|
|
--expected_addrs='1.2.3.4:443,False' \ |
|
|
|
|
--expected_chosen_service_config='' \ |
|
|
|
|
--expected_lb_policy='' || ONE_FAILED=1 |
|
|
|
|
if [[ "$ONE_FAILED" != 0 ]]; then |
|
|
|
|
echo "Test based on target record: ipv4-cpp-config-has-zero-percentage.resolver-tests-version-1.grpctestingexp. FAILED" |
|
|
|
|
echo "Test based on target record: ipv4-cpp-config-has-zero-percentage.resolver-tests-version-4.grpctestingexp. FAILED" |
|
|
|
|
EXIT_CODE=1 |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
ONE_FAILED=0 |
|
|
|
|
bins/$CONFIG/resolver_component_test \ |
|
|
|
|
--target_name='ipv4-second-language-is-cpp.resolver-tests-version-1.grpctestingexp.' \ |
|
|
|
|
--target_name='ipv4-second-language-is-cpp.resolver-tests-version-4.grpctestingexp.' \ |
|
|
|
|
--expected_addrs='1.2.3.4:443,False' \ |
|
|
|
|
--expected_chosen_service_config='{"loadBalancingPolicy":"round_robin","methodConfig":[{"name":[{"method":"Foo","service":"CppService","waitForReady":true}]}]}' \ |
|
|
|
|
--expected_lb_policy='round_robin' || ONE_FAILED=1 |
|
|
|
|
if [[ "$ONE_FAILED" != 0 ]]; then |
|
|
|
|
echo "Test based on target record: ipv4-second-language-is-cpp.resolver-tests-version-1.grpctestingexp. FAILED" |
|
|
|
|
echo "Test based on target record: ipv4-second-language-is-cpp.resolver-tests-version-4.grpctestingexp. FAILED" |
|
|
|
|
EXIT_CODE=1 |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
ONE_FAILED=0 |
|
|
|
|
bins/$CONFIG/resolver_component_test \ |
|
|
|
|
--target_name='ipv4-config-with-percentages.resolver-tests-version-1.grpctestingexp.' \ |
|
|
|
|
--target_name='ipv4-config-with-percentages.resolver-tests-version-4.grpctestingexp.' \ |
|
|
|
|
--expected_addrs='1.2.3.4:443,False' \ |
|
|
|
|
--expected_chosen_service_config='{"loadBalancingPolicy":"round_robin","methodConfig":[{"name":[{"method":"Foo","service":"AlwaysPickedService","waitForReady":true}]}]}' \ |
|
|
|
|
--expected_lb_policy='round_robin' || ONE_FAILED=1 |
|
|
|
|
if [[ "$ONE_FAILED" != 0 ]]; then |
|
|
|
|
echo "Test based on target record: ipv4-config-with-percentages.resolver-tests-version-1.grpctestingexp. FAILED" |
|
|
|
|
echo "Test based on target record: ipv4-config-with-percentages.resolver-tests-version-4.grpctestingexp. FAILED" |
|
|
|
|
EXIT_CODE=1 |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
ONE_FAILED=0 |
|
|
|
|
bins/$CONFIG/resolver_component_test \ |
|
|
|
|
--target_name='srv-ipv4-target-has-backend-and-balancer.resolver-tests-version-1.grpctestingexp.' \ |
|
|
|
|
--target_name='srv-ipv4-target-has-backend-and-balancer.resolver-tests-version-4.grpctestingexp.' \ |
|
|
|
|
--expected_addrs='1.2.3.4:1234,True;1.2.3.4:443,False' \ |
|
|
|
|
--expected_chosen_service_config='' \ |
|
|
|
|
--expected_lb_policy='' || ONE_FAILED=1 |
|
|
|
|
if [[ "$ONE_FAILED" != 0 ]]; then |
|
|
|
|
echo "Test based on target record: srv-ipv4-target-has-backend-and-balancer.resolver-tests-version-1.grpctestingexp. FAILED" |
|
|
|
|
echo "Test based on target record: srv-ipv4-target-has-backend-and-balancer.resolver-tests-version-4.grpctestingexp. FAILED" |
|
|
|
|
EXIT_CODE=1 |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
ONE_FAILED=0 |
|
|
|
|
bins/$CONFIG/resolver_component_test \ |
|
|
|
|
--target_name='srv-ipv6-target-has-backend-and-balancer.resolver-tests-version-1.grpctestingexp.' \ |
|
|
|
|
--target_name='srv-ipv6-target-has-backend-and-balancer.resolver-tests-version-4.grpctestingexp.' \ |
|
|
|
|
--expected_addrs='[2607:f8b0:400a:801::1002]:1234,True;[2607:f8b0:400a:801::1002]:443,False' \ |
|
|
|
|
--expected_chosen_service_config='' \ |
|
|
|
|
--expected_lb_policy='' || ONE_FAILED=1 |
|
|
|
|
if [[ "$ONE_FAILED" != 0 ]]; then |
|
|
|
|
echo "Test based on target record: srv-ipv6-target-has-backend-and-balancer.resolver-tests-version-1.grpctestingexp. FAILED" |
|
|
|
|
echo "Test based on target record: srv-ipv6-target-has-backend-and-balancer.resolver-tests-version-4.grpctestingexp. FAILED" |
|
|
|
|
EXIT_CODE=1 |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|