[xDS interop] Fix the affinity test support range (#29972)

pull/29948/head^2
Lidi Zheng 3 years ago committed by GitHub
parent 691199ab80
commit db684ad0dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      tools/run_tests/xds_k8s_test_driver/tests/affinity_test.py

@ -45,10 +45,14 @@ class AffinityTest(xds_k8s_testcase.RegularXdsKubernetesTestCase):
@staticmethod
def is_supported(config: skips.TestConfig) -> bool:
if config.client_lang in (_Lang.CPP | _Lang.GO | _Lang.JAVA |
_Lang.PYTHON):
# Versions prior to v1.40.x don't support Affinity.
if config.client_lang in _Lang.CPP | _Lang.JAVA:
return not config.version_lt('v1.40.x')
elif config.client_lang == _Lang.GO:
return not config.version_lt('v1.41.x')
elif config.client_lang == _Lang.PYTHON:
# TODO(https://github.com/grpc/grpc/issues/27430): supported after
# the issue is fixed.
return False
return True
def test_affinity(self) -> None: # pylint: disable=too-many-statements

Loading…
Cancel
Save