libresign/tests/integration/features/me.feature
2022-02-14 08:56:52 -03:00

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} |