WebEjbcaClearCacheTest.testEjbcaClearCacheHttp sends a request to the ClearCacheServlet. ClearCacheServlet fails if the requests does not come from localhost, so the tests always uses "localhost" hardcoded which fails if EJBCA is running on a different container or VM.
This test case should be skipped if we cannot connect to localhost via HTTP.
Additionally, there should be a test case of the clear cache URL using "target.hostname". This will not be successful if not accessing via localhost, but we can still check that it does not return HTTP 404. (this would require checking if accessing via "target.hostname" is actually external, which is tricky to do reliably, so I won't implement this)