Skip to content

Commit

Permalink
change test expectation
Browse files Browse the repository at this point in the history
  • Loading branch information
ScharfViktor committed Sep 25, 2024
1 parent cda5e71 commit 7eba6e5
Showing 1 changed file with 16 additions and 32 deletions.
48 changes: 16 additions & 32 deletions tests/acceptance/features/apiOcm/share.feature
Original file line number Diff line number Diff line change
Expand Up @@ -195,29 +195,21 @@ Feature: an user shares resources usin ScienceMesh application
| shareType | user |
| permissionsRole | <permissions-role> |
| federatedServer | @ocis-server:9200 |
Then the HTTP status code should be "405"
Then the HTTP status code should be "403"
And the JSON data of the response should match
"""
{
"type": "object",
"required": [
"error"
"code",
"message"
],
"properties": {
"error": {
"type": "object",
"required": [
"code",
"message"
],
"properties": {
"code": {
"const": "notAllowed"
},
"message": {
"const": "federated user can not become a space member"
}
}
"code": {
"const": "PERMISSION_DENIED"
},
"message": {
"const": "permission denied to create the file"
}
}
}
Expand Down Expand Up @@ -246,29 +238,21 @@ Feature: an user shares resources usin ScienceMesh application
| shareType | user |
| permissionsRole | <permissions-role> |
| federatedServer | @federation-ocis-server:10200 |
Then the HTTP status code should be "405"
Then the HTTP status code should be "403"
And the JSON data of the response should match
"""
{
"type": "object",
"required": [
"error"
"code",
"message"
],
"properties": {
"error": {
"type": "object",
"required": [
"code",
"message"
],
"properties": {
"code": {
"const": "notAllowed"
},
"message": {
"const": "federated user can not become a space member"
}
}
"code": {
"const": "PERMISSION_DENIED"
},
"message": {
"const": "permission denied to create the file"
}
}
}
Expand Down

0 comments on commit 7eba6e5

Please sign in to comment.