2020-08-19 13:27:35 -05:00
// Jest Snapshot v1, https://goo.gl/fbAQLP
2021-01-30 17:41:33 -05:00
exports[`addUserToHTPasswd - bcrypt should add new htpasswd to the end 1`] = `
"username:$2a$10$......................7zqaLmaKtn.i7IjPfuPGY2Ah/mNM6Sy:autocreated 2018-01-14T11:17:40.712Z
2020-08-19 13:27:35 -05:00
"
`;
2021-01-30 17:41:33 -05:00
exports[`addUserToHTPasswd - bcrypt should add new htpasswd to the end in multiline input 1`] = `
2020-08-19 13:27:35 -05:00
"test1:$6b9MlB3WUELU:autocreated 2017-11-06T18:17:21.957Z
test2:$6FrCaT/v0dwE:autocreated 2017-12-14T13:30:20.838Z
2021-01-30 17:41:33 -05:00
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
2020-08-19 13:27:35 -05:00
"
`;
2021-01-30 17:41:33 -05:00
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
"
`;
2020-08-19 13:27:35 -05:00
2021-01-30 17:41:33 -05:00
exports[`generateHtpasswdLine should correctly generate line for sha1 1`] = `
"username:{SHA}W6ph5Mm5Pz8GgiULbPgzG37mj9g=:autocreated 2018-01-14T11:17:40.712Z
"
`;