From d623575db28e9ec5d865677983a558ddb03c78c3 Mon Sep 17 00:00:00 2001 From: nirajacharya2 <122071597+nirajacharya2@users.noreply.github.com> Date: Mon, 21 Aug 2023 15:32:19 +0545 Subject: [PATCH] [tests-only][full-ci] removed a scenario and added a example table (#7076) * removing the scenario and adding a example table * removing the scenario and adding a example table --- .../expected-failures-API-on-OCIS-storage.md | 2 +- .../createShareWithDisabledUser.feature | 17 ++++++----------- 2 files changed, 7 insertions(+), 12 deletions(-) diff --git a/tests/acceptance/expected-failures-API-on-OCIS-storage.md b/tests/acceptance/expected-failures-API-on-OCIS-storage.md index b437357f58..1ed963e08a 100644 --- a/tests/acceptance/expected-failures-API-on-OCIS-storage.md +++ b/tests/acceptance/expected-failures-API-on-OCIS-storage.md @@ -298,7 +298,7 @@ cannot share a folder with create permission #### [Empty OCS response for a share create request using a disabled user](https://github.com/owncloud/ocis/issues/2212) - [coreApiShareCreateSpecialToShares2/createShareWithDisabledUser.feature:21](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareCreateSpecialToShares2/createShareWithDisabledUser.feature#L21) -- [coreApiShareCreateSpecialToShares2/createShareWithDisabledUser.feature:12](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareCreateSpecialToShares2/createShareWithDisabledUser.feature#L12) +- [coreApiShareCreateSpecialToShares2/createShareWithDisabledUser.feature:22](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/coreApiShareCreateSpecialToShares2/createShareWithDisabledUser.feature#L22) #### [Edit user share response has a "name" field](https://github.com/owncloud/ocis/issues/1225) diff --git a/tests/acceptance/features/coreApiShareCreateSpecialToShares2/createShareWithDisabledUser.feature b/tests/acceptance/features/coreApiShareCreateSpecialToShares2/createShareWithDisabledUser.feature index 77853a09ab..9ffc0e2db1 100644 --- a/tests/acceptance/features/coreApiShareCreateSpecialToShares2/createShareWithDisabledUser.feature +++ b/tests/acceptance/features/coreApiShareCreateSpecialToShares2/createShareWithDisabledUser.feature @@ -9,19 +9,14 @@ Feature: share resources with a disabled user And user "Alice" has uploaded file "filesForUpload/textfile.txt" to "/textfile0.txt" @issue-2212 - Scenario: creating a new share with a disabled user - Given using OCS API version "1" - And user "Brian" has been created with default attributes and without skeleton files - And user "Alice" has been disabled - When user "Alice" shares file "textfile0.txt" with user "Brian" using the sharing API - Then the OCS status code should be "997" - And the HTTP status code should be "401" - - - Scenario: creating a new share with a disabled user - Given using OCS API version "2" + Scenario Outline: creating a new share with a disabled user + Given using OCS API version "" And user "Brian" has been created with default attributes and without skeleton files And user "Alice" has been disabled When user "Alice" shares file "textfile0.txt" with user "Brian" using the sharing API Then the OCS status code should be "997" And the HTTP status code should be "401" + Examples: + | ocs-api-version | + | 1 | + | 2 |