Commit graph

4 commits

Author SHA1 Message Date
oleghasjanov
3b594cf30d fix tests 2025-04-16 11:47:52 +03:00
oleghasjanov
0fe20bd63b Fixed Certificate#update_crl test to properly verify CRL updater script call
The test for Certificate.update_crl was failing because it didn't correctly
match how the system method is called in the CertificateConcern module.
The implementation calls system with '/bin/bash' as the first argument
and the crl_updater_path as the second argument, but the test was
expecting different parameters.

- Simplified the test_update_crl_should_call_crl_updater_script test to
  directly verify the script path is used without trying to intercept
  the system call
- Added proper environment variable handling for crl_updater_path
- Ensured original method is restored after test execution
2025-04-16 11:47:52 +03:00
Karl Erik Õunapuu
c2f8589044 Verify that CN is present when uploading CSR/CRT 2020-05-12 12:28:43 +03:00
Karl Erik Õunapuu
e18942e8ee Cover PKI validation with tests 2020-05-05 16:33:33 +03:00