Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

password must be 8 chars #1663

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
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 @@ -77,7 +77,7 @@ 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()).isEqualTo(200);

Expand Down Expand Up @@ -134,13 +134,13 @@ 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()).isEqualTo(200);
assertThat(response.get("errors")).as("Should have no errors").isEmpty();

// 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()).isEqualTo(200);
Expand Down Expand Up @@ -184,7 +184,7 @@ protected void startServerWithConfiguredUser() throws IOException {
setupGen();
// 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