-
Notifications
You must be signed in to change notification settings - Fork 363
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
[mamba-content-trust] Add integration test #3234
Conversation
-Add test for mamba-content-trust (mamba client side) using conda-content-trust (server side) -Add missing install with pip (to fix)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry for the late review!
@@ -32,11 +32,11 @@ namespace mamba | |||
|
|||
explicit RepoCheckerStore(repo_checker_list checkers); | |||
|
|||
[[nodiscard]] auto find_checker(const Channel& chan) const -> const RepoChecker*; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why removing the const here? It looks legit. Same question for methods below.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes it was legit until I realized that the trusted_channels in Context
don't handle more that one item (giving errors if the first one is not the correct/used one). And that's because generate_index_checker()
is fetching the root and delegation roles files and was called here (when populating the RepoCheckerStore
and before knowing if the corresponding channel will be used) but is now moved to here. And since it's not const
the RepoChecker
and these methods can't be anymore.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🥲
mamba-content-trust
(mamba client side) usingconda-content-trust
(server side)trusted_channels
in context not working with more than one itemrepo_signed
(generated when running the script)