Commit graph

19 commits

Author SHA1 Message Date
oleghasjanov
7b290d81f8 fixed tests
Some checks failed
Github Testing / test (ubuntu-22.04, 3.0.3) (push) Has been cancelled
Github Testing / upload_coverage (3.0.3) (push) Has been cancelled
2025-04-16 12:46:17 +03:00
oleghasjanov
072f4440e2 fixed tests 2025-04-16 11:47:52 +03:00
oleghasjanov
36968f363e fixed tests 2025-04-16 11:47:52 +03:00
oleghasjanov
c08c3878e0 fix: improve p12 container generation with proper certificate status
Fix p12 containers being incorrectly generated with revoked status
Add proper serial number generation based on current time
Improve CRL handling in certificate_revoked? method
Fix controller parameter naming from cert_params to p12_params
Add comprehensive tests for certificate status and CRL handling
Include diagnostic methods for troubleshooting CRL issues
This commit resolves the issue where certificates were incorrectly
considered revoked during p12 container generation due to missing
or improperly handled CRL files.
2025-04-16 11:47:52 +03:00
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
oleghasjanov
5355397025 feat: improve certificate download extensions
Update certificate download functionality to use appropriate file extensions:
- Use .p12 extension for PKCS#12 files
- Keep .pem extension for PEM-encoded files (CSR, CRT, private key)

This change ensures that downloaded certificate files have the correct extension based on their format, making it easier for users to identify and use the files correctly.
2025-04-16 11:47:52 +03:00
tsoganov
af46be8d0f Corrected tests 2024-11-14 08:37:09 +02:00
tsoganov
637cabf95f Handling contact verifications 2024-11-14 08:37:09 +02:00
olegphenomenon
8812f8da22 fixed tests 2022-05-11 11:17:47 +03:00
olegphenomenon
03101a599f updated tests 2022-05-11 11:17:47 +03:00
olegphenomenon
f6b352a087 updated nameserver letter 2022-02-09 15:15:08 +02:00
olegphenomenon
fff7bcb1cf updated tests 2022-02-09 15:15:08 +02:00
olegphenomenon
35f60e53e5 improve notification feature 2022-02-09 15:15:08 +02:00
olegphenomenon
053382ffa3 updated tests 2022-02-09 15:15:08 +02:00
olegphenomenon
b2519b86a4 added test for service dnssec validate object 2022-02-09 15:15:08 +02:00
Artur Beljajev
9668ec33d9 Add database constraints 2019-10-24 19:23:26 +03:00
Artur Beljajev
7fcab05e51 Clean up settings after tests 2019-10-09 15:55:27 +03:00
Artur Beljajev
a97728c0f3 Refactor and improve invoices
- `runner 'Invoice.cancel_overdue_invoices'` in `schedule.rb` is
changed to `rake 'invoices:cancel_overdue'`.
- `invoices.payment_term` database column is removed and its value is
hardcoded in UI.
- `invoices.paid_at` is removed as unused
- `invoices.due_date` column's type is now `date`.
- `Invoice#invoice_items` renamed to `Invoice#items` and `Invoice`
interface to get a list of items is unified.
- Default date format in UI.
- Default translations are used.
- Tests improved.
- Specs converted to tests and removed along with factories.
- Database structure improved.
2019-03-14 15:39:24 +02:00