mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-14 06:18:12 +00:00
bug4811: relaxed multi-server test, checking only that an "Apache..." server is answering on port 80
This commit is contained in:
1 parent
51217e497b
commit
4e4c1a13fc
1 file changed
+2
-2
+2
-2
@@ -96,8 +96,8 @@ public class TestProcedures {
|
||||
sshChannel.sendCommandLineSynchronously("ls "+SailingAnalyticsHost.DEFAULT_SERVERS_PATH, new ByteArrayOutputStream());
|
||||
final String result = sshChannel.getStreamContentsAsString();
|
||||
assertTrue(result.isEmpty());
|
||||
final HttpURLConnection connection = (HttpURLConnection) new URL("http", host.getPublicAddress().getCanonicalHostName(), 80, "/").openConnection();
|
||||
assertEquals(200, connection.getResponseCode());
|
||||
final HttpURLConnection connection = (HttpURLConnection) new URL("http", host.getPublicAddress().getCanonicalHostName(), 80, "").openConnection();
|
||||
assertTrue(connection.getHeaderField("Server").startsWith("Apache"));
|
||||
connection.disconnect();
|
||||
} catch (Exception e) {
|
||||
logger.log(Level.SEVERE, "Exception while trying to create a MongoDB replica", e);
|
||||
|
||||
Reference in new issue
Block a user