Skip to content

Commit 10fc7a0

Browse files
authored
Permit dev agent suffix in tests and update password management (#1159)
1 parent 6e39c4c commit 10fc7a0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

driver/src/test/java/org/neo4j/driver/internal/util/Neo4jWithFeatureCondition.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ private static ConditionEvaluationResult checkFeatureAvailability( Neo4jFeature
7575
try ( Session session = driver.session() )
7676
{
7777
String agent = session.readTransaction( tx -> tx.run( "RETURN 1" ).consume().server().agent() );
78-
Pattern pattern = Pattern.compile( "^Neo4j/(\\d+)\\.(\\d+)\\.(\\d+)$" );
78+
Pattern pattern = Pattern.compile( "^Neo4j/(\\d+)\\.(\\d+)\\.(\\d+)(-dev)?$" );
7979
Matcher matcher = pattern.matcher( agent );
8080
if ( !matcher.matches() )
8181
{

driver/src/test/java/org/neo4j/driver/util/Neo4jRunner.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ private void installNeo4j() throws IOException
190190

191191
moveFile( new File( tempHomeDir ), targetHomeFile );
192192
debug( "Installed server at `%s`.", HOME_DIR );
193-
executeCommand( "neoctrl-create-user", HOME_DIR, USER, PASSWORD );
193+
executeCommand( "neoctrl-set-initial-password", PASSWORD, HOME_DIR );
194194
}
195195
}
196196

0 commit comments

Comments
 (0)