Revize 20b33bd4
Přidáno uživatelem Jan Pašek před asi 4 roky(ů)
tests/integration_tests/services/conftest.py | ||
---|---|---|
4 | 4 |
|
5 | 5 |
import pytest |
6 | 6 |
|
7 |
from src.config.configuration import test_configuration |
|
7 |
from src.config.configuration import test_configuration, Configuration
|
|
8 | 8 |
from src.config.connection_provider import ConnectionProvider |
9 | 9 |
from src.dao.certificate_repository import CertificateRepository |
10 | 10 |
from src.dao.private_key_repository import PrivateKeyRepository |
... | ... | |
36 | 36 |
return CryptographyService() |
37 | 37 |
|
38 | 38 |
|
39 |
@pytest.fixture |
|
40 |
def configuration(): |
|
41 |
return Configuration() |
|
42 |
|
|
43 |
|
|
39 | 44 |
@pytest.fixture |
40 | 45 |
def private_key_service(private_key_repository, cryptography_service): |
41 | 46 |
return KeyService(cryptography_service, private_key_repository) |
42 | 47 |
|
43 | 48 |
|
44 | 49 |
@pytest.fixture |
45 |
def certificate_service(certificate_repository, cryptography_service): |
|
46 |
return CertificateService(cryptography_service, certificate_repository) |
|
50 |
def certificate_service(certificate_repository, cryptography_service, configuration):
|
|
51 |
return CertificateService(cryptography_service, certificate_repository, configuration)
|
|
47 | 52 |
|
48 | 53 |
|
49 | 54 |
@pytest.fixture |
... | ... | |
73 | 78 |
|
74 | 79 |
|
75 | 80 |
@pytest.fixture |
76 |
def certificate_service_unique(certificate_repository_unique, cryptography_service_unique): |
|
77 |
return CertificateService(cryptography_service_unique, certificate_repository_unique) |
|
81 |
def certificate_service_unique(certificate_repository_unique, cryptography_service_unique, configuration): |
|
82 |
return CertificateService(cryptography_service_unique, certificate_repository_unique, configuration) |
Také k dispozici: Unified diff
Re #8571 - certificate_service.py revocation support end tests