Skip to content

Instantly share code, notes, and snippets.

@maaretp
Created July 28, 2022 07:46
Show Gist options
  • Save maaretp/2e789f210d553b4542b238f3990d4321 to your computer and use it in GitHub Desktop.
Save maaretp/2e789f210d553b4542b238f3990d4321 to your computer and use it in GitHub Desktop.
Feature: User management
As an administrator,
I can define users selecting roles with every role able to view observations,
So that users have access to intended information.
@todo
Scenario: User with admin rights can create users
Given User has admin rights
When User logs in to user management
Then User can create other users
And User can change own password
@todo
Scenario: User without admin rights can't create users
Given User has no admin rights
When User logs in to user management
Then User cannot create other users
And User can change own password
@todo
Scenario: User without observation_read rights can't read observations
Given User has no observation_read rights
When User logs in to view observations
Then User cannot view observations
@todo
Scenario: User with observation_read rights can read observations
Given User has observation_read rights
When User logs in to view observations
Then User can view observations
@todo
Scenario: Change password as non-admin
Given I am a user
When I change my password
Then I can login with my new password
@todo
Scenario: Change password as admin
Given I am an admin
When I change user's password
Then I can login with my new password
@todo
Scenario: Delete user as admin
Given I am an admin
When I delete user
Then user is unable to login
@todo
Scenario: Recover lost password for admin
Given I am an admin
When I recover lost password
Then I can login with my new password
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment