Closed DaanRosendal closed 2 months ago
Latest version before rebase is 96f3ac9
There are still many comments to address from previous PRs
Ready to be reviewed, squashed and merged
Attention: Patch coverage is 85.24590%
with 18 lines
in your changes missing coverage. Please review.
Project coverage is 75.59%. Comparing base (
680e288
) to head (e36c6a2
). Report is 7 commits behind head on master.
Files with missing lines | Patch % | Lines |
---|---|---|
reana_workflow_controller/rest/workflows.py | 84.07% | 18 Missing :warning: |
Kept separate commits, amended commit log headlines, bumped reana-db and pytest-reana dependency versions.
Also, for the tests to work, I have noticed the following change:
$ g show 894a99ed -- tests/test_views.py | cat
commit 894a99ed75f53484aa8d03198c493919c45da6f6
Author: Daan Rosendal <daan.rosendal@cern.ch>
Date: Fri Dec 15 12:35:02 2023 +0100
feat(rest): make details available for shared workflows (#552)
Closes reanahub/reana-server#651, closes reanahub/reana-server#650
diff --git a/tests/test_views.py b/tests/test_views.py
index 6426f77..c9b13e2 100644
--- a/tests/test_views.py
+++ b/tests/test_views.py
@@ -812,7 +812,7 @@ def test_get_workflow_status_unauthorized(
content_type="application/json",
data=json.dumps(cwl_workflow_with_name),
)
- assert res.status_code == 404
+ assert res.status_code == 500
def test_get_workflow_status_unknown_workflow(app, user0, cwl_workflow_with_name):
@@ -1027,7 +1027,7 @@ def test_set_workflow_status_unauthorized(
query_string={"user": random_user_uuid, "status": payload},
content_type="application/json",
)
- assert res.status_code == 404
+ assert res.status_code == 500
def test_set_workflow_status_unknown_workflow(
@@ -1230,7 +1230,7 @@ def test_get_workflow_logs_unauthorized(
query_string={"user": random_user_uuid},
content_type="application/json",
)
- assert res.status_code == 404
+ assert res.status_code == 500
def test_start_input_parameters(
@@ -1785,7 +1785,7 @@ def test_get_workflow_retention_rules_invalid_user(app, sample_serial_workflow_i
),
query_string={"user": uuid.uuid4()},
)
- assert res.status_code == 404
+ assert res.status_code == 500
def test_share_workflow(
which I reverted in f3d2bcc whilst merging so that CI would pass after bumping shared modules.
We can check this out later @mdonadoni
Closes reanahub/reana-server#651, closes reanahub/reana-server#650