Skip to content

Commit

Permalink
fix test expectations
Browse files Browse the repository at this point in the history
  • Loading branch information
micbar committed Jun 6, 2023
1 parent 67294e2 commit d5dcaaa
Show file tree
Hide file tree
Showing 21 changed files with 147 additions and 147 deletions.
8 changes: 4 additions & 4 deletions tests/acceptance/features/apiGraph/addUserToGroup.feature
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@api
@api
Feature: add users to group
As a admin
I want to be able to add users to a group
Expand Down Expand Up @@ -150,7 +150,7 @@ Feature: add users to group
| role |
| Space Admin |
| User |
| Guest |
| User Light |

@issue-5938
Scenario Outline: user other than the admin tries to add other user to a group
Expand Down Expand Up @@ -184,7 +184,7 @@ Feature: add users to group
| role |
| Space Admin |
| User |
| Guest |
| User Light |


Scenario: admin tries to add user to a nonexistent group
Expand All @@ -201,7 +201,7 @@ Feature: add users to group
| role |
| Space Admin |
| User |
| Guest |
| User Light |


Scenario: admin tries to add a nonexistent user to a group
Expand Down
6 changes: 3 additions & 3 deletions tests/acceptance/features/apiGraph/assignRole.feature
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Feature: assign role
| Admin |
| Space Admin |
| User |
| Guest |
| User Light |

@issue-5032
Scenario Outline: assign role to the user with graph api and list role with setting api
Expand All @@ -30,7 +30,7 @@ Feature: assign role
| Admin | 201 |
| Space Admin | 401 |
| User | 401 |
| Guest | 401 |
| User Light | 401 |


Scenario Outline: assign role to the user with setting api and list role with graph api
Expand All @@ -44,4 +44,4 @@ Feature: assign role
| Admin |
| Space Admin |
| User |
| Guest |
| User Light |
16 changes: 8 additions & 8 deletions tests/acceptance/features/apiGraph/changeRole.feature
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,19 @@ Feature: change role
| Admin | Admin |
| Admin | Space Admin |
| Admin | User |
| Admin | Guest |
| Admin | User Light |
| Space Admin | Admin |
| Space Admin | Space Admin |
| Space Admin | User |
| Space Admin | Guest |
| Space Admin | User Light |
| User | Admin |
| User | Space Admin |
| User | User |
| User | Guest |
| Guest | Admin |
| Guest | Space Admin |
| Guest | User |
| Guest | Guest |
| User | User Light |
| User Light | Admin |
| User Light | Space Admin |
| User Light | User |
| User Light | User Light |


Scenario Outline: admin user tries to change his/her own role
Expand All @@ -44,5 +44,5 @@ Feature: change role
| newRole |
| Space Admin |
| User |
| Guest |
| User Light |
| Admin |
4 changes: 2 additions & 2 deletions tests/acceptance/features/apiGraph/createGroup.feature
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@api
@api
Feature: create group
As an admin
I want to create a group
Expand Down Expand Up @@ -42,7 +42,7 @@ Feature: create group
| userRole |
| Space Admin |
| User |
| Guest |
| User Light |

@issue-5050
Scenario: admin user tries to create a group that is the empty string
Expand Down
2 changes: 1 addition & 1 deletion tests/acceptance/features/apiGraph/createUser.feature
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ Feature: create user
| role |
| Space Admin |
| User |
| Guest |
| User Light |

@issue-3516 @skipOnStable2.0
Scenario: user cannot be created with the name of the disabled user
Expand Down
2 changes: 1 addition & 1 deletion tests/acceptance/features/apiGraph/deleteGroup.feature
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ Feature: delete groups
| role |
| Space Admin |
| User |
| Guest |
| User Light |

@issue-903
Scenario: deleted group should not be listed in the sharees list
Expand Down
34 changes: 17 additions & 17 deletions tests/acceptance/features/apiGraph/deleteUser.feature
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@api
@api
Feature: delete user
As an admin
I want to be able to delete users
Expand Down Expand Up @@ -48,7 +48,7 @@ Feature: delete user
| Admin |
| Space Admin |
| User |
| Guest |
| User Light |


Scenario: admin user tries to delete his/her own account
Expand All @@ -67,15 +67,15 @@ Feature: delete user
| role |
| Space Admin |
| User |
| Guest |
| User Light |


Scenario: admin user tries to delete a nonexistent user
Given the administrator has given "Alice" the role "Admin" using the settings api
When the user "Alice" tries to delete a nonexistent user using the Graph API
Then the HTTP status code should be "404"


Scenario Outline: non-admin user tries to delete a nonexistent user
Given the administrator has given "Alice" the role "<role>" using the settings api
When the user "Alice" tries to delete a nonexistent user using the Graph API
Expand All @@ -84,7 +84,7 @@ Feature: delete user
| role |
| Space Admin |
| User |
| Guest |
| User Light |


Scenario Outline: non-admin user tries to delete another user with different role
Expand All @@ -98,16 +98,16 @@ Feature: delete user
| userRole | role |
| Space Admin | Space Admin |
| Space Admin | User |
| Space Admin | Guest |
| Space Admin | User Light |
| Space Admin | Admin |
| User | Space Admin |
| User | User |
| User | Guest |
| User | User Light |
| User | Admin |
| Guest | Space Admin |
| Guest | User |
| Guest | Guest |
| Guest | Admin |
| User Light | Space Admin |
| User Light | User |
| User Light | User Light |
| User Light | Admin |


