Skip to content

Commit

Permalink
Add Organizational Unit to tests
Browse files Browse the repository at this point in the history
Signed-off-by: Vitor Mattos <[email protected]>
  • Loading branch information
vitormattos committed Mar 21, 2024
1 parent 643ac3d commit a4ff81b
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions tests/integration/features/account/signature.feature
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Feature: account/signature
And as user "signer1"
And run the command "config:app:set libresign certificate_engine --value cfssl" with result code 0
And run the command "libresign:install --cfssl" with result code 0
And run the command "libresign:configure:cfssl --cn=Common\ Name --c=BR --o=Organization --st=State\ of\ Company --l=City\ Name" with result code 0
And run the command "libresign:configure:cfssl --cn=Common\ Name --c=BR --o=Organization --st=State\ of\ Company --l=City\ Name --ou=Organization\ Unit" with result code 0
And sending "post" to ocs "/apps/libresign/api/v1/account/signature"
| signPassword | password |
And the response should have a status code 200
Expand All @@ -42,9 +42,9 @@ Feature: account/signature
| password | password |
Then the response should be a JSON array with the following mandatory values
| key | value |
| name | /C=BR/ST=State of Company/L=City Name/O=Organization/CN=signer1-displayname |
| issuer | {"CN": "Common Name","C": "BR","ST": "State of Company","L":"City Name","O": "Organization"} |
| subject | {"CN": "signer1-displayname","C": "BR","ST": "State of Company","L":"City Name","O": "Organization"} |
| name | /C=BR/ST=State of Company/L=City Name/O=Organization/OU=Organization Unit/CN=signer1-displayname |
| issuer | {"CN": "Common Name","C": "BR","ST": "State of Company","L":"City Name","O": "Organization","OU":"Organization Unit"} |
| subject | {"CN": "signer1-displayname","C": "BR","ST": "State of Company","L":"City Name","O": "Organization","OU":"Organization Unit"} |
| (jq).extensions.basicConstraints | CA:FALSE |
| (jq).extensions.subjectAltName | email:signer@domain.test |
| (jq).extensions.keyUsage | Digital Signature, Key Encipherment, Certificate Sign |
Expand All @@ -56,7 +56,7 @@ Feature: account/signature
Given user "signer1" exists
And set the email of user "signer1" to "[email protected]"
And as user "signer1"
And run the command "libresign:configure:openssl --cn=Common\ Name --c=BR --o=Organization --st=State\ of\ Company --l=City\ Name" with result code 0
And run the command "libresign:configure:openssl --cn=Common\ Name --c=BR --o=Organization --st=State\ of\ Company --l=City\ Name --ou=Organization\ Unit" with result code 0
And sending "post" to ocs "/apps/libresign/api/v1/account/signature"
| signPassword | password |
And the response should have a status code 200
Expand All @@ -65,9 +65,9 @@ Feature: account/signature
| password | password |
Then the response should be a JSON array with the following mandatory values
| key | value |
| name | /C=BR/ST=State of Company/L=City Name/O=Organization/CN=signer1-displayname |
| issuer | {"CN": "Common Name","C": "BR","ST": "State of Company","L":"City Name","O": "Organization"} |
| subject | {"CN": "signer1-displayname","C": "BR","ST": "State of Company","L":"City Name","O": "Organization"} |
| name | /C=BR/ST=State of Company/L=City Name/O=Organization/OU=Organization Unit/CN=signer1-displayname |
| issuer | {"CN": "Common Name","C": "BR","ST": "State of Company","L":"City Name","O": "Organization","OU":"Organization Unit"} |
| subject | {"CN": "signer1-displayname","C": "BR","ST": "State of Company","L":"City Name","O": "Organization","OU":"Organization Unit"} |
| (jq).extensions.basicConstraints | CA:FALSE |
| (jq).extensions.subjectAltName | email:signer@domain.test |
| (jq).extensions.keyUsage | Digital Signature, Key Encipherment, Certificate Sign |
Expand Down

0 comments on commit a4ff81b

Please sign in to comment.