mirror of
https://github.com/LibreSign/libresign.git
synced 2025-12-18 05:20:45 +01:00
16 lines
No EOL
768 B
Gherkin
16 lines
No EOL
768 B
Gherkin
Feature: account/me
|
|
Background: Create users
|
|
Given user "signer1" exists
|
|
|
|
Scenario: who a me with fail
|
|
Given sending "get" to "/apps/libresign/api/0.1/account/me"
|
|
Then the response should have a status code 404
|
|
|
|
Scenario: who a me with success
|
|
Given as user "signer1"
|
|
And sending "get" to "/apps/libresign/api/0.1/account/me"
|
|
Then the response should have a status code 200
|
|
And the response should be a JSON array with the following mandatory values
|
|
| key | value |
|
|
| account | {"uid":"signer1","emailAddress":null,"displayName":"signer1-displayname"} |
|
|
| settings | {"canRequestSign":false,"hasSignatureFile":false} | |