mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-11-13 03:35:52 +01:00
b56d5cec39
* chore: relocated mock package * refactor: relocate local-storage htpasswd to plugins because they are * chore: format
41 lines
1.5 KiB
Plaintext
41 lines
1.5 KiB
Plaintext
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
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`] = `"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
|
|
"
|
|
`;
|