mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
More test cases
This commit is contained in:
@@ -156,6 +156,20 @@ Feature: Access Control
|
|||||||
Then I create a RSA private key pair as cert_key
|
Then I create a RSA private key pair as cert_key
|
||||||
Then I sign the certificate signing request csr with private key cert_key and output it as csr_pem in PEM format
|
Then I sign the certificate signing request csr with private key cert_key and output it as csr_pem in PEM format
|
||||||
Then I submit the certificate signing request PEM csr_pem certificate order to the ACME server as order
|
Then I submit the certificate signing request PEM csr_pem certificate order to the ACME server as order
|
||||||
|
Then I peak and memorize the next nonce as nonce
|
||||||
|
Then I memorize <src_var> with jq "<jq>" as <dest_var>
|
||||||
|
When I send a raw ACME request to "<url>"
|
||||||
|
"""
|
||||||
|
{
|
||||||
|
"protected": {
|
||||||
|
"alg": "RS256",
|
||||||
|
"nonce": "{nonce}",
|
||||||
|
"url": "<url>",
|
||||||
|
"kid": "{acme_account0.uri}"
|
||||||
|
},
|
||||||
|
"payload": {"invalid": "payload"}
|
||||||
|
}
|
||||||
|
"""
|
||||||
# With original owner account under their profile, the invalid payload is going to trigger other errors instead of
|
# With original owner account under their profile, the invalid payload is going to trigger other errors instead of
|
||||||
# 404, this is to make sure that our URLs are actually correct
|
# 404, this is to make sure that our URLs are actually correct
|
||||||
Then the value response.status_code should not be equal to 404
|
Then the value response.status_code should not be equal to 404
|
||||||
|
|||||||
Reference in New Issue
Block a user