cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wilderrodrigues <>
Subject [GitHub] cloudstack pull request: CLOUDSTACK-8607 - As an Operator I want t...
Date Mon, 06 Jul 2015 10:40:02 GMT
Github user wilderrodrigues commented on a diff in the pull request:
    --- Diff: plugins/hypervisors/xenserver/test/com/cloud/hypervisor/xenserver/resource/wrapper/xenbase/
    @@ -1320,14 +1322,23 @@ public void testOvsDestroyTunnelCommandFailed() {
         public void testUpdateHostPasswordCommand() {
    -        final UpdateHostPasswordCommand updatePwd = new UpdateHostPasswordCommand("test",
    +        final ExecutionResult executionResult = Mockito.mock(ExecutionResult.class);
    +        final UpdateHostPasswordCommand updatePwd = new UpdateHostPasswordCommand("test",
"123", "");
    +        final StringBuffer buff = new StringBuffer();
    +        buff.append(updatePwd.getUsername());
    +        buff.append(' ');
    +        buff.append(updatePwd.getNewPassword());
    +        when(citrixResourceBase.executeInVR(updatePwd.getHostIp(), VRScripts.UPDATE_HOST_PASSWD,
    --- End diff --
    Hi @karuturi 
    The tests is not checking that we can SSH into the host itself, but just covering the
flow we have with the new wrappers. That's why we have the Mock of ExecutionResult there.
    The unit tests is covering the call CitrixRequestWrapper.execute() when a UpdateHostPasswordCommand
is given, not the SSH connection itself. The latter should be done separately.
    Thanks for the reivew.

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

View raw message