This is an automated email from the ASF dual-hosted git repository. juanpablo pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/jspwiki.git
commit c1b0dd47baa87dfaf052b9e70c7d3d75aaf1bdc1 Author: samhareem <[email protected]> AuthorDate: Sun Mar 28 12:10:42 2021 +0300 test: Update password hashes used with XMLUserDatabaseTest --- .../java/org/apache/wiki/auth/user/XMLUserDatabaseTest.java | 10 +++++----- jspwiki-main/src/test/resources/userdatabase.xml | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/jspwiki-main/src/test/java/org/apache/wiki/auth/user/XMLUserDatabaseTest.java b/jspwiki-main/src/test/java/org/apache/wiki/auth/user/XMLUserDatabaseTest.java index 7cb5958..7a2a013 100644 --- a/jspwiki-main/src/test/java/org/apache/wiki/auth/user/XMLUserDatabaseTest.java +++ b/jspwiki-main/src/test/java/org/apache/wiki/auth/user/XMLUserDatabaseTest.java @@ -117,7 +117,7 @@ public class XMLUserDatabaseTest { Assertions.assertEquals( "janne", profile.getLoginName() ); Assertions.assertEquals( "Janne Jalkanen", profile.getFullname() ); Assertions.assertEquals( "JanneJalkanen", profile.getWikiName() ); - Assertions.assertEquals( "{SSHA}1WFv9OV11pD5IySgVH3sFa2VlCyYjbLrcVT/qw==", profile.getPassword() ); + Assertions.assertEquals( "{SHA-256}AeJQgAgYDAf2WZiqPJ2l6cGdGC/PgWmkjZmkjrBEV6SW/HlclZGlIg==", profile.getPassword() ); Assertions.assertEquals( "[email protected]", profile.getEmail() ); } catch( final NoSuchPrincipalException e ) { Assertions.assertTrue( false ); @@ -139,7 +139,7 @@ public class XMLUserDatabaseTest { Assertions.assertEquals( "janne", profile.getLoginName() ); Assertions.assertEquals( "Janne Jalkanen", profile.getFullname() ); Assertions.assertEquals( "JanneJalkanen", profile.getWikiName() ); - Assertions.assertEquals( "{SSHA}1WFv9OV11pD5IySgVH3sFa2VlCyYjbLrcVT/qw==", profile.getPassword() ); + Assertions.assertEquals( "{SHA-256}AeJQgAgYDAf2WZiqPJ2l6cGdGC/PgWmkjZmkjrBEV6SW/HlclZGlIg==", profile.getPassword() ); Assertions.assertEquals( "[email protected]", profile.getEmail() ); Assertions.assertNotNull( profile.getCreated() ); Assertions.assertNotNull( profile.getLastModified() ); @@ -163,7 +163,7 @@ public class XMLUserDatabaseTest { Assertions.assertEquals( "janne", profile.getLoginName() ); Assertions.assertEquals( "Janne Jalkanen", profile.getFullname() ); Assertions.assertEquals( "JanneJalkanen", profile.getWikiName() ); - Assertions.assertEquals( "{SSHA}1WFv9OV11pD5IySgVH3sFa2VlCyYjbLrcVT/qw==", profile.getPassword() ); + Assertions.assertEquals( "{SHA-256}AeJQgAgYDAf2WZiqPJ2l6cGdGC/PgWmkjZmkjrBEV6SW/HlclZGlIg==", profile.getPassword() ); Assertions.assertEquals( "[email protected]", profile.getEmail() ); Assertions.assertNotNull( profile.getCreated() ); Assertions.assertNotNull( profile.getLastModified() ); @@ -187,7 +187,7 @@ public class XMLUserDatabaseTest { Assertions.assertEquals( "janne", profile.getLoginName() ); Assertions.assertEquals( "Janne Jalkanen", profile.getFullname() ); Assertions.assertEquals( "JanneJalkanen", profile.getWikiName() ); - Assertions.assertEquals( "{SSHA}1WFv9OV11pD5IySgVH3sFa2VlCyYjbLrcVT/qw==", profile.getPassword() ); + Assertions.assertEquals( "{SHA-256}AeJQgAgYDAf2WZiqPJ2l6cGdGC/PgWmkjZmkjrBEV6SW/HlclZGlIg==", profile.getPassword() ); Assertions.assertEquals( "[email protected]", profile.getEmail() ); } catch( final NoSuchPrincipalException e ) { Assertions.assertTrue( false ); @@ -209,7 +209,7 @@ public class XMLUserDatabaseTest { Assertions.assertEquals( "janne", profile.getLoginName() ); Assertions.assertEquals( "Janne Jalkanen", profile.getFullname() ); Assertions.assertEquals( "JanneJalkanen", profile.getWikiName() ); - Assertions.assertEquals( "{SSHA}1WFv9OV11pD5IySgVH3sFa2VlCyYjbLrcVT/qw==", profile.getPassword() ); + Assertions.assertEquals( "{SHA-256}AeJQgAgYDAf2WZiqPJ2l6cGdGC/PgWmkjZmkjrBEV6SW/HlclZGlIg==", profile.getPassword() ); Assertions.assertEquals( "[email protected]", profile.getEmail() ); } catch( final NoSuchPrincipalException e ) { Assertions.assertTrue( false ); diff --git a/jspwiki-main/src/test/resources/userdatabase.xml b/jspwiki-main/src/test/resources/userdatabase.xml index be8a817..5d095f8 100644 --- a/jspwiki-main/src/test/resources/userdatabase.xml +++ b/jspwiki-main/src/test/resources/userdatabase.xml @@ -19,7 +19,7 @@ --> <users> - <user uid="-7739839977499061014" email="[email protected]" fullName="Janne Jalkanen" loginName="janne" password="{SSHA}1WFv9OV11pD5IySgVH3sFa2VlCyYjbLrcVT/qw==" wikiName="JanneJalkanen" created="2006.06.25 at 14:50:54:000 EDT" lastModified="2006.01.26 at 14:50:54:000 EST"> + <user uid="-7739839977499061014" email="[email protected]" fullName="Janne Jalkanen" loginName="janne" password="{SHA-256}AeJQgAgYDAf2WZiqPJ2l6cGdGC/PgWmkjZmkjrBEV6SW/HlclZGlIg==" wikiName="JanneJalkanen" created="2006.06.25 at 14:50:54:000 EDT" lastModified="2006.01.26 at 14:50:54:000 EST"> <attributes>rO0ABXNyABFqYXZhLnV0aWwuSGFzaE1hcAUH2sHDFmDRAwACRgAKbG9hZEZhY3RvckkACXRocmVzaG9sZHhwP0AAAAAAAAx3CAAAABAAAAACdAAKYXR0cmlidXRlMXQAEXNvbWUgcmFuZG9tIHZhbHVldAAKYXR0cmlidXRlMnQADWFub3RoZXIgdmFsdWV4</attributes> </user> <user uid="-8629747547991531672" email="[email protected]" loginName="user" password="{SSHA}iQWmcKE8PyO965jh4+VNLYbxagaDdS0nC9GmuQ==" created="2006.06.25 at 14:50:54:000 EDT" lastModified="2006.01.26 at 14:50:54:000 EST"/>
