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/06/15 14:33:03 UTC

incubator-ariatosca git commit: tiny fix to testenv

Repository: incubator-ariatosca
Updated Branches:
  refs/heads/ARIA-278-Remove-core-tasks 7c5b9ff73 -> 14d37f167


tiny fix to testenv


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

Branch: refs/heads/ARIA-278-Remove-core-tasks
Commit: 14d37f16745a87e6fd7c7abc1077c66b1c9fd817
Parents: 7c5b9ff
Author: max-orlov <ma...@gigaspaces.com>
Authored: Thu Jun 15 17:32:53 2017 +0300
Committer: max-orlov <ma...@gigaspaces.com>
Committed: Thu Jun 15 17:32:53 2017 +0300

----------------------------------------------------------------------
 tests/end2end/testenv.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/blob/14d37f16/tests/end2end/testenv.py
----------------------------------------------------------------------
diff --git a/tests/end2end/testenv.py b/tests/end2end/testenv.py
index 9da747c..87ca5bd 100644
--- a/tests/end2end/testenv.py
+++ b/tests/end2end/testenv.py
@@ -60,7 +60,9 @@ class TestEnvironment(object):
 
     def execute_workflow(self, service_name, workflow_name, dry=False):
         self.cli.executions.start(workflow_name, service_name=service_name, dry=dry)
-        self.model_storage.execution.refresh(self.model_storage.execution.list()[0])
+        service = self.model_storage.service.get_by_name(service_name)
+        for active_execution in [e for e in service.executions if not e.has_ended()]:
+            self.model_storage.execution.refresh(active_execution)
 
     def verify_clean_storage(self):
         assert len(self.model_storage.service_template.list()) == 0