emjunior258 / certeasy

The easiest certificate authority for development and experiments
Apache License 2.0
7 stars 2 forks source link

Creation of Issuers with Incorrect Base64 Encoding in PEM Results in Unexpected 500 Status Code #121

Open sambodirce opened 8 months ago

sambodirce commented 8 months ago

The test case TestIssuerCreationFromPEM.test_should_not_create_a_new_issuer_from_pem_with_incorrect_base_64_encoding_cert is failing due to unexpected behavior in the system. This test aims to verify that the system correctly rejects attempts to create issuers from PEM certificates when the certificate file contains incorrect Base64 encoding. However, the system is allowing such operations, resulting in a status code of 500 instead of the expected 422. Screenshot from 2024-03-09 20-50-11

Expected Outcome:
The system should reject attempts to create issuers from PEM certificates when the certificate file contains incorrect Base64 encoding and return a status code of 422.

Test Data:

Test Failure Message:

test_create_issuer_from_pem.py:158 (TestIssuerCreationFromPEM.test_should_not_create_a_new_issuer_from_pem_with_incorrect_base_64_encoding_cert)
500 != 422
Expected :422
Actual   :500