mirror of
				https://github.com/laurivosandi/certidude
				synced 2025-10-29 16:39:19 +00:00 
			
		
		
		
	tests: Add test for certificate renewal
This commit is contained in:
		| @@ -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 | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user