Skip to content

Commit 06597b0

Browse files
minotticdespadam
andauthored
fix: use correct variable in test 0300 (#1885)
* fix: use correct variable in test 0300 * fix jobId used in test 0300 --------- Co-authored-by: Despina Adamopoulou <[email protected]>
1 parent 52dfab1 commit 06597b0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/JobsAll.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ let datasetPid1 = null,
2828
jobId6 = null,
2929
encodedJobOwnedByAnonym = null,
3030
jobId7 = null,
31-
encodedJobOwnedByGroup3 = null
31+
encodedJobOwnedByGroup3 = null;
3232

3333
const dataset1 = {
3434
...TestData.RawCorrect,
@@ -787,7 +787,7 @@ describe("1120: Jobs: Test New Job Model Authorization for all_access jobs type"
787787

788788
it("0300: Add a status update to a job as a user from CREATE_JOB_PRIVILEGED_GROUPS for anonymous user's job in '#all' configuration, which should be forbidden", async () => {
789789
return request(appUrl)
790-
.patch(`/api/v4/Jobs/${encodedJobOwnedByUser3}`)
790+
.patch(`/api/v4/Jobs/${encodedJobOwnedByAnonym}`)
791791
.send({
792792
statusMessage: "update status of a job",
793793
statusCode: "job finished/blocked/etc",

0 commit comments

Comments
 (0)