|
|
@ -45,10 +45,14 @@ class AffinityTest(xds_k8s_testcase.RegularXdsKubernetesTestCase): |
|
|
|
|
|
|
|
|
|
|
|
@staticmethod |
|
|
|
@staticmethod |
|
|
|
def is_supported(config: skips.TestConfig) -> bool: |
|
|
|
def is_supported(config: skips.TestConfig) -> bool: |
|
|
|
if config.client_lang in (_Lang.CPP | _Lang.GO | _Lang.JAVA | |
|
|
|
if config.client_lang in _Lang.CPP | _Lang.JAVA: |
|
|
|
_Lang.PYTHON): |
|
|
|
|
|
|
|
# Versions prior to v1.40.x don't support Affinity. |
|
|
|
|
|
|
|
return not config.version_lt('v1.40.x') |
|
|
|
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 |
|
|
|
return True |
|
|
|
|
|
|
|
|
|
|
|
def test_affinity(self) -> None: # pylint: disable=too-many-statements |
|
|
|
def test_affinity(self) -> None: # pylint: disable=too-many-statements |
|
|
|