Skip to content

Commit

Permalink
Specify encryption for HTTP connectors.
Browse files Browse the repository at this point in the history
  • Loading branch information
apcj committed Oct 7, 2016
1 parent 30b9d7d commit 0c59801
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ public void shouldBeAbleToStartInSingleMode() throws Exception
"-c", configOption( logs_directory, tempDir.getRoot().getAbsolutePath() ),
"-c", configOption( certificates_directory, getRelativePath( folder.getRoot(), certificates_directory ) ),
"-c", "dbms.connector.1.type=HTTP",
"-c", "dbms.connector.1.encryption=NONE",
"-c", "dbms.connector.1.enabled=true" );

// Then
Expand All @@ -113,6 +114,7 @@ public void shouldBeAbleToStartInHAMode() throws Exception
"-c", configOption( logs_directory, tempDir.getRoot().getAbsolutePath() ),
"-c", configOption( certificates_directory, getRelativePath( folder.getRoot(), certificates_directory ) ),
"-c", "dbms.connector.1.type=HTTP",
"-c", "dbms.connector.1.encryption=NONE",
"-c", "dbms.connector.1.enabled=true" );

// Then
Expand All @@ -129,6 +131,7 @@ public void debugLoggingDisabledByDefault() throws Exception
Map<String, String> properties = stringMap();
properties.putAll( ServerTestUtils.getDefaultRelativeProperties() );
properties.put( "dbms.connector.1.type", "HTTP" );
properties.put( "dbms.connector.1.encryption", "NONE" );
properties.put( "dbms.connector.1.enabled", "true" );
store( properties, configFile );

Expand All @@ -154,6 +157,7 @@ public void debugLoggingEnabledBySetting() throws Exception
Map<String, String> properties = stringMap( store_internal_log_level.name(), "DEBUG");
properties.putAll( ServerTestUtils.getDefaultRelativeProperties() );
properties.put( "dbms.connector.1.type", "HTTP" );
properties.put( "dbms.connector.1.encryption", "NONE" );
properties.put( "dbms.connector.1.enabled", "true" );
store( properties, configFile );

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ public void createFiles() throws IOException
configFile = new File( testDirectory.directory(), "neo4j.conf" );
Properties props = new Properties();
props.setProperty( ClientConnectorSettings.httpConnector( "1" ).type.name(), "HTTP" );
props.setProperty( ClientConnectorSettings.httpConnector( "1" ).encryption.name(), "NONE" );
props.setProperty( ClientConnectorSettings.httpConnector( "1" ).enabled.name(), "true" );
try ( FileWriter writer = new FileWriter( configFile ) )
{
Expand Down

0 comments on commit 0c59801

Please sign in to comment.