-
-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test scenario to generate pfx file
Signed-off-by: Vitor Mattos <[email protected]>
- Loading branch information
1 parent
15d57b6
commit e14e614
Showing
3 changed files
with
41 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
Feature: account/signature | ||
Background: Create users | ||
Given user "signer1" exists | ||
And set the email of user "signer1" to "[email protected]" | ||
And as user "admin" | ||
And sending "post" to ocs "/apps/libresign/api/v1/admin/certificate/openssl" | ||
| rootCert | {"commonName":"Common Name"} | | ||
And the response should have a status code 200 | ||
And sending "get" to ocs "/apps/libresign/api/v1/admin/certificate" | ||
And the response should have a status code 200 | ||
And the response should be a JSON array with the following mandatory values | ||
| key | value | | ||
| rootCert | {"commonName":"Common Name","names":[]} | | ||
| generated | true | | ||
|
||
Scenario: Create pfx with success | ||
Given as user "signer1" | ||
And sending "post" to ocs "/apps/libresign/api/v1/account/signature" | ||
| signPassword | password | | ||
Then the response should have a status code 200 | ||
And the response should be a JSON array with the following mandatory values | ||
| key | value | | ||
| success | true | | ||
| signature | /signer1/files/LibreSign/signature.pfx | |