Skip to content

Commit

Permalink
api: fix workspace creation
Browse files Browse the repository at this point in the history
* Arguments were in the wrong order causing the workspace to be created
  wrongly.

Signed-off-by: Diego Rodriguez <diego.rodriguez@cern.ch>
  • Loading branch information
Diego Rodriguez committed Oct 31, 2017
1 parent 822ae31 commit c058fee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion reana_workflow_controller/rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,8 +255,8 @@ def create_workflow(): # noqa

workflow_uuid = str(uuid4())
workflow_workspace, _ = create_workflow_workspace(
user_uuid,
organization,
user_uuid,
workflow_uuid)
# add spec and params to DB as JSON
workflow = Workflow(id_=workflow_uuid,
Expand Down
3 changes: 2 additions & 1 deletion tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,8 @@ def test_create_workflow(app, default_user, db_session,
organization, str(default_user.id_))
workflow_workspace = os.path.join(
tmp_shared_volume_path,
user_analyses_workspace)
user_analyses_workspace,
str(workflow.id_))
assert os.path.exists(workflow_workspace)


Expand Down

0 comments on commit c058fee

Please sign in to comment.