Skip to content
Snippets Groups Projects

tor-keymgr: Implemented test improvements

Merged vijayabhaskar_78 requested to merge vijayabhaskar_78/arti:main into main

Replace string-based metadata in KeyMgr tests with a structured ItemMetadata type that properly tracks:

Item identifiers (coot, moorhen, etc.)

Generation source keystores

Retrieval source keystores

This change improves test assertions by making them more precise and self-documenting, eliminating the confusing string concatenation pattern previously used for tracking keystore operations.

Fixes #1888 (closed)

Edited by vijayabhaskar_78

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • gabi-250
  • added 1 commit

    Compare with previous version

  • added 1 commit

    Compare with previous version

  • added 1 commit

    Compare with previous version

  • vijayabhaskar_78 resolved all threads

    resolved all threads

  • vijayabhaskar_78 changed the description

    changed the description

  • Hi, thank you for the MR!

    Before I dig more into the implementation, I have a few high-level comments that need to be addressed:

    • CI is failing right now: clippy seems unhappy, and the code is misformatted. Please fix the clippy warnings and the formatting issues
    • I notice you modified the main body of the KeyMgr implementation. This surprised me, because the ticket is only about modifying the tests (and test Keystore implementation). You shouldn't need to modify anything outside of the mod test {} from mgr.rs. If you find issues with the main implementation and would like to fix them, please open a separate MR for those changes
    • generated_in is set during insertion, whereas #1888 (closed) asks for it to be set in Keygen::generate. FWIW, the ticket is wrong here, because there's no way to "specify which keystore the item was generated in using Keygen::generate, if it was generated this way at all" -- my bad! Maybe we could just make it into a boolean instead?
  • vijayabhaskar_78 added 22 commits

    added 22 commits

    Compare with previous version

  • added 1 commit

    Compare with previous version

  • Hi @gabi-250

    I had previously strayed from the scope of #1888 (closed), but I’ve now made the necessary corrections, and the pipeline is passing. Let me know if everything looks good. I appreciate your guidance—thanks a lot!

  • gabi-250 mentioned in issue #1630 (closed)

    mentioned in issue #1630 (closed)

  • I'll wait till this is merged, will then send a patch modifying the run_certificate_test macro just a bit.

  • gabi-250
  • gabi-250
  • gabi-250
  • gabi-250
  • gabi-250
  • gabi-250
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Please register or sign in to reply
    Loading