Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class ListPrivilegeTest extends AdministrationCommandTestBase {
tx.execute("CREATE ROLE my_second_role")
tx.execute("GRANT IMMUTABLE ACCESS ON DATABASE * TO my_role")
tx.execute("GRANT TRAVERSE ON GRAPH * NODES * TO my_second_role")
tx.execute("CREATE USER alice SET PASSWORD 'secret'")
tx.execute("CREATE USER alice SET PASSWORD 'secret00'")
tx.execute("GRANT ROLE my_role TO alice")
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class RoleManagementTest extends AdministrationCommandTestBase {
override val linkId = "administration/security/users-and-roles/#administration-security-roles"

private def setup() = graph.withTx { tx =>
tx.execute("CREATE USER alice SET PASSWORD 'secret' CHANGE NOT REQUIRED")
tx.execute("CREATE USER alice SET PASSWORD 'secret00' CHANGE NOT REQUIRED")
}

def text: String = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class UserManagementTest extends AdministrationCommandTestBase {
override def parameters(name: String): Map[String, Any] =
name match {
case "parameters=create" =>
Map("password" -> "secret")
Map("password" -> "secret00")
case "parameters=update" =>
Map("password" -> "new_secret")
case _ =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public void successful_authentication() throws JsonParseException, IOException
// Given
startServerWithConfiguredUser();

HTTP.Response response = HTTP.withBasicAuth( "neo4j", "secret" ).POST( txCommitURL( "system" ), query( "SHOW USERS" ) );
HTTP.Response response = HTTP.withBasicAuth( "neo4j", "secret00" ).POST( txCommitURL( "system" ), query( "SHOW USERS" ) );

assertThat( response.status(), equalTo( 200 ) );

Expand Down Expand Up @@ -143,13 +143,13 @@ public void password_change_required() throws JsonParseException, IOException
// When
// Changing the user password
HTTP.Response response =
HTTP.withBasicAuth( "neo4j", "neo4j" ).POST( txCommitURL( "system" ), query( "ALTER CURRENT USER SET PASSWORD FROM 'neo4j' TO 'secret'" ) );
HTTP.withBasicAuth( "neo4j", "neo4j" ).POST( txCommitURL( "system" ), query( "ALTER CURRENT USER SET PASSWORD FROM 'neo4j' TO 'secret00'" ) );
// Then
assertThat( response.status(), equalTo( 200 ) );
assertThat( "Should have no errors", response.get( "errors" ).size(), equalTo( 0 ) );

// When
HTTP.Response responseAfterPasswordChange = HTTP.withBasicAuth( "neo4j", "secret" ).POST( txCommitURL( "system" ), query( "SHOW USERS" ) );
HTTP.Response responseAfterPasswordChange = HTTP.withBasicAuth( "neo4j", "secret00" ).POST( txCommitURL( "system" ), query( "SHOW USERS" ) );

// Then
assertThat( responseAfterPasswordChange.status(), equalTo( 200 ) );
Expand Down Expand Up @@ -194,7 +194,7 @@ protected void startServerWithConfiguredUser() throws IOException
startServer( true );
// Set the password
HTTP.Response post = HTTP.withBasicAuth( "neo4j", "neo4j" ).POST( txCommitURL( "system" ),
query("ALTER CURRENT USER SET PASSWORD FROM 'neo4j' TO 'secret'" ) );
query("ALTER CURRENT USER SET PASSWORD FROM 'neo4j' TO 'secret00'" ) );
assertEquals( 200, post.status() );
}

Expand Down