You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ariatosca.apache.org by mx...@apache.org on 2017/04/19 12:15:15 UTC

[05/10] incubator-ariatosca git commit: fixed ssh tests

fixed ssh tests


Project: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/commit/8b0e451a
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/tree/8b0e451a
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/diff/8b0e451a

Branch: refs/heads/ARIA-138-Make-logging-more-informative
Commit: 8b0e451ab3cb5dbb7dbab3c53aac6730c3ea3d64
Parents: 1bfefd1
Author: Ran Ziv <ra...@gigaspaces.com>
Authored: Tue Apr 18 16:05:24 2017 +0300
Committer: Ran Ziv <ra...@gigaspaces.com>
Committed: Tue Apr 18 16:05:24 2017 +0300

----------------------------------------------------------------------
 tests/orchestrator/execution_plugin/test_ssh.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/blob/8b0e451a/tests/orchestrator/execution_plugin/test_ssh.py
----------------------------------------------------------------------
diff --git a/tests/orchestrator/execution_plugin/test_ssh.py b/tests/orchestrator/execution_plugin/test_ssh.py
index dcfd88e..a75d59a 100644
--- a/tests/orchestrator/execution_plugin/test_ssh.py
+++ b/tests/orchestrator/execution_plugin/test_ssh.py
@@ -222,11 +222,13 @@ class TestWithActualSSHServer(object):
                 'fabric_env': _FABRIC_ENV,
                 'process': process,
                 'use_sudo': use_sudo,
-                'hide_output': hide_output,
                 'custom_env_var': custom_input,
                 'test_operation': '',
-                'commands': commands
             }
+            if hide_output:
+                inputs['hide_output'] = hide_output
+            if commands:
+                inputs['commands'] = commands
             interface = mock.models.create_interface(
                 node.service,
                 'test',