Closed jameerpathan111 closed 5 years ago
PR #70 need to be changed to find the expected number of packages to be locked, (Only If it's feasible and won't complicate the test) otherwise remove the assertion which checks number of packages which got locked with total number of packages which a satellite/foreman repo provides.
PR #70 need to be changed to find the expected number of packages to be locked, (Only If it's feasible and won't complicate the test) otherwise remove the assertion which checks number of packages which got locked with total number of packages which a satellite/foreman repo provides.
@ntkathole what do you think? is it worth doing?
@jameerpathan111 simple approach can be get of packages such as satellite-installer/satellite/foreman/katello in satellite and check those are locked.
PR #70 need to be changed to find the expected number of packages to be locked, (Only If it's feasible and won't complicate the test) otherwise remove the assertion which checks number of packages which got locked with total number of packages which a satellite/foreman repo provides.
Solution:
yum list installed | grep @Sat_repo_id | wc -l
repoquery -a --installed '| grep 'sat_repo_id | wc -l
Refs #100 and #96
upstream PR: https://github.com/theforeman/foreman_maintain/pull/249 upstream issue: https://projects.theforeman.org/issues/26216
Scenarios to test in Testfm:
[ ] satellite-installer --lock-package-versions
[ ] foreman-maintain packages lock