Skip to content

Commit

Permalink
Adapt test to ontology impact when deleting an user from a project (1…
Browse files Browse the repository at this point in the history
  • Loading branch information
geektortoise committed Jun 7, 2022
1 parent 3e4462b commit 677a7bf
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ class ProjectUserSecurityTests extends SecurityTestsAbstract {
//check if user2 cannot delete user 3 in project
assert (403 ==ProjectAPI.deleteUserProject(project.id, user3.id,SecurityTestsAbstract.USERNAME2,SecurityTestsAbstract.PASSWORD2).code)

//check if user2 can delete himself project
assert (200 ==ProjectAPI.deleteUserProject(project.id, user2.id,SecurityTestsAbstract.USERNAME2,SecurityTestsAbstract.PASSWORD2).code)
//check if user2 cannot delete himself from project (permission impact on ontology)
assert (403 ==ProjectAPI.deleteUserProject(project.id, user2.id,SecurityTestsAbstract.USERNAME2,SecurityTestsAbstract.PASSWORD2).code)

}

Expand Down

0 comments on commit 677a7bf

Please sign in to comment.