Merge pull request #5634 from nextcloud/bugfix/noid/fix-expected-http-status-code-for-403

Fix expected HTTP status code for OCS 403
This commit is contained in:
Joas Schilling 2021-05-18 17:37:50 +02:00 коммит произвёл GitHub
Родитель ec66b5581f b6a31c26e5
Коммит 24f80d7984
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 11 добавлений и 11 удалений

Просмотреть файл

@ -608,7 +608,7 @@ Feature: create
And user "participant1" shares "welcome.txt" with room "group room" with OCS 100
When user "participant1" shares "welcome.txt" with room "group room"
Then the OCS status code should be "403"
And the HTTP status code should be "401"
And the HTTP status code should be "200"
And user "participant1" gets all shares
And the list of returned shares has 1 shares
And share 0 is returned with
@ -643,7 +643,7 @@ Feature: create
And user "participant1" shares "welcome.txt" with room "group room" with OCS 100
When user "participant2" shares "Talk/welcome.txt" with room "group room"
Then the OCS status code should be "403"
And the HTTP status code should be "401"
And the HTTP status code should be "200"
And user "participant1" gets all shares
And the list of returned shares has 1 shares
And share 0 is returned with

Просмотреть файл

@ -516,7 +516,7 @@ Feature: update
| permissions | 1 |
| expireDate | +3 days |
Then the OCS status code should be "403"
And the HTTP status code should be "401"
And the HTTP status code should be "200"
And user "participant1" gets last share
And share is returned with
| uid_owner | participant1 |
@ -549,7 +549,7 @@ Feature: update
| permissions | 1 |
| expireDate | +3 days |
Then the OCS status code should be "403"
And the HTTP status code should be "401"
And the HTTP status code should be "200"
And user "participant1" gets last share
And share is returned with
| uid_owner | participant1 |
@ -584,7 +584,7 @@ Feature: update
| permissions | 1 |
| expireDate | +3 days |
Then the OCS status code should be "403"
And the HTTP status code should be "401"
And the HTTP status code should be "200"
And user "participant1" gets last share
And share is returned with
| uid_owner | participant1 |
@ -620,7 +620,7 @@ Feature: update
| permissions | 1 |
| expireDate | +3 days |
Then the OCS status code should be "403"
And the HTTP status code should be "401"
And the HTTP status code should be "200"
And user "participant1" gets last share
And share is returned with
| uid_owner | participant1 |
@ -707,7 +707,7 @@ Feature: update
| permissions | 1 |
| expireDate | +3 days |
Then the OCS status code should be "403"
And the HTTP status code should be "401"
And the HTTP status code should be "200"
And user "participant1" gets last share
And share is returned with
| uid_owner | participant1 |
@ -757,7 +757,7 @@ Feature: update
| permissions | 1 |
| expireDate | +3 days |
Then the OCS status code should be "403"
And the HTTP status code should be "401"
And the HTTP status code should be "200"
And user "participant1" gets last share
And share is returned with
| uid_owner | participant1 |
@ -807,7 +807,7 @@ Feature: update
| permissions | 1 |
| expireDate | +3 days |
Then the OCS status code should be "403"
And the HTTP status code should be "401"
And the HTTP status code should be "200"
And user "participant1" gets last share
And share is returned with
| uid_owner | participant1 |
@ -903,7 +903,7 @@ Feature: update
| permissions | 1 |
| expireDate | +3 days |
Then the OCS status code should be "403"
And the HTTP status code should be "401"
And the HTTP status code should be "200"
And user "participant1" gets last share
And share is returned with
| uid_owner | participant1 |
@ -994,7 +994,7 @@ Feature: update
When user "participant2" updates last share with
| permissions | 19 |
Then the OCS status code should be "403"
And the HTTP status code should be "401"
And the HTTP status code should be "200"
And user "participant1" gets last share
And share is returned with
| uid_owner | participant1 |