We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 66f7f76 commit 6459357Copy full SHA for 6459357
agent/src/test/java/com/cloud/agent/AgentShellTest.java
@@ -350,4 +350,16 @@ public void setHostTestValueIsNullPropertyDoesNotStartAndEndWithAtSignSetHosts()
350
351
Mockito.verify(agentShellSpy).setHosts(expected);
352
}
353
+
354
+ @Test
355
+ public void updateAndGetConnectedHost() {
356
+ String expected = "test";
357
358
+ AgentShell shell = new AgentShell();
359
+ shell.setHosts("test");
360
+ shell.getNextHost();
361
+ shell.updateConnectedHost();
362
363
+ Assert.assertEquals(expected, shell.getConnectedHost());
364
+ }
365
0 commit comments