The personal finance app for everyone (by everyone)
Ruby
perf(test): use MIN_COST bcrypt digests in user fixtures (#2551)
Juan José Matacf0100969997
diff --git a/test/fixtures/users.yml b/test/fixtures/users.ymlindex 109b78a139..bb62df2850 100644--- a/test/fixtures/users.yml+++ b/test/fixtures/users.yml@@ -1,9 +1,13 @@+# password_digest is BCrypt::Password.create(user_password_test, cost: BCrypt::Engine::MIN_COST).+# Keep MIN_COST here: verification cost is embedded in the digest, so a+# production-cost digest adds ~230ms of CPU to every sign_in in tests.+empty:family: emptyfirst_name: Userlast_name: Oneemail: [email protected]- password_digest: $2a$12$XoNBo/cMCyzpYtvhrPAhsubG21mELX48RAcjSVCRctW8dG8wrDIla+ password_digest: $2a$04$deKu1NIqviMgrl.4NkXcieFkAmLa33RN9Tw/R/Llr22eMd4x/o/ROonboarded_at: <%= 3.days.ago %>role: adminai_enabled: true@@ -16,7 +20,7 @@ sure_support_staff:first_name: Supportlast_name: Adminemail: [email protected]- password_digest: $2a$12$XoNBo/cMCyzpYtvhrPAhsubG21mELX48RAcjSVCRctW8dG8wrDIla+ password_digest: $2a$04$deKu1NIqviMgrl.4NkXcieFkAmLa33RN9Tw/R/Llr22eMd4x/o/ROrole: super_adminonboarded_at: <%= 3.days.ago %>ai_enabled: true@@ -29,7 +33,7 @@ family_admin:first_name: Boblast_name: Dylanemail: [email protected]- password_digest: $2a$12$XoNBo/cMCyzpYtvhrPAhsubG21mELX48RAcjSVCRctW8dG8wrDIla+ password_digest: $2a$04$deKu1NIqviMgrl.4NkXcieFkAmLa33RN9Tw/R/Llr22eMd4x/o/ROrole: adminonboarded_at: <%= 3.days.ago %>ai_enabled: true@@ -42,7 +46,7 @@ family_member:first_name: Jakoblast_name: Dylanemail: [email protected]- password_digest: $2a$12$XoNBo/cMCyzpYtvhrPAhsubG21mELX48RAcjSVCRctW8dG8wrDIla+ password_digest: $2a$04$deKu1NIqviMgrl.4NkXcieFkAmLa33RN9Tw/R/Llr22eMd4x/o/ROonboarded_at: <%= 3.days.ago %>role: memberai_enabled: true@@ -56,7 +60,7 @@ new_email:last_name: Useremail: [email protected]unconfirmed_email: [email protected]- password_digest: $2a$12$XoNBo/cMCyzpYtvhrPAhsubG21mELX48RAcjSVCRctW8dG8wrDIla+ password_digest: $2a$04$deKu1NIqviMgrl.4NkXcieFkAmLa33RN9Tw/R/Llr22eMd4x/o/ROonboarded_at: <%= Time.current %>role: memberai_enabled: true@@ -69,7 +73,7 @@ intro_user:first_name: Introlast_name: Useremail: [email protected]- password_digest: $2a$12$XoNBo/cMCyzpYtvhrPAhsubG21mELX48RAcjSVCRctW8dG8wrDIla+ password_digest: $2a$04$deKu1NIqviMgrl.4NkXcieFkAmLa33RN9Tw/R/Llr22eMd4x/o/ROonboarded_at: <%= 1.day.ago %>role: guestai_enabled: true@@ -82,7 +86,7 @@ inactive_trial_user:first_name: Inactivelast_name: Useremail: [email protected]- password_digest: $2a$12$XoNBo/cMCyzpYtvhrPAhsubG21mELX48RAcjSVCRctW8dG8wrDIla+ password_digest: $2a$04$deKu1NIqviMgrl.4NkXcieFkAmLa33RN9Tw/R/Llr22eMd4x/o/ROrole: adminonboarded_at: <%= 90.days.ago %>ai_enabled: true