1
0
mirror of https://github.com/laurivosandi/certidude synced 2024-12-22 16:25:17 +00:00

tests: Add test for certificate renewal

This commit is contained in:
Lauri Võsandi 2017-05-02 06:11:28 +00:00
parent 06b65444d5
commit 8f9da9c2f1

View File

@ -78,6 +78,7 @@ def test_cli_setup_authority():
assert authority.ca_cert.not_valid_after > datetime.now() + timedelta(days=7000) assert authority.ca_cert.not_valid_after > datetime.now() + timedelta(days=7000)
# Start server before any signing operations are performed # Start server before any signing operations are performed
config.CERTIFICATE_RENEWAL_ALLOWED = True
result = runner.invoke(cli, ['serve', '-f', '-p', '80', '-l', '127.0.1.1']) result = runner.invoke(cli, ['serve', '-f', '-p', '80', '-l', '127.0.1.1'])
assert not result.exception, result.output assert not result.exception, result.output
@ -382,3 +383,5 @@ def test_cli_setup_authority():
assert not result.exception, result.output assert not result.exception, result.output
result = runner.invoke(cli, ["request", "--no-wait"]) result = runner.invoke(cli, ["request", "--no-wait"])
assert not result.exception, result.output assert not result.exception, result.output
result = runner.invoke(cli, ["request", "--renew"])
assert not result.exception, result.output