ariatosca-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mxm...@apache.org
Subject incubator-ariatosca git commit: another test fix
Date Thu, 01 Jun 2017 15:29:10 GMT
Repository: incubator-ariatosca
Updated Branches:
  refs/heads/ARIA-262-Inconsistent-node-attributes-behavior 695a709a5 -> 963e9b3a9


another test fix


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

Branch: refs/heads/ARIA-262-Inconsistent-node-attributes-behavior
Commit: 963e9b3a9c56f97b65b6d75d587443b2973bd95a
Parents: 695a709
Author: max-orlov <maxim@gigaspaces.com>
Authored: Thu Jun 1 18:29:06 2017 +0300
Committer: max-orlov <maxim@gigaspaces.com>
Committed: Thu Jun 1 18:29:06 2017 +0300

----------------------------------------------------------------------
 .../workflows/executor/test_process_executor_extension.py       | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/blob/963e9b3a/tests/orchestrator/workflows/executor/test_process_executor_extension.py
----------------------------------------------------------------------
diff --git a/tests/orchestrator/workflows/executor/test_process_executor_extension.py b/tests/orchestrator/workflows/executor/test_process_executor_extension.py
index e4944df..f3e40b6 100644
--- a/tests/orchestrator/workflows/executor/test_process_executor_extension.py
+++ b/tests/orchestrator/workflows/executor/test_process_executor_extension.py
@@ -66,8 +66,9 @@ class MockProcessExecutorExtension(object):
     def decorate(self):
         def decorator(function):
             def wrapper(ctx, **operation_arguments):
-                ctx.node.attributes['out'] = {'wrapper_arguments': operation_arguments}
-                function(ctx=ctx, **operation_arguments)
+                with ctx.model.instrument({ctx.model.node.model_cls: ['attributes']}):
+                    ctx.node.attributes['out'] = {'wrapper_arguments': operation_arguments}
+                    function(ctx=ctx, **operation_arguments)
             return wrapper
         return decorator
 


Mime
View raw message