Skip to content
Snippets Groups Projects
Commit 8a97cb35 authored by kbeyro's avatar kbeyro
Browse files

fix test

parent ba22336e
No related branches found
No related tags found
1 merge request!213Resolve "Support deployment of applications on remote clusters"
Pipeline #94409 passed
...@@ -42,6 +42,7 @@ public class AppRequestVerificationTaskTest { ...@@ -42,6 +42,7 @@ public class AppRequestVerificationTaskTest {
public void shouldTriggerRequestVerify() throws InterruptedException { public void shouldTriggerRequestVerify() throws InterruptedException {
when(deployments.findByDeploymentId(deploymentId)).thenReturn(Optional.of(AppDeployment.builder().applicationId(Identifier.newInstance(10L)).build())); 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(applications.findById(any(Long.class))).thenReturn(Optional.of(new Application()));
when(remoteClusterManager.clusterExist(any())).thenReturn(true);
task.trigger(new AppVerifyRequestActionEvent(this, deploymentId)); task.trigger(new AppVerifyRequestActionEvent(this, deploymentId));
verify(deploy, times(1)).verifyRequest(any(Identifier.class), any(AppDeployment.class), isNull()); verify(deploy, times(1)).verifyRequest(any(Identifier.class), any(AppDeployment.class), isNull());
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment