|
53 | 53 | import jakarta.annotation.Nullable; |
54 | 54 | import org.apache.commons.logging.Log; |
55 | 55 | import org.apache.commons.logging.LogFactory; |
| 56 | +import org.assertj.core.api.Assertions; |
56 | 57 | import org.testcontainers.k3s.K3sContainer; |
57 | 58 |
|
58 | 59 | import org.springframework.cloud.kubernetes.integration.tests.commons.Images; |
59 | 60 | import org.springframework.cloud.kubernetes.integration.tests.commons.Phase; |
60 | 61 |
|
61 | 62 | import static org.awaitility.Awaitility.await; |
62 | | -import static org.junit.jupiter.api.Assertions.fail; |
63 | 63 | import static org.springframework.cloud.kubernetes.integration.tests.commons.Commons.loadImage; |
64 | 64 | import static org.springframework.cloud.kubernetes.integration.tests.commons.Commons.pomVersion; |
65 | 65 | import static org.springframework.cloud.kubernetes.integration.tests.commons.Commons.pullImage; |
@@ -548,7 +548,7 @@ private boolean isDeploymentReady(String deploymentName, String namespace) throw |
548 | 548 | V1DeploymentList deployments = appsV1Api.listNamespacedDeployment(namespace, null, null, null, |
549 | 549 | "metadata.name=" + deploymentName, null, null, null, null, null, null, null); |
550 | 550 | if (deployments.getItems().isEmpty()) { |
551 | | - fail("No deployments with the name " + deploymentName); |
| 551 | + Assertions.fail("No deployments with the name " + deploymentName); |
552 | 552 | } |
553 | 553 | V1Deployment deployment = deployments.getItems().get(0); |
554 | 554 | if (deployment.getStatus() != null) { |
@@ -580,7 +580,7 @@ private static boolean isDeploymentReadyAfterPatch(String deploymentName, String |
580 | 580 | V1DeploymentList deployments = new AppsV1Api().listNamespacedDeployment(namespace, null, null, null, |
581 | 581 | "metadata.name=" + deploymentName, null, null, null, null, null, null, null); |
582 | 582 | if (deployments.getItems().isEmpty()) { |
583 | | - fail("No deployment with name " + deploymentName); |
| 583 | + Assertions.fail("No deployment with name " + deploymentName); |
584 | 584 | } |
585 | 585 |
|
586 | 586 | V1Deployment deployment = deployments.getItems().get(0); |
|
0 commit comments