Skip to content

Commit

Permalink
refactored acceptance test code to store response data related to pub…
Browse files Browse the repository at this point in the history
…lic shares on single store (#6930)
  • Loading branch information
PrajwolAmatya authored and nirajacharya2 committed Aug 4, 2023
1 parent b730234 commit 71257eb
Show file tree
Hide file tree
Showing 204 changed files with 130 additions and 475 deletions.
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
2 changes: 1 addition & 1 deletion tests/acceptance/features/apiAntivirus/antivirus.feature
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@api @antivirus @skipOnReva
@skip @antivirus @skipOnReva
Feature: antivirus
As a system administrator and user
I want to protect myself and others from known viruses
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
1 change: 0 additions & 1 deletion tests/acceptance/features/apiContract/copy.feature
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@api
Feature: Copy test
As a user
I want to check the PROPFIND response
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
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
1 change: 0 additions & 1 deletion 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
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
2 changes: 1 addition & 1 deletion tests/acceptance/features/apiGraph/assignRole.feature
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@api @skipOnStable2.0
@skipOnStable2.0
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
1 change: 0 additions & 1 deletion tests/acceptance/features/apiGraph/editUser.feature
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@api
Feature: edit user
As an admin
I want to be able to edit user information
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@api @env-config
@env-config
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
2 changes: 1 addition & 1 deletion tests/acceptance/features/apiGraph/getApplications.feature
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@api @skipOnStable2.0
@skipOnStable2.0
Feature: get applications
As a user
I want to be able to get application information with existing roles
Expand Down
1 change: 0 additions & 1 deletion 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 Down
1 change: 0 additions & 1 deletion tests/acceptance/features/apiGraph/getUser.feature
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@api
Feature: get users
As an admin
I want to be able to retrieve user information
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
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
1 change: 0 additions & 1 deletion tests/acceptance/features/apiSpaces/search.feature
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@api
Feature: Search
As a user
I want to search for resources in the space
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
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
2 changes: 1 addition & 1 deletion tests/acceptance/features/apiSpaces/tag.feature
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@api @skipOnStable2.0
@skipOnStable2.0
Feature: Tag
As a user
I want to tag resources
Expand Down
1 change: 0 additions & 1 deletion tests/acceptance/features/apiSpaces/trashBin.feature
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/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
1 change: 0 additions & 1 deletion tests/acceptance/features/apiSpaces/uploadSpaces.feature
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@api
Feature: Upload files into a space
As a user
I want to be able to create folders and files in the space
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@api
Feature: change shared resource
As a user
I want to change the shared resource
Expand Down
1 change: 0 additions & 1 deletion tests/acceptance/features/apiSpacesShares/checksum.feature
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@api
Feature: checksums
As a user
I want to upload files with checksum
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@api
Feature: copy file
As a user
I want to be able to copy files
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@api
Feature: create file or folder named similar to Shares folder
As a user
I want to be able to create files and folders when the Shares folder exists
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@api
Feature: check etag propagation after different file alterations
As a user
I want to check the etag
Expand Down
1 change: 0 additions & 1 deletion tests/acceptance/features/apiSpacesShares/favorite.feature
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@api
Feature: favorite
As a user
I want to favorite resources
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@api
Feature: move (rename) file
As a user
I want to be able to move and rename files
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@api
Feature: Public can download folders from project space public link
As a public
I want to be able to download folder from public link
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@api
Feature: sharing
As a user
I want to share resources with different permissions
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@api
Feature: Share spaces
As the owner of a space
I want to be able to add members to a space, and to remove access for them
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@api
Feature: Share spaces via link
As the manager of a space
I want to be able to share a space via public link
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@api
Feature: Share a file or folder that is inside a space
As a user with manager space role
I want to be able to share the data inside the space
Expand Down
Loading

0 comments on commit 71257eb

Please sign in to comment.