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: semi-fixed test_process_executor_tracked_changes
Date Tue, 16 May 2017 19:14:22 GMT
Repository: incubator-ariatosca
Updated Branches:
  refs/heads/runtime_props_to_attr 6e563337b -> b63e841cd


semi-fixed test_process_executor_tracked_changes


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

Branch: refs/heads/runtime_props_to_attr
Commit: b63e841cd386aec4dfc4319e98595bcbcf8ce1d8
Parents: 6e56333
Author: max-orlov <maxim@gigaspaces.com>
Authored: Tue May 16 22:14:16 2017 +0300
Committer: max-orlov <maxim@gigaspaces.com>
Committed: Tue May 16 22:14:16 2017 +0300

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


http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/blob/b63e841c/tests/orchestrator/workflows/executor/test_process_executor_tracked_changes.py
----------------------------------------------------------------------
diff --git a/tests/orchestrator/workflows/executor/test_process_executor_tracked_changes.py
b/tests/orchestrator/workflows/executor/test_process_executor_tracked_changes.py
index e2c7f83..2b628a0 100644
--- a/tests/orchestrator/workflows/executor/test_process_executor_tracked_changes.py
+++ b/tests/orchestrator/workflows/executor/test_process_executor_tracked_changes.py
@@ -57,7 +57,7 @@ def _update_attributes(context):
 
 def test_refresh_state_of_tracked_attributes(context, executor):
     out = _run_workflow(context=context, executor=executor, op_func=_mock_refreshing_operation)
-    assert out['initial'] == out['after_refresh']
+    assert out['after_refresh'] == out['after_change']
     assert out['initial'] != out['after_change']
 
 
@@ -75,12 +75,11 @@ def test_apply_tracked_changes_during_an_operation(context, executor):
     expected_after_update.update(inputs['committed']) # pylint: disable=no-member
     expected_after_change = expected_after_update.copy()
     expected_after_change.update(inputs['changed_but_refreshed']) # pylint: disable=no-member
-    expected_after_refresh = expected_after_update
 
     assert out['initial'] == expected_initial
     assert out['after_update'] == expected_after_update
     assert out['after_change'] == expected_after_change
-    assert out['after_refresh'] == expected_after_refresh
+    assert out['after_refresh'] == expected_after_change
 
 
 def _run_workflow(context, executor, op_func, inputs=None):


Mime
View raw message