Repository: incubator-ariatosca Updated Branches: refs/heads/ARIA-262-Inconsistent-node-attributes-behavior 1a4066524 -> 695a709a5
added mocking to ssh Ctx Project: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/commit/695a709a Tree: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/tree/695a709a Diff: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/diff/695a709a Branch: refs/heads/ARIA-262-Inconsistent-node-attributes-behavior Commit: 695a709a51233d5dcea7dcdc73a76a61c58a6781 Parents: 1a40665 Author: max-orlov <[email protected]> Authored: Thu Jun 1 18:25:56 2017 +0300 Committer: max-orlov <[email protected]> Committed: Thu Jun 1 18:25:56 2017 +0300 ---------------------------------------------------------------------- tests/orchestrator/execution_plugin/test_ssh.py | 5 +++++ 1 file changed, 5 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/blob/695a709a/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 899a007..8056649 100644 --- a/tests/orchestrator/execution_plugin/test_ssh.py +++ b/tests/orchestrator/execution_plugin/test_ssh.py @@ -429,8 +429,13 @@ class TestFabricEnvHideGroupsAndRunCommands(object): actor = None class Actor(object): host = None + class Model(object): + @contextlib.contextmanager + def instrument(*args, **kwargs): + yield task = Task task.actor = Actor + model = Model() logger = logging.getLogger() @staticmethod
