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

2023257: Disallowed attaching pool in SCA mode: #2890

Merged
merged 2 commits into from Nov 30, 2021
Merged

Conversation

jirihnidek
Copy link
Contributor

  • Card ID: ENT-1415
  • BZ: https://bugzilla.redhat.com/show_bug.cgi?id=2023257
  • Manual attaching of pool using --pool CLI option is not
    allowed now. When user tries to attach any pool in SCA
    mode, then info message is printedn and subscription-manager
    is terminated
  • Added two unit tests for auto-attach ins SCA mode and
    manual attach
  • Added more debug prints for cache used by function
    is_simple_content_access(), because I considered using
    this method, when --help is used, but calling
    subscription-manager attach --help would cause calling
    one REST API endpoint
  • Updated manual page about subscription-manager

@cnsnyder cnsnyder requested review from a team and ptoscano and removed request for a team November 19, 2021 16:27
Copy link
Member

@cnsnyder cnsnyder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aside from the one discussion on the man page changes, looks good!
Please take a look at the suggestion and we'll go from there!

man/subscription-manager.8 Outdated Show resolved Hide resolved
@ptoscano
Copy link
Contributor

minor note: the message of the second commit has a typo: "Dissalowed" -> "Disallowed"

* Card ID: ENT-1415
* Manual attaching of pool using --pool CLI option is not
  allowed now. When user tries to attach any pool in SCA
  mode, then info message is printedn and subscription-manager
  is terminated
* Added two unit tests for auto-attach ins SCA mode and
  manual attach
* Added more debug prints for cache used by function
  is_simple_content_access(), because I considered using
  this method, when --help is used, but calling
  subscription-manager attach --help would cause calling
  one REST API endpoint
* Updated manual page about subscription-manager
* Card ID: ENT-1415
* When D-Bus methods AutoAttach() or PoolAttach() are called in
  SCA mode, then exception is raised
* Added two unit tests for this case
@jirihnidek
Copy link
Contributor Author

Thanks for reviews. Commits are updated.

@ptoscano
Copy link
Contributor

LGTM; I'll leave it to @cnsnyder for his final look.

@cnsnyder cnsnyder merged commit aa952e4 into main Nov 30, 2021
7 checks passed
@ptoscano ptoscano deleted the jhnidek/2023257 branch November 30, 2021 20:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants