Revize 5c0dd079
Přidáno uživatelem Michal Seják před téměř 4 roky(ů)
src/services/crl_ocsp/crl_ocsp_service.py | ||
---|---|---|
6 | 6 |
from src.dao.private_key_repository import PrivateKeyRepository |
7 | 7 |
from src.exceptions.certificate_not_found_exception import CertificateNotFoundException |
8 | 8 |
from src.exceptions.unknown_exception import UnknownException |
9 |
from src.services.crl.ca_index_file_line_generator import create_index_file_revoked_line, create_index_file_valid_line |
|
9 |
from src.services.crl_ocsp.ca_index_file_line_generator import create_index_file_revoked_line, create_index_file_valid_line
|
|
10 | 10 |
from src.services.cryptography import CryptographyService |
11 | 11 |
from src.utils.temporary_file import TemporaryFile |
12 | 12 |
|
tests/integration_tests/services/crl_service_test.py | ||
---|---|---|
6 | 6 |
|
7 | 7 |
from src.exceptions.certificate_not_found_exception import CertificateNotFoundException |
8 | 8 |
from src.exceptions.private_key_not_found_exception import PrivateKeyNotFoundException |
9 |
from src.exceptions.unknown_exception import UnknownException |
|
9 | 10 |
from src.model.subject import Subject |
10 | 11 |
from src.services.certificate_service import VALID_FROM_TO_DATE_FORMAT |
11 | 12 |
from src.utils.temporary_file import TemporaryFile |
... | ... | |
185 | 186 |
|
186 | 187 |
# test reaction of the service if a certificate is valid, but the PK does not exists |
187 | 188 |
private_key_service_unique.delete_key(root_ca_cert.private_key_id) |
188 |
with pytest.raises(PrivateKeyNotFoundException) as e:
|
|
189 |
with pytest.raises(UnknownException) as e:
|
|
189 | 190 |
crl_service_unique.generate_crl_response(root_ca_cert.certificate_id) |
190 | 191 |
|
191 | 192 |
|
tests/unit_tests/services/crl/ca_index_file_line_generator_test.py | ||
---|---|---|
2 | 2 |
|
3 | 3 |
from src.model.certificate import Certificate |
4 | 4 |
from src.model.subject import Subject |
5 |
from src.services.crl.ca_index_file_line_generator import create_index_file_revoked_line, create_index_file_valid_line |
|
5 |
from src.services.crl_ocsp.ca_index_file_line_generator import create_index_file_revoked_line, create_index_file_valid_line
|
|
6 | 6 |
|
7 | 7 |
|
8 | 8 |
def test_get_index_file_time_entry_valid(): |
Také k dispozici: Unified diff
Re #8577 - Minor refactoring (crl -> crl_ocsp).