Projekt

Obecné

Profil

« Předchozí | Další » 

Revize f1936a24

Přidáno uživatelem Michal Seják před téměř 4 roky(ů)

Re #8652 - Updated the conversion method of dates from db to ca index format.

Zobrazit rozdíly:

tests/integration_tests/services/crl_service_test.py
18 18

  
19 19

  
20 20
def convert_valid_to_date_to_ca_index_format(date):
21
    return convert_date_to_ca_index_format(time.strptime(date, VALID_FROM_TO_DATE_FORMAT))
21
    return datetime.utcfromtimestamp(date).strftime(CA_INDEX_DATE_FORMAT)
22 22

  
23 23

  
24 24
def convert_date_to_ca_index_format(date):
......
103 103

  
104 104
    assert out == "\n".join(expected_lines)
105 105

  
106

  
106 107
def test_generate_crl_response(certificate_service_unique, private_key_service_unique, crl_service_unique,
107 108
                               cryptography_service):
108 109
    root_ca_private_key = private_key_service_unique.create_new_key(passphrase="foobar")

Také k dispozici: Unified diff