@ -90,6 +90,7 @@ class XdsKubernetesTestCase(absltest.TestCase, metaclass=abc.ABCMeta):
cls . xds_server_uri = xds_flags . XDS_SERVER_URI . value
cls . ensure_firewall = xds_flags . ENSURE_FIREWALL . value
cls . firewall_allowed_ports = xds_flags . FIREWALL_ALLOWED_PORTS . value
cls . compute_api_version = xds_flags . COMPUTE_API_VERSION . value
# Resource names.
cls . resource_prefix = xds_flags . RESOURCE_PREFIX . value
@ -329,11 +330,13 @@ class RegularXdsKubernetesTestCase(XdsKubernetesTestCase):
cls . server_maintenance_port = KubernetesServerRunner . DEFAULT_MAINTENANCE_PORT
def initTrafficDirectorManager ( self ) - > TrafficDirectorManager :
return TrafficDirectorManager ( self . gcp_api_manager ,
return TrafficDirectorManager (
self . gcp_api_manager ,
project = self . project ,
resource_prefix = self . resource_prefix ,
resource_suffix = self . resource_suffix ,
network = self . network )
network = self . network ,
compute_api_version = self . compute_api_version )
def initKubernetesServerRunner ( self ) - > KubernetesServerRunner :
return KubernetesServerRunner (
@ -400,7 +403,8 @@ class AppNetXdsKubernetesTestCase(RegularXdsKubernetesTestCase):
project = self . project ,
resource_prefix = self . resource_prefix ,
resource_suffix = self . resource_suffix ,
network = self . network )
network = self . network ,
compute_api_version = self . compute_api_version )
class SecurityXdsKubernetesTestCase ( XdsKubernetesTestCase ) :
@ -431,7 +435,8 @@ class SecurityXdsKubernetesTestCase(XdsKubernetesTestCase):
project = self . project ,
resource_prefix = self . resource_prefix ,
resource_suffix = self . resource_suffix ,
network = self . network )
network = self . network ,
compute_api_version = self . compute_api_version )
def initKubernetesServerRunner ( self ) - > KubernetesServerRunner :
return KubernetesServerRunner (