Skip to content

Commit 6e7a683

Browse files
committed
test: cover assigned user policy api flow
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent 76a9f6e commit 6e7a683

1 file changed

Lines changed: 9 additions & 8 deletions

File tree

tests/integration/features/admin/policies.feature

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,19 +42,20 @@ Feature: admin/policies
4242
| value | parallel |
4343
Then the response should have a status code 200
4444
And the response should be a JSON array with the following mandatory values
45-
| key | value |
46-
| (jq).ocs.data.policy.policyKey | signature_flow |
47-
| (jq).ocs.data.policy.scope | user |
48-
| (jq).ocs.data.policy.targetId | signer1 |
49-
| (jq).ocs.data.policy.value | parallel |
45+
| key | value |
46+
| (jq).ocs.data.policy.policyKey | signature_flow |
47+
| (jq).ocs.data.policy.scope | user_policy |
48+
| (jq).ocs.data.policy.targetId | signer1 |
49+
| (jq).ocs.data.policy.value | parallel |
50+
| (jq).ocs.data.policy.allowChildOverride | false |
5051

5152
Given as user "signer1"
5253
When sending "get" to ocs "/apps/libresign/api/v1/policies/effective"
5354
Then the response should have a status code 200
5455
And the response should be a JSON array with the following mandatory values
55-
| key | value |
56-
| (jq).ocs.data.policies.signature_flow.effectiveValue | parallel |
57-
| (jq).ocs.data.policies.signature_flow.sourceScope | user |
56+
| key | value |
57+
| (jq).ocs.data.policies.signature_flow.effectiveValue | parallel |
58+
| (jq).ocs.data.policies.signature_flow.sourceScope | user_policy |
5859

5960
Given as user "admin"
6061
When sending "delete" to ocs "/apps/libresign/api/v1/policies/user/signer1/signature_flow"

0 commit comments

Comments
 (0)