Skip to content

Commit

Permalink
Merge pull request #9840 from MishaDemianenko/3.3-http-loggin-test-po…
Browse files Browse the repository at this point in the history
…rt-selection

Automatic bolt port selection in HTTPLoggingIT
  • Loading branch information
burqen committed Aug 18, 2017
2 parents eafae5d + 0de6041 commit ee741bc
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@

import org.neo4j.function.ThrowingSupplier;
import org.neo4j.graphdb.factory.GraphDatabaseSettings;
import org.neo4j.kernel.configuration.BoltConnector;
import org.neo4j.kernel.configuration.Settings;
import org.neo4j.server.NeoServer;
import org.neo4j.server.configuration.ServerSettings;
Expand Down Expand Up @@ -71,6 +72,7 @@ public void givenExplicitlyDisabledServerLoggingConfigurationShouldNotLogAccesse
NeoServer server = serverOnRandomPorts().withDefaultDatabaseTuning().persistent()
.withProperty( ServerSettings.http_logging_enabled.name(), Settings.FALSE )
.withProperty( GraphDatabaseSettings.logs_directory.name(), logDirectory.toString() )
.withProperty( new BoltConnector( "bolt" ).listen_address.name(), ":0" )
.usingDataDir( testDirectory.directory( directoryPrefix + "-dbdir" ).getAbsolutePath() )
.build();
try
Expand Down Expand Up @@ -106,6 +108,7 @@ public void givenExplicitlyEnabledServerLoggingConfigurationShouldLogAccess() th
NeoServer server = serverOnRandomPorts().withDefaultDatabaseTuning().persistent()
.withProperty( ServerSettings.http_logging_enabled.name(), Settings.TRUE )
.withProperty( GraphDatabaseSettings.logs_directory.name(), logDirectory.getAbsolutePath() )
.withProperty( new BoltConnector( "bolt" ).listen_address.name(), ":0" )
.usingDataDir( testDirectory.directory( directoryPrefix + "-dbdir" ).getAbsolutePath() )
.build();
try
Expand Down

0 comments on commit ee741bc

Please sign in to comment.