Skip to content

Commit

Permalink
removing @api tag from all acceptance feature files (#7027)
Browse files Browse the repository at this point in the history
  • Loading branch information
nirajacharya2 authored Aug 16, 2023
1 parent c38095a commit 5f93a22
Show file tree
Hide file tree
Showing 197 changed files with 274 additions and 428 deletions.
329 changes: 164 additions & 165 deletions tests/acceptance/expected-failures-API-on-OCIS-storage.md

Large diffs are not rendered by default.

66 changes: 33 additions & 33 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,4 +1,3 @@
@api
Feature: Copy test
As a user
I want to check the PROPFIND response
Expand All @@ -23,4 +22,4 @@ Feature: Copy test
| Oc-Fileid | /^[a-f0-9!\$\-]{110}$/ |
| Access-Control-Allow-Origin | /^[*]{1}$/ |
| X-Request-Id | /^[a-f0-9!\-]{36}$/ |

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 @@ -61,7 +60,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
13 changes: 6 additions & 7 deletions 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 Expand Up @@ -70,7 +69,7 @@ Feature: edit user
| change to existing user name | Brian | 409 | Brian |
| empty user name | | 400 | Brian |


Scenario: admin user changes the name of a user to the name of an existing disabled user
Given the user "Alice" has created a new user using the Graph API with the following settings:
| userName | sam |
Expand All @@ -96,7 +95,7 @@ Feature: edit user
}
"""


Scenario: admin user changes the name of a user to the name of a previously deleted user
Given the user "Alice" has created a new user using the Graph API with the following settings:
| userName | sam |
Expand Down Expand Up @@ -318,7 +317,7 @@ Feature: edit user
| User Light | User Light |
| User Light | Admin |


Scenario: admin user disables another user
When the user "Alice" disables user "Brian" using the Graph API
Then the HTTP status code should be "200"
Expand Down Expand Up @@ -360,7 +359,7 @@ Feature: edit user
}
"""


Scenario Outline: normal user should not be able to disable another user
Given user "Carol" has been created with default attributes and without skeleton files
And the administrator has assigned the role "<role>" to user "Brian" using the Graph API
Expand Down Expand Up @@ -409,7 +408,7 @@ Feature: edit user
| User |
| User Light |


Scenario: admin user enables disabled user
Given the user "Alice" has disabled user "Brian" using the Graph API
When the user "Alice" enables user "Brian" using the Graph API
Expand Down Expand Up @@ -452,7 +451,7 @@ Feature: edit user
}
"""


Scenario Outline: normal user should not be able to enable another user
Given user "Carol" has been created with default attributes and without skeleton files
And the user "Alice" has disabled user "Carol" using the Graph API
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
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
23 changes: 11 additions & 12 deletions 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 All @@ -10,7 +9,7 @@ Feature: get users
| Alice |
| Brian |


Scenario: admin user gets the information of a user
Given the administrator has assigned the role "Admin" to user "Alice" using the Graph API
When user "Alice" gets information of user "Brian" using Graph API
Expand Down Expand Up @@ -93,7 +92,7 @@ Feature: get users
| User Light | User Light |
| User Light | Admin |


Scenario: admin user gets all users
Given the administrator has assigned the role "Admin" to user "Alice" using the Graph API
When user "Alice" gets all users using the Graph API
Expand Down Expand Up @@ -159,7 +158,7 @@ Feature: get users
}
"""


Scenario: admin user gets all users include disabled users
Given the administrator has assigned the role "Admin" to user "Alice" using the Graph API
And the user "Alice" has disabled user "Brian" using the Graph API
Expand Down Expand Up @@ -258,7 +257,7 @@ Feature: get users
| User |
| User Light |


Scenario: admin user gets the drive information of a user
Given the administrator has assigned the role "Admin" to user "Alice" using the Graph API
When the user "Alice" gets user "Brian" along with his drive information using Graph API
Expand Down Expand Up @@ -381,7 +380,7 @@ Feature: get users
}
"""


Scenario Outline: non-admin user gets his/her own drive information
Given the administrator has assigned the role "<userRole>" to user "Brian" using the Graph API
When the user "Brian" gets his drive information using Graph API
Expand Down Expand Up @@ -509,7 +508,7 @@ Feature: get users
| User |
| User Light |


Scenario: admin user gets the group information of a user
Given the administrator has assigned the role "Admin" to user "Alice" using the Graph API
And group "tea-lover" has been created
Expand Down Expand Up @@ -617,7 +616,7 @@ Feature: get users
| User Light | User Light |
| User Light | Admin |


Scenario: admin user gets all users of certain groups
Given the administrator has assigned the role "Admin" to user "Alice" using the Graph API
And user "Carol" has been created with default attributes and without skeleton files
Expand Down Expand Up @@ -751,7 +750,7 @@ Feature: get users
And the JSON data of the response should not contain the user "Alice Hansen" in the item 'value'



Scenario: admin user gets all users of two groups
Given the administrator has assigned the role "Admin" to user "Alice" using the Graph API
And user "Carol" has been created with default attributes and without skeleton files
Expand Down Expand Up @@ -825,7 +824,7 @@ Feature: get users
"""
But the JSON data of the response should not contain the user "Carol King" in the item 'value'


Scenario Outline: non admin user tries to get users of certain groups
Given the administrator has assigned the role "Admin" to user "Alice" using the Graph API
And the administrator has assigned the role "<role>" to user "Brian" using the Graph API
Expand Down Expand Up @@ -860,7 +859,7 @@ Feature: get users
| User |
| User Light |


Scenario: admin user gets all users with certain roles and members of a certain group
Given the administrator has assigned the role "Admin" to user "Alice" using the Graph API
And user "Carol" has been created with default attributes and without skeleton files
Expand Down Expand Up @@ -965,7 +964,7 @@ Feature: get users
"""
But the JSON data of the response should not contain the user "Carol King" in the item 'value'


Scenario Outline: non-admin user tries to get users with a certain role
Given the administrator has assigned the role "<userRole>" to user "Alice" using the Graph API
When the user "Alice" gets all users with role "<role>" using the Graph API
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
Loading

0 comments on commit 5f93a22

Please sign in to comment.