-
Notifications
You must be signed in to change notification settings - Fork 197
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
Remove deprecated code in Pyramid 2.0 #5288
Conversation
1cde9b8
to
5f96357
Compare
I can't understand why Integration tests on Rawhide and F38 are still failing. When the bodhi-client tries to perform any action which requires authentication it gets a permission denied. I thought it was something related to Pyramid 2.0, but even with the new security policy in place it still fails. Moreover, after upgrading staging Bodhi base image to Fedora 38, so that now uses Pyramid 2.0, the bodhi-client seems to work fine there. So I think there's something wrong in our Integration tests setup, but I'm unable to find what. |
Thanks @abompard for the fix of F38 Integration tests. I'll keep this waiting until someone find time to do a full security review, as I think I've just updated the existing Pyramid security settings to the new format, but I may have missed something. |
Fix a deprecation warning with Pyramid 2.0. One small step related to fedora-infra#5091 Signed-off-by: Mattia Verga <mattia.verga@tiscali.it>
Signed-off-by: Mattia Verga <mattia.verga@tiscali.it>
Signed-off-by: Mattia Verga <mattia.verga@tiscali.it>
Fedora 37 doesn't have Pyramid >= 2.0.0 Signed-off-by: Mattia Verga <mattia.verga@tiscali.it>
Did this break the edit: there is some behind-the-scenes stuff there, because we're implementing an upstream "security policy" API and calling upstream's |
yeah, I forgot to pass the arguments to |
#5572 should fix it |
This change will remove calls to deprecated methods in Pyramid 2.0. Note that will also make Bodhi require Pyramid > 2.0 as the new authentication policies method should not be available in versions before 2.0 (at least, I have not found them in Pyramid's 1.9 docs).