From 7cdf8054519ff32ad0f50660ff0b87a558d74f60 Mon Sep 17 00:00:00 2001 From: Neil Dewhurst Date: Thu, 10 Nov 2022 15:04:17 +0000 Subject: [PATCH] password must be 8 chars --- .../neo4j/cypher/docgen/refcard/ListPrivilegeTest.scala | 2 +- .../neo4j/cypher/docgen/refcard/RoleManagementTest.scala | 2 +- .../neo4j/cypher/docgen/refcard/UserManagementTest.scala | 2 +- .../doc/server/rest/security/AuthenticationDocIT.java | 8 ++++---- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/cypher/refcard-tests/src/test/scala/org/neo4j/cypher/docgen/refcard/ListPrivilegeTest.scala b/cypher/refcard-tests/src/test/scala/org/neo4j/cypher/docgen/refcard/ListPrivilegeTest.scala index 006c5eee69c..9d527b4e8ab 100644 --- a/cypher/refcard-tests/src/test/scala/org/neo4j/cypher/docgen/refcard/ListPrivilegeTest.scala +++ b/cypher/refcard-tests/src/test/scala/org/neo4j/cypher/docgen/refcard/ListPrivilegeTest.scala @@ -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") } diff --git a/cypher/refcard-tests/src/test/scala/org/neo4j/cypher/docgen/refcard/RoleManagementTest.scala b/cypher/refcard-tests/src/test/scala/org/neo4j/cypher/docgen/refcard/RoleManagementTest.scala index 12590a862b2..bf264375d23 100644 --- a/cypher/refcard-tests/src/test/scala/org/neo4j/cypher/docgen/refcard/RoleManagementTest.scala +++ b/cypher/refcard-tests/src/test/scala/org/neo4j/cypher/docgen/refcard/RoleManagementTest.scala @@ -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 = { diff --git a/cypher/refcard-tests/src/test/scala/org/neo4j/cypher/docgen/refcard/UserManagementTest.scala b/cypher/refcard-tests/src/test/scala/org/neo4j/cypher/docgen/refcard/UserManagementTest.scala index ed4efcc4631..af6c82f8a9e 100644 --- a/cypher/refcard-tests/src/test/scala/org/neo4j/cypher/docgen/refcard/UserManagementTest.scala +++ b/cypher/refcard-tests/src/test/scala/org/neo4j/cypher/docgen/refcard/UserManagementTest.scala @@ -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 _ => diff --git a/server-docs/src/test/java/org/neo4j/doc/server/rest/security/AuthenticationDocIT.java b/server-docs/src/test/java/org/neo4j/doc/server/rest/security/AuthenticationDocIT.java index bfe1c7e91e4..9083496a76e 100644 --- a/server-docs/src/test/java/org/neo4j/doc/server/rest/security/AuthenticationDocIT.java +++ b/server-docs/src/test/java/org/neo4j/doc/server/rest/security/AuthenticationDocIT.java @@ -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 ) ); @@ -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 ) ); @@ -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() ); }