|
12 | 12 | # See the License for the specific language governing permissions and |
13 | 13 | # limitations under the License. |
14 | 14 | import logging |
| 15 | +from typing import TypeAlias |
15 | 16 |
|
16 | 17 | from absl.testing import absltest |
| 18 | +from typing_extensions import override |
17 | 19 |
|
18 | 20 | from framework import xds_k8s_testcase |
| 21 | +from framework.test_app.runners.k8s import k8s_xds_client_runner |
19 | 22 | from framework.test_cases import cloud_run_testcase |
20 | 23 |
|
21 | 24 | logger = logging.getLogger(__name__) |
22 | 25 |
|
23 | | -_XdsTestServer = xds_k8s_testcase.XdsTestServer |
24 | | -_XdsTestClient = xds_k8s_testcase.XdsTestClient |
| 26 | +_XdsTestServer: TypeAlias = xds_k8s_testcase.XdsTestServer |
| 27 | +_XdsTestClient: TypeAlias = xds_k8s_testcase.XdsTestClient |
| 28 | +KubernetesClientRunner: TypeAlias = k8s_xds_client_runner.KubernetesClientRunner |
| 29 | +ClientDeploymentArgs: TypeAlias = k8s_xds_client_runner.ClientDeploymentArgs |
25 | 30 |
|
26 | 31 |
|
27 | 32 | class CloudRunCsmInboundTest(cloud_run_testcase.CloudRunXdsKubernetesTestCase): |
| 33 | + @override |
| 34 | + def initKubernetesClientRunner(self, **kwargs) -> KubernetesClientRunner: |
| 35 | + return super().initKubernetesClientRunner( |
| 36 | + deployment_args=ClientDeploymentArgs( |
| 37 | + is_trusted_xds_server_experimental=True, |
| 38 | + ) |
| 39 | + ) |
| 40 | + |
28 | 41 | def test_gke_to_cloud_run(self): |
29 | 42 | with self.subTest("0_create_mesh"): |
30 | 43 | self.td.create_mesh() |
@@ -54,7 +67,6 @@ def test_gke_to_cloud_run(self): |
54 | 67 | test_client: _XdsTestClient = self.startSecureTestClient( |
55 | 68 | test_server, |
56 | 69 | config_mesh=self.td.mesh.name, |
57 | | - is_trusted_xds_server_experimental=True, |
58 | 70 | ) |
59 | 71 |
|
60 | 72 | with self.subTest("7_test_client_xds_config_exists"): |
|
0 commit comments