Skip to content

Commit

Permalink
removing @api tag from all acceptance feature files
Browse files Browse the repository at this point in the history
  • Loading branch information
nirajacharya2 committed Aug 17, 2023
1 parent 6020b7f commit 7ab1f40
Show file tree
Hide file tree
Showing 192 changed files with 397 additions and 568 deletions.
558 changes: 270 additions & 288 deletions tests/acceptance/expected-failures-API-on-OCIS-storage.md

Large diffs are not rendered by default.

142 changes: 71 additions & 71 deletions tests/acceptance/expected-failures-localAPI-on-OCIS-storage.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@api @provisioning_api-app-required @skipOnGraph @skipOnReva
@provisioning_api-app-required @skipOnGraph @skipOnReva
Feature: add user
As an admin
I want to be able to add users and store their password with the full hash difficulty
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
@api
Feature: assign role
As an admin,
I want to assign roles to users
So that I can provide them different authority
So that I can provide them different authority



Scenario Outline: only admin user can see all existing roles
Given user "Alice" has been created with default attributes and without skeleton files
And the administrator has given "Alice" the role "<userRole>" using the settings api
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@api @skipOnReva
@skipOnReva
Feature: sharing
As a user
I want to be able to share files when passwords are stored with the full hash difficulty
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@api @skipOnReva
@skipOnReva
Feature: upload file
As a user
I want to be able to upload files when passwords are stored with the full hash difficulty
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@api @skipOnReva
@skipOnReva
Feature: attempt to PUT files with invalid password
As an admin
I want the system to be secure when passwords are stored with the full hash difficulty
Expand Down
1 change: 0 additions & 1 deletion tests/acceptance/features/apiArchiver/downloadById.feature
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@api
Feature: download multiple resources bundled into an archive
As a user
I want to be able to download multiple items at once
Expand Down
3 changes: 1 addition & 2 deletions tests/acceptance/features/apiArchiver/downloadByPath.feature
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@api
Feature: download multiple resources bundled into an archive
As a user
I want to be able to download multiple items at once
Expand Down Expand Up @@ -65,7 +64,7 @@ Feature: download multiple resources bundled into an archive
| my_data/textfile2.txt | some data |
| more_data/an_other_file.txt | more data |


Scenario: download a not existing single file
When user "Alice" downloads the archive of "/doesnotexist.txt" of user "Alice" using the resource path
Then the HTTP status code should be "404"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@api @env-config
@env-config
Feature: delay post-processing of uploaded files
As a user
I want to delay the post-processing of uploaded files
Expand Down
3 changes: 1 addition & 2 deletions tests/acceptance/features/apiContract/copy.feature
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
@api
Feature: Copy test
As a user
I want to check the PROPFIND response
So that I can make sure that the response contains all the relevant values


Background:
Given these users have been created with default attributes and without skeleton files:
Expand Down
1 change: 0 additions & 1 deletion tests/acceptance/features/apiContract/propfind.feature
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@api
Feature: Propfind test
As a user
I want to check the PROPFIND response
Expand Down
1 change: 0 additions & 1 deletion tests/acceptance/features/apiContract/sharesReport.feature
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@api
Feature: REPORT request to Shares space
As a user
I want to check the share REPORT response
Expand Down
1 change: 0 additions & 1 deletion tests/acceptance/features/apiContract/spacesReport.feature
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@api
Feature: REPORT request to project space
As a user
I want to check the REPORT response of project spaces
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@api
Feature: Report test
As a user
I want to check the share REPORT response
Expand Down Expand Up @@ -57,7 +56,7 @@ Feature: Report test
| oc:permissions | SD |
| d:getcontentlength | 12 |


Scenario: search for the shared folder when the share is not accepted
Given user "Alice" has created a share inside of space "find data" with settings:
| path | folderMain |
Expand Down
2 changes: 1 addition & 1 deletion tests/acceptance/features/apiCors/cors.feature
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# NOTE: set env OCIS_CORS_ALLOW_ORIGINS=https://aphno.badal while running ocis server
@api @env-config
@env-config
Feature: CORS headers
As a user
I want to send a cross-origin request
Expand Down
5 changes: 2 additions & 3 deletions tests/acceptance/features/apiDownloads/download.feature
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@api
Feature: Download file in project space
As a user with different role
I want to be able to download files
Expand Down Expand Up @@ -56,9 +55,9 @@ Feature: Download file in project space
| Alice |
| Brian |


Scenario: user with role viewer cannot get the old version of the file in the project space
Given user "Alice" has uploaded a file inside space "download file" with content "new content" to "file.txt"
When user "Bob" tries to get version of the file "file.txt" with the index "1" of the space "download file" using the WebDAV API
Then the HTTP status code should be "403"

Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@api
Feature: Download space
As a user
I want to download space
Expand Down
1 change: 0 additions & 1 deletion tests/acceptance/features/apiFullTextSearch/search.feature
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@api
Feature: full text search
As a user
I want to do full text search
Expand Down
1 change: 0 additions & 1 deletion tests/acceptance/features/apiGraph/addUserToGroup.feature
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@api
Feature: add users to group
As a admin
I want to be able to add users to a group
Expand Down
1 change: 0 additions & 1 deletion tests/acceptance/features/apiGraph/assignRole.feature
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@api
Feature: assign role
As an admin,
I want to assign roles to users.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@api
Feature: an user changes its own password
As a user
I want to change my password
Expand Down
1 change: 0 additions & 1 deletion tests/acceptance/features/apiGraph/changeRole.feature
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@api
Feature: change role
As an admin
I want to change the role of user
Expand Down
1 change: 0 additions & 1 deletion tests/acceptance/features/apiGraph/createGroup.feature
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@api
Feature: create group
As an admin
I want to create a group
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@api
Feature: create groups, group names are case insensitive
As an admin
I want to create groups with similar cases
Expand Down
1 change: 0 additions & 1 deletion tests/acceptance/features/apiGraph/createUser.feature
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@api
Feature: create user
As a admin
I want to create a user
Expand Down
1 change: 0 additions & 1 deletion tests/acceptance/features/apiGraph/deleteGroup.feature
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@api
Feature: delete groups
As an admin
I want to be able to delete groups
Expand Down
1 change: 0 additions & 1 deletion tests/acceptance/features/apiGraph/deleteUser.feature
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@api
Feature: delete user
As an admin
I want to be able to delete users
Expand Down
1 change: 0 additions & 1 deletion tests/acceptance/features/apiGraph/editGroup.feature
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@api
Feature: edit group name
As an admin
I want to be able to edit group name
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@api @env-config @skipOnStable3.0
@env-config @skipOnStable3.0
Feature: enforce password on public link
As a user
I want to enforce passwords on public links shared with upload, edit, or contribute permission
Expand Down
1 change: 0 additions & 1 deletion tests/acceptance/features/apiGraph/fullSearch.feature
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@api
Feature: full text search
As a user
I want to do full text search
Expand Down
1 change: 0 additions & 1 deletion tests/acceptance/features/apiGraph/getApplications.feature
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@api
Feature: get applications
As a user
I want to be able to get application information with existing roles
Expand Down
3 changes: 1 addition & 2 deletions tests/acceptance/features/apiGraph/getGroup.feature
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@api
Feature: get groups and their members
As an admin
I want to be able to get groups
Expand All @@ -8,7 +7,7 @@ Feature: get groups and their members
Given user "Alice" has been created with default attributes and without skeleton files
And the administrator has assigned the role "Admin" to user "Alice" using the Graph API


Scenario: admin user lists all the groups
Given group "tea-lover" has been created
And group "coffee-lover" has been created
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@api
Feature: get user's own information
As user
I want to be able to retrieve my own information
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@api
Feature: remove a user from a group
As an admin
I want to be able to remove a user from a group
Expand Down
1 change: 0 additions & 1 deletion tests/acceptance/features/apiGraph/unassignRole.feature
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@api
Feature: unassign user role
As an admin
I want to unassign the role of user
Expand Down
1 change: 0 additions & 1 deletion tests/acceptance/features/apiGraph/userGDPRExport.feature
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@api
Feature: user GDPR (General Data Protection Regulation) report
As a user
I want to generate my GDPR report
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@api
Feature: Delete notification
As a user
I want to delete notifications
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@api @email
@email
Feature: Email notification
As a user
I want to get email notification of events related to me
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@api
Feature: Notification
As a user
I want to be notified of various events
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@api
Feature: Notification
As a user
I want to be notified of actions related to space
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@api @env-config
@env-config
Feature: share by disabling re-share
As a user
I want to share resources
Expand Down
1 change: 0 additions & 1 deletion tests/acceptance/features/apiReshare/resharing.feature
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@api
Feature: Resharing
As a user
I want to reshare resources
Expand Down
1 change: 0 additions & 1 deletion tests/acceptance/features/apiSpaces/changeSpaces.feature
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@api
Feature: Change data of space
As a user with space admin rights
I want to be able to change the meta-data of a created space (increase the quota, change name, etc.)
Expand Down
1 change: 0 additions & 1 deletion tests/acceptance/features/apiSpaces/createSpace.feature
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@api
Feature: create space
As an admin and space admin
I want to create new spaces
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@api
Feature: Disabling and deleting space
As a manager of space
I want to be able to disable the space first, then delete it.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@api
Feature: A manager of the space can edit public link
As an user with manager space role
I want to be able to edit a public link.
Expand Down
1 change: 0 additions & 1 deletion tests/acceptance/features/apiSpaces/filePreviews.feature
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@api
Feature: Preview file in project space
As a user
I want to be able to download different files for the preview
Expand Down
1 change: 0 additions & 1 deletion tests/acceptance/features/apiSpaces/listSpaces.feature
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@api
Feature: List and create spaces
As a user
I want to be able to list project spaces
Expand Down
1 change: 0 additions & 1 deletion tests/acceptance/features/apiSpaces/publicLink.feature
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@api
Feature: public link for a space

Background:
Expand Down
1 change: 0 additions & 1 deletion tests/acceptance/features/apiSpaces/quota.feature
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@api
Feature: State of the quota
As a user
I want to be able to see the state of the quota
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@api
Feature: Remove files, folder
As a user
I want to be able to remove files, folders
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@api
Feature: Restore files, folder
As a user with manager and editor role
I want to be able to restore files, folders
Expand Down
1 change: 0 additions & 1 deletion tests/acceptance/features/apiSpaces/restoreSpaces.feature
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@api
Feature: Restoring space
As a manager of space
I want to be able to restore a disabled space
Expand Down
3 changes: 1 addition & 2 deletions tests/acceptance/features/apiSpaces/search.feature
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
@api
Feature: Search
As a user
As a user
I want to search for resources in the space
So that I can get them quickly

Expand Down
1 change: 0 additions & 1 deletion tests/acceptance/features/apiSpaces/setQuota.feature
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@api
Feature: Set quota
As a user
I want to set quota to different users
Expand Down
11 changes: 5 additions & 6 deletions tests/acceptance/features/apiSpaces/spaceManagement.feature
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@api
Feature: Space management
As a user with space admin permission
I want to be able to manage all existing project spaces
Expand Down Expand Up @@ -90,7 +89,7 @@ Feature: Space management
And the json responded should not contain a space with name "Project"
And the json responded should not contain a space with name "Alice Hansen"


Scenario: space admin user changes the name of the project space
When user "Brian" changes the name of the "Project" space to "New Name" owned by user "Alice"
Then the HTTP status code should be "200"
Expand All @@ -116,7 +115,7 @@ Feature: Space management
Then the HTTP status code should be "404"
And the user "Alice" should have a space called "Project"


Scenario: space admin user changes the description of the project space
When user "Brian" changes the description of the "Project" space to "New description" owned by user "Alice"
Then the HTTP status code should be "200"
Expand All @@ -142,7 +141,7 @@ Feature: Space management
When user "Carol" tries to change the description of the "Project" space to "New description" owned by user "Alice"
Then the HTTP status code should be "404"


Scenario: space admin user disables the project space
When user "Brian" disables a space "Project" owned by user "Alice"
Then the HTTP status code should be "204"
Expand All @@ -162,7 +161,7 @@ Feature: Space management
| Brian |
| Carol |


Scenario: space admin user deletes the project space
Given user "Alice" has disabled a space "Project"
When user "Brian" deletes a space "Project" owned by user "Alice"
Expand All @@ -175,7 +174,7 @@ Feature: Space management
When user "Carol" tries to delete a space "Project" owned by user "Alice"
Then the HTTP status code should be "404"


Scenario: space admin user enables the project space
Given user "Alice" has disabled a space "Project"
When user "Brian" restores a disabled space "Project" owned by user "Alice"
Expand Down
1 change: 0 additions & 1 deletion tests/acceptance/features/apiSpaces/tag.feature
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@api
Feature: Tag
As a user
I want to tag resources
Expand Down
1 change: 0 additions & 1 deletion tests/acceptance/features/apiSpaces/tusUpload.feature
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@api
Feature: upload resources using TUS protocol
As a user
I want to be able to upload files
Expand Down
Loading

0 comments on commit 7ab1f40

Please sign in to comment.