From b6a31c26e53d6f55ea27e384ffffcb19fe6353f4 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Tue, 18 May 2021 16:44:00 +0200 Subject: [PATCH] Fix expected HTTP status code for OCS 403 Ref https://github.com/nextcloud/server/pull/26679 Signed-off-by: Joas Schilling --- .../features/sharing/create.feature | 4 ++-- .../features/sharing/update.feature | 18 +++++++++--------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/tests/integration/features/sharing/create.feature b/tests/integration/features/sharing/create.feature index bc774786b..e997372cd 100644 --- a/tests/integration/features/sharing/create.feature +++ b/tests/integration/features/sharing/create.feature @@ -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 diff --git a/tests/integration/features/sharing/update.feature b/tests/integration/features/sharing/update.feature index 8b6958249..3225505a1 100644 --- a/tests/integration/features/sharing/update.feature +++ b/tests/integration/features/sharing/update.feature @@ -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 |