Repository: incubator-ariatosca
Updated Branches:
  refs/heads/ARIA-262-Inconsistent-node-attributes-behavior 963e9b3a9 -> 
af494fe9a (forced update)


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/af494fe9
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/tree/af494fe9
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/diff/af494fe9

Branch: refs/heads/ARIA-262-Inconsistent-node-attributes-behavior
Commit: af494fe9a47944c297152453825511575464e03c
Parents: 695a709
Author: max-orlov <[email protected]>
Authored: Thu Jun 1 18:29:06 2017 +0300
Committer: max-orlov <[email protected]>
Committed: Sun Jun 4 10:33:29 2017 +0300

----------------------------------------------------------------------
 tests/orchestrator/workflows/core/test_task.py                  | 2 +-
 .../workflows/executor/test_process_executor_extension.py       | 5 +++--
 2 files changed, 4 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/blob/af494fe9/tests/orchestrator/workflows/core/test_task.py
----------------------------------------------------------------------
diff --git a/tests/orchestrator/workflows/core/test_task.py 
b/tests/orchestrator/workflows/core/test_task.py
index a717e19..c0d3616 100644
--- a/tests/orchestrator/workflows/core/test_task.py
+++ b/tests/orchestrator/workflows/core/test_task.py
@@ -100,7 +100,7 @@ class TestOperationTask(object):
         storage_task = ctx.model.task.get_by_name(core_task.name)
         assert storage_task.plugin is storage_plugin
         assert storage_task.execution_name == ctx.execution.name
-        assert storage_task.actor == core_task.context.node._original_model
+        assert storage_task.actor == core_task.context.node
         assert core_task.model_task == storage_task
         assert core_task.name == api_task.name
         assert core_task.function == api_task.function

http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/blob/af494fe9/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
 

Reply via email to