From 8a97cb352d03abe9bf4630456b48828e139ad91a Mon Sep 17 00:00:00 2001 From: kbeyro <121854496+kbeyro@users.noreply.github.com> Date: Tue, 27 May 2025 15:47:24 +0200 Subject: [PATCH] fix test --- .../orchestration/tasks/app/AppRequestVerificationTaskTest.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/test/java/net/geant/nmaas/orchestration/tasks/app/AppRequestVerificationTaskTest.java b/src/test/java/net/geant/nmaas/orchestration/tasks/app/AppRequestVerificationTaskTest.java index 8112568ad..53b50f799 100644 --- a/src/test/java/net/geant/nmaas/orchestration/tasks/app/AppRequestVerificationTaskTest.java +++ b/src/test/java/net/geant/nmaas/orchestration/tasks/app/AppRequestVerificationTaskTest.java @@ -42,6 +42,7 @@ public class AppRequestVerificationTaskTest { public void shouldTriggerRequestVerify() throws InterruptedException { when(deployments.findByDeploymentId(deploymentId)).thenReturn(Optional.of(AppDeployment.builder().applicationId(Identifier.newInstance(10L)).build())); when(applications.findById(any(Long.class))).thenReturn(Optional.of(new Application())); + when(remoteClusterManager.clusterExist(any())).thenReturn(true); task.trigger(new AppVerifyRequestActionEvent(this, deploymentId)); verify(deploy, times(1)).verifyRequest(any(Identifier.class), any(AppDeployment.class), isNull()); } -- GitLab