mirror of
				https://github.com/laurivosandi/certidude
				synced 2025-10-31 01:19:11 +00:00 
			
		
		
		
	tests: More verbosity
This commit is contained in:
		| @@ -221,7 +221,7 @@ def test_cli_setup_authority(): | |||||||
|  |  | ||||||
|     r = requests.get("http://ca.example.lan/api/revoked/", |     r = requests.get("http://ca.example.lan/api/revoked/", | ||||||
|         headers={"Accept":"application/x-pem-file"}) |         headers={"Accept":"application/x-pem-file"}) | ||||||
|     assert r.status_code == 200, "Server responded with %s" % r.text |     assert r.status_code == 200, "Server responded with %s, server logs say %s" % (r.text, open("/var/log/certidude.log").read()) | ||||||
|     assert r.headers.get('content-type') == "application/x-pem-file" |     assert r.headers.get('content-type') == "application/x-pem-file" | ||||||
|  |  | ||||||
|     r = client().simulate_get("/api/revoked/") |     r = client().simulate_get("/api/revoked/") | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user