Skip to content

Commit babb91e

Browse files
committed
test(integration): stabilize signature flow policy api scenario
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent a61cb14 commit babb91e

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

tests/integration/features/admin/policies.feature

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,20 @@ Feature: admin/policies
33
Given as user "admin"
44
And user "signer1" exists
55

6+
When sending "delete" to ocs "/apps/libresign/api/v1/policies/user/admin/signature_flow"
7+
Then the response should have a status code 200
8+
9+
When sending "delete" to ocs "/apps/libresign/api/v1/policies/group/admin/signature_flow"
10+
Then the response should have a status code 200
11+
612
When sending "post" to ocs "/apps/libresign/api/v1/policies/system/signature_flow"
713
| value | ordered_numeric |
814
| allowChildOverride | true |
915
Then the response should have a status code 200
1016
And the response should be a JSON array with the following mandatory values
1117
| key | value |
1218
| (jq).ocs.data.policy.policyKey | signature_flow |
13-
| (jq).ocs.data.policy.sourceScope | system |
19+
| (jq).ocs.data.policy.sourceScope | global |
1420
| (jq).ocs.data.policy.effectiveValue| ordered_numeric |
1521

1622
When sending "put" to ocs "/apps/libresign/api/v1/policies/group/admin/signature_flow"

0 commit comments

Comments
 (0)