Scenario: admin user deletes a disabled user
Expand All @@ -133,13 +133,13 @@ Feature: delete user
| userRole | role |
| Space Admin | Space Admin |
| Space Admin | User |
| Space Admin | Guest |
| Space Admin | User Light |
| Space Admin | Admin |
| User | Space Admin |
| User | User |
| User | Guest |
| User | User Light |
| User | Admin |
| Guest | Space Admin |
| Guest | User |
| Guest | Guest |
| Guest | Admin |
| User Light | Space Admin |
| User Light | User |
| User Light | User Light |
| User Light | Admin |
4 changes: 2 additions & 2 deletions tests/acceptance/features/apiGraph/editGroup.feature
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@api
@api
Feature: edit group name
As an admin
I want to be able to edit group name
Expand Down Expand Up @@ -34,7 +34,7 @@ Feature: edit group name
| role |
| Space Admin |
| User |
| Guest |
| User Light |


Scenario: admin user tries to rename nonexistent group
Expand Down
46 changes: 23 additions & 23 deletions tests/acceptance/features/apiGraph/editUser.feature
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@api
@api
Feature: edit user
As an admin
I want to be able to edit user information
Expand Down Expand Up @@ -146,7 +146,7 @@ Feature: edit user
| role |
| Space Admin |
| User |
| Guest |
| User Light |


Scenario Outline: normal user should not be able to edit another user's email
Expand Down Expand Up @@ -178,16 +178,16 @@ Feature: edit user
| userRole | role |
| Space Admin | Space Admin |
| Space Admin | User |
| Space Admin | Guest |
| Space Admin | User Light |
| Space Admin | Admin |
| User | Space Admin |
| User | User |
| User | Guest |
| User | User Light |
| User | Admin |
| Guest | Space Admin |
| Guest | User |
| Guest | Guest |
| Guest | Admin |
| User Light | Space Admin |
| User Light | User |
| User Light | User Light |
| User Light | Admin |


Scenario Outline: admin user can edit another user display name
Expand Down Expand Up @@ -239,7 +239,7 @@ Feature: edit user
| role |
| Space Admin |
| User |
| Guest |
| User Light |


Scenario Outline: normal user should not be able to edit another user's display name
Expand Down Expand Up @@ -271,16 +271,16 @@ Feature: edit user
| userRole | role |
| Space Admin | Space Admin |
| Space Admin | User |
| Space Admin | Guest |
| Space Admin | User Light |
| Space Admin | Admin |
| User | Space Admin |
| User | User |
| User | Guest |
| User | User Light |
| User | Admin |
| Guest | Space Admin |
| Guest | User |
| Guest | Guest |
| Guest | Admin |
| User Light | Space Admin |
| User Light | User |
| User Light | User Light |
| User Light | Admin |


Scenario: admin user resets password of another user
Expand All @@ -307,16 +307,16 @@ Feature: edit user
| userRole | role |
| Space Admin | Space Admin |
| Space Admin | User |
| Space Admin | Guest |
| Space Admin | User Light |
| Space Admin | Admin |
| User | Space Admin |
| User | User |
| User | Guest |
| User | User Light |
| User | Admin |
| Guest | Space Admin |
| Guest | User |
| Guest | Guest |
| Guest | Admin |
| User Light | Space Admin |
| User Light | User |
| User Light | User Light |
| User Light | Admin |

@skipOnStable2.0
Scenario: admin user disables another user
Expand Down Expand Up @@ -407,7 +407,7 @@ Feature: edit user
| role |
| Space Admin |
| User |
| Guest |
| User Light |

@skipOnStable2.0
Scenario: admin user enables disabled user
Expand Down Expand Up @@ -500,4 +500,4 @@ Feature: edit user
| role |
| Space Admin |
| User |
| Guest |
| User Light |
4 changes: 2 additions & 2 deletions tests/acceptance/features/apiGraph/getApplications.feature
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ Feature: get applications
| Admin |
| Space Admin |
| User |
| Guest |
| User Light |
Examples:
| role |
| Admin |
| Space Admin |
| User |
| Guest |
| User Light |
10 changes: 5 additions & 5 deletions tests/acceptance/features/apiGraph/getGroup.feature
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@api
@api
Feature: get groups and their members
As an admin
I want to be able to get groups
Expand Down Expand Up @@ -54,7 +54,7 @@ Feature: get groups and their members
| role |
| Space Admin |
| User |
| Guest |
| User Light |


Scenario: admin user gets users of a group
Expand Down Expand Up @@ -103,7 +103,7 @@ Feature: get groups and their members
| role |
| Space Admin |
| User |
| Guest |
| User Light |


Scenario: admin user gets all groups along with its member's information
Expand Down Expand Up @@ -267,7 +267,7 @@ Feature: get groups and their members
| role |
| Space Admin |
| User |
| Guest |
| User Light |


Scenario: admin user gets a group along with its member's information
Expand Down Expand Up @@ -381,7 +381,7 @@ Feature: get groups and their members
| role |
| Space Admin |
| User |
| Guest |
| User Light |


Scenario: get details of a group
Expand Down
Loading

0 comments on commit d5dcaaa

Please sign in to comment.