[PSM Interop] Outlier detection: use native cpp server since v1.57.x (#33135)

Related:
- CPP implementation: be99673d06,
d55431995c.
- Feature request in go: https://github.com/grpc/grpc-go/issues/6288
- Feature request in python: https://github.com/grpc/grpc/issues/33134

FYI @eugeneo @zasweq

---------

Co-authored-by: Eugene Ostroukhov <eostroukhov@gmail.com>
pull/33505/head
Sergii Tkachenko 2 years ago committed by GitHub
parent d59c8eb0f5
commit fb9e927322
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 20
      tools/run_tests/xds_k8s_test_driver/tests/outlier_detection_test.py

@ -55,10 +55,22 @@ class OutlierDetectionTest(xds_k8s_testcase.RegularXdsKubernetesTestCase):
https://github.com/grpc/grpc/blob/master/doc/xds-test-descriptions.md#server
"""
super().setUpClass()
if cls.lang_spec.client_lang != _Lang.JAVA:
# TODO(mlumish): Once rpc-behavior supported by a language, make the
# override version-conditional.
cls.server_image = xds_k8s_flags.SERVER_IMAGE_CANONICAL.value
# gRPC Java implemented server "error-code-" rpc-behavior in v1.47.x.
if cls.lang_spec.client_lang == _Lang.JAVA:
return
# gRPC CPP implemented server "hostname" rpc-behavior in v1.57.x,
# see https://github.com/grpc/grpc/pull/33446.
if (
cls.lang_spec.client_lang == _Lang.CPP
and cls.lang_spec.version_gte("v1.57.x")
):
return
# gRPC go, python and node fallback to the gRPC Java.
# TODO(https://github.com/grpc/grpc-go/issues/6288): use go server.
# TODO(https://github.com/grpc/grpc/issues/33134): use python server.
cls.server_image = xds_k8s_flags.SERVER_IMAGE_CANONICAL.value
@staticmethod
def is_supported(config: skips.TestConfig) -> bool:

Loading…
Cancel
Save