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
[6.3] Access protected repository (BZ: 1242310) #5672
[6.3] Access protected repository (BZ: 1242310) #5672
Conversation
Codecov Report
@@ Coverage Diff @@
## master #5672 +/- ##
=======================================
Coverage 61.26% 61.26%
=======================================
Files 33 33
Lines 3681 3681
=======================================
Hits 2255 2255
Misses 1426 1426Continue to review full report at Codecov.
|
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.
ACK pending question
tests/foreman/api/test_repository.py
Outdated
| unprotected=False, | ||
| ).create().read_json() | ||
| repo_data_file_url = urljoin( | ||
| repository_data['full_path'], 'repodata/repomd.xml') |
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.
Is there a field full_path? Why not adding that field to nailgun & use read() instead of read_json() then?
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.
This is a read only field, there are many read only fields there, think using read_json is OK as it's a public method, but we should update nailgun to save the read_json data (to not make additional requests) and to check the field in the saved json data if the attribute does not exist.
|
@abalakh @oshtaier comments addressed |
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.
ACK
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.
ACK
cover BZ: https://bugzilla.redhat.com/show_bug.cgi?id=1242310
dependency: SatelliteQE/nailgun#471
documented in: https://theforeman.org/plugins/katello/nightly/troubleshooting/index.html#debug-certificate