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
1 changed files with 3 additions and 0 deletions

View File

@ -78,6 +78,7 @@ def test_cli_setup_authority():
assert authority.ca_cert.not_valid_after > datetime.now() + timedelta(days=7000)
# 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'])
assert not result.exception, result.output
@ -382,3 +383,5 @@ def test_cli_setup_authority():
assert not result.exception, result.output
result = runner.invoke(cli, ["request", "--no-wait"])
assert not result.exception, result.output
result = runner.invoke(cli, ["request", "--renew"])
assert not result.exception, result.output