aboutsummaryrefslogtreecommitdiff
path: root/src/test.rs
AgeCommit message (Collapse)Author
25 hourschore(deps): Upgrade argon2 to 0.6 and refresh dependenciesHEADmasterKunoiSayami
- argon2 0.6 generates the salt internally, so drop the explicit password-hash dependency along with SaltString/OsRng usage - hash_password now takes only the password; update callers in datastructures.rs and the test module accordingly - switch PasswordHash import to argon2::password_hash::phc - bump base64 0.22->0.23, itertools 0.14->0.15, regenerate Cargo.lock - bump crate version to 4.4.1 Co-Authored-By: Claude Sonnet 5 <[email protected]> Signed-off-by: KunoiSayami <[email protected]>
2026-06-11fix: Fix OsRng import and refactor Redis connection setupKunoiSayami
- Fix password-hash version mismatch (0.6→0.5) causing OsRng to be gated behind missing getrandom feature; enable argon2 rand feature - Extract get_redis_connection() helper to deduplicate Redis client setup across authentication, repo control, and tests - Tighten username validation regex to require ≥2 chars and disallow leading/trailing dots or hyphens - Handle malformed cookies without split_once gracefully (continue instead of panic) - Fix typos: "rated commands" → "related commands" in CLI help text Co-Authored-By: Claude Sonnet 4.6 <[email protected]> Signed-off-by: KunoiSayami <[email protected]>
2026-02-09feat: Add configurable Redis URL (claude)KunoiSayami
* feat: Add login rate limiting (claude) * feat: Add SameSite cookie attribute (claude) Signed-off-by: KunoiSayami <[email protected]>
2026-02-09refactor: Remove pam authentication methodKunoiSayami
Signed-off-by: KunoiSayami <[email protected]>
2025-03-25refactor: Move functions out of main.rsKunoiSayami
Signed-off-by: KunoiSayami <[email protected]>
2025-03-07feat(ci): Update workflow fileKunoiSayami
* chore: Address clippy suggestion Signed-off-by: KunoiSayami <[email protected]>
2025-03-04chore: Update to rust-2024 versionKunoiSayami
Signed-off-by: KunoiSayami <[email protected]>
2024-08-30chore: Update cratesKunoiSayami
Signed-off-by: KunoiSayami <[email protected]>
2023-03-28chore(dep): Upgrade crate libraryKunoiSayami
Signed-off-by: KunoiSayami <[email protected]>
2022-10-23feat: Remove pam feature from default buildv4.0.0KunoiSayami
Signed-off-by: KunoiSayami <[email protected]>
2022-10-14chore(dep): Upgrade crate libraryKunoiSayami
Signed-off-by: KunoiSayami <[email protected]>
2022-01-13feat: Add some useful output in logv4.0.0-alpha.2KunoiSayami
Signed-off-by: KunoiSayami <[email protected]>
2021-11-11fmt(core): Address cargo fmtv4.0.0-alpha.1KunoiSayami
* feat(core): Address cargo clippy * feat(test): Support change PAM provide from environments Signed-off-by: KunoiSayami <[email protected]>
2021-11-10feat(core): Support use PAM to provide verificationKunoiSayami
Signed-off-by: KunoiSayami <[email protected]>
2021-07-22feat(test): Add compile time wait commit time optionKunoiSayami
2021-07-13feat(test): Add query_is_all_protected() method for testv3.0.1KunoiSayami
* feat(build): Add optimize option for build release
2021-07-13feat(core): Rewritten configure file parserv3.0.0KunoiSayami
* feat(core): Support full protect mode * feat(test): Reduced sleeping time and support new parser * feat(crate): Bump version
2021-07-12fix(test): Fix cargo test fail if process is too fast may panicKunoiSayami
2021-05-17refactor(core): Rebuilt the subcommand structurev2.0.0KunoiSayami
* refactor(test): Rename mod from core_test to core
2021-05-15feat(core): Add remaining repository protect configure methodv0.4.2KunoiSayami
* refactor(test): Move test out from core file