Revize 4cf3b539
Přidáno uživatelem Stanislav Král před více než 3 roky(ů)
tests/integration_tests/services/certificate_key_service_test.py | ||
---|---|---|
3 | 3 |
|
4 | 4 |
def test_connection(private_key_service, certificate_service): |
5 | 5 |
private_key = private_key_service.create_new_key(passphrase="foobar") |
6 |
private_key_loaded = private_key_service.get_key(private_key.private_key_id) |
|
7 |
|
|
8 |
assert private_key.private_key_id == private_key_loaded.private_key_id |
|
9 |
assert private_key.private_key == private_key_loaded.private_key |
|
10 |
assert private_key.password == private_key_loaded.password |
|
6 | 11 |
|
7 | 12 |
cert = certificate_service.create_root_ca(private_key, |
8 | 13 |
Subject(common_name="FooName", organization_unit="Department of Foo")) |
Také k dispozici: Unified diff
Re #8472 - Extended integration test asserting correct reading from the database