Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overhaul tracker keys: add more tests #990

Conversation

josecelano
Copy link
Member

There are four ways of adding keys to the tracker. One for each combination of:

  • Expiring or permanent key.
  • Pre-generated (uploaded) or randomly generated key.

This PR adds new tests for each case.

It was public becuase it was being used in a test but it can be used the
`authenticate` method instead.
@josecelano josecelano self-assigned this Aug 1, 2024
@josecelano josecelano requested a review from da2ce7 August 1, 2024 15:47
@josecelano josecelano added this to the v3.0.0 milestone Aug 1, 2024
There are four ways of adding keys to the tracker. One for each combination of:

- Expiring or permanent key.
- Pre-generated (uploaded) ot randomdly generated key.

This commit adds new tests for each case.
@josecelano josecelano force-pushed the 989-overhaul-tracker-keys-add-more-tests branch from d831d8e to 349692b Compare August 1, 2024 15:49
@josecelano josecelano linked an issue Aug 1, 2024 that may be closed by this pull request
Copy link

codecov bot commented Aug 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 77.11%. Comparing base (e00feef) to head (349692b).

Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #990      +/-   ##
===========================================
+ Coverage    76.77%   77.11%   +0.34%     
===========================================
  Files          185      185              
  Lines         9959    10025      +66     
===========================================
+ Hits          7646     7731      +85     
+ Misses        2313     2294      -19     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@josecelano josecelano marked this pull request as ready for review August 1, 2024 16:37
@josecelano
Copy link
Member Author

ACK 349692b

@josecelano josecelano merged commit d47ff21 into torrust:develop Aug 1, 2024
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Overhaul tracker keys: add more tests
1 participant