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

fix: Really disable content #3500

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jirihnidek
Copy link
Contributor

@jirihnidek jirihnidek commented Jan 23, 2025

  • CCT-1005
  • When D-Bus method Register() or RegisterWithActivationKeys() is
    called with "enable_content": false, rhsm.service will not
    download and install SCA cerificate, but it is not enough,
    because later rhsmcertd or "subscription-manager status"
    will download SCA certificate and it will generated redhat.repo
    file
  • For this reason, when "enable_content" is false, then
    manage_repos will be set to 0 to be sure that redhat.repo
    will not be generated later
  • TODO: Do not download SCA certificate, when manage_repos is
    equal to "0", because it is useless activity and it
    consumes resources on candlepin server

@jirihnidek jirihnidek changed the title Really disable content fix: Really disable content Jan 23, 2025
Copy link

github-actions bot commented Jan 23, 2025

Coverage

Coverage (computed on Fedora latest) •
FileStmtsMissCoverMissing
rhsmlib/dbus/objects
   register.py2387369%37–38, 99–100, 113–114, 124–125, 127–128, 138–139, 141, 155, 158, 171, 174, 235, 244, 288–289, 296, 316, 323, 376–378, 380–381, 401–405, 407–409, 411, 413, 415, 434–437, 439–441, 443, 445, 447, 462, 466, 483–488, 490–492, 494, 496, 508–512, 514–516, 518, 520
TOTAL17455447474% 

Tests Skipped Failures Errors Time
2418 14 💤 0 ❌ 0 🔥 31.517s ⏱️

@jirihnidek jirihnidek force-pushed the jhnidek/really_disable_content branch 2 times, most recently from 6a3f82d to ab9a29e Compare January 23, 2025 17:16
@jirihnidek jirihnidek force-pushed the jhnidek/really_disable_content branch from ab9a29e to dfcb41f Compare January 24, 2025 08:47
* CCT-1005
* When D-Bus method Register() or RegisterWithActivationKeys() is
  called with "enable_content": false, rhsm.service will not
  download and install SCA cerificate, but it is not enough,
  because later rhsmcertd or "subscription-manager status"
  will download SCA certificate and it will generated redhat.repo
  file
* For this reason, when "enable_content" is false, then
  manage_repos will be set to 0 to be sure that redhat.repo
  will not be generated later
* Fixed unit tests
* TODO: Do not download SCA certificate, when manage_repos is
  equal to "0", because it is useless activity and it
  consumes resources on candlepin server
@jirihnidek jirihnidek force-pushed the jhnidek/really_disable_content branch from dfcb41f to 2d99bb3 Compare January 24, 2025 16:24
@jirihnidek jirihnidek marked this pull request as ready for review January 24, 2025 16:45
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.

1 participant