mirror of
https://github.com/verdaccio/verdaccio.git
synced 2025-01-06 22:40:26 -05:00
124e5f2de7
* migrate htpasswd package * update versions * Update htpasswd.passwords.test.ts
40 lines
1.6 KiB
Text
40 lines
1.6 KiB
Text
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
|
|
|
|
exports[`addUserToHTPasswd - bcrypt > should add new htpasswd to the end 1`] = `
|
|
"username:$2a$10$......................7zqaLmaKtn.i7IjPfuPGY2Ah/mNM6Sy:autocreated 2018-01-14T11:17:40.712Z
|
|
"
|
|
`;
|
|
|
|
exports[`addUserToHTPasswd - bcrypt > should add new htpasswd to the end in multiline input 1`] = `
|
|
"test1:$6b9MlB3WUELU:autocreated 2017-11-06T18:17:21.957Z
|
|
test2:$6FrCaT/v0dwE:autocreated 2017-12-14T13:30:20.838Z
|
|
username:$2a$10$......................7zqaLmaKtn.i7IjPfuPGY2Ah/mNM6Sy:autocreated 2018-01-14T11:17:40.712Z
|
|
"
|
|
`;
|
|
|
|
exports[`addUserToHTPasswd - bcrypt > should throw an error for incorrect username with space 1`] = `[InternalServerError: username should not contain non-uri-safe characters]`;
|
|
|
|
exports[`changePasswordToHTPasswd > should change the password 1`] = `
|
|
"root:$2a$10$......................0qqDmeqkAfPx68M2ArX8hVzcVNft5Ha:autocreated 2018-01-14T11:17:40.712Z
|
|
"
|
|
`;
|
|
|
|
exports[`generateHtpasswdLine > should correctly generate line for bcrypt 1`] = `
|
|
"username:$2a$04$......................LAtw7/ohmmBAhnXqmkuIz83Rl5Qdjhm:autocreated 2018-01-14T11:17:40.712Z
|
|
"
|
|
`;
|
|
|
|
exports[`generateHtpasswdLine > should correctly generate line for crypt 1`] = `
|
|
"username:$66to3JK5RgZM:autocreated 2018-01-14T11:17:40.712Z
|
|
"
|
|
`;
|
|
|
|
exports[`generateHtpasswdLine > should correctly generate line for md5 1`] = `
|
|
"username:$apr1$MMMMMMMM$2lGUwLC3NFfN74jH51z1W.:autocreated 2018-01-14T11:17:40.712Z
|
|
"
|
|
`;
|
|
|
|
exports[`generateHtpasswdLine > should correctly generate line for sha1 1`] = `
|
|
"username:{SHA}W6ph5Mm5Pz8GgiULbPgzG37mj9g=:autocreated 2018-01-14T11:17:40.712Z
|
|
"
|
|
`;
|