File tree 1 file changed +4
-9
lines changed 1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change 18
18
from absl import flags
19
19
from absl import logging
20
20
from absl .testing import absltest
21
- from typing_extensions import override
22
21
23
22
from framework import xds_k8s_testcase
24
23
from framework .helpers import skips
25
24
26
25
flags .adopt_module_key_flags (xds_k8s_testcase )
26
+ # Change the default value of --compute_api_version to v1alpha.
27
+ # Subsetting test requires Compute v1alpha APIs.
28
+ # Can be tested with another API version if the flag is passed to the test.
29
+ flags .set_default (xds_k8s_testcase .xds_flags .COMPUTE_API_VERSION , "v1alpha" )
27
30
28
31
# Type aliases
29
32
_XdsTestServer = xds_k8s_testcase .XdsTestServer
35
38
36
39
37
40
class SubsettingTest (xds_k8s_testcase .RegularXdsKubernetesTestCase ):
38
- @classmethod
39
- @override
40
- def setUpClass (cls ):
41
- # TODO(sergiitk): use when absl updated to 1.3.0+, also set
42
- # flags.set_default(xds_flags.COMPUTE_API_VERSION, 'v1alpha')
43
- super ().setUpClass ()
44
- cls .compute_api_version = "v1alpha"
45
-
46
41
@staticmethod
47
42
def is_supported (config : skips .TestConfig ) -> bool :
48
43
# Subsetting is an experimental feature where most work is done on the
You can’t perform that action at this time.
0 commit comments