-
-
Notifications
You must be signed in to change notification settings - Fork 111
Expand file tree
/
Copy pathme.feature
More file actions
21 lines (19 loc) · 1.01 KB
/
me.feature
File metadata and controls
21 lines (19 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Feature: account/me
Background: Create users
Given user "signer1" exists
Scenario: who a me with fail because need an authenticated user
Given as user ""
And sending "get" to ocs "/apps/libresign/api/v1/account/me"
Then the response should have a status code 404
Scenario: who a me with success
Given as user "signer1"
And set the libresign email of user "signer1" to ""
And sending "get" to ocs "/apps/libresign/api/v1/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 |
| (jq).ocs.data.account.uid | signer1 |
| (jq).ocs.data.account.emailAddress | |
| (jq).ocs.data.account.displayName | signer1-displayname |
| (jq).ocs.data.settings.canRequestSign | false |
| (jq).ocs.data.settings.hasSignatureFile | false |