2121350: Implement "force" register option in rhsm dbus python binding#3160
2121350: Implement "force" register option in rhsm dbus python binding#3160jirihnidek merged 1 commit intomainfrom
Conversation
0ace972 to
37bd012
Compare
|
Side note for anyone reviewing: I added unit tests for the related dbus binding changes, however I'm not too sure if this is the proper implementation. Please let me know! |
jirihnidek
left a comment
There was a problem hiding this comment.
Overall it LGTM 👍 . I have only small requests.
BTW: it is good to add some instruction how to test this case. Something like: Use this script for testing: https://github.com/jirihnidek/rhsm-dbus-examples/blob/main/register-org-username-password-force.sh
37bd012 to
744bac3
Compare
|
This seems good now at a quick glance; also |
c223ab1 to
7802812
Compare
7802812 to
040a854
Compare
|
BTW: When I try to run unit tests: |
Thanks for letting me know, but I'm not able to reproduce the unit test errors for the main branch PR. I'm getting the dbus-related unit test errors only in the 1.28 backport PR. Edit: I've added the additional unit test for checking registration with activation keys if the system is already registered. |
Card ID: ENT-5350 BZ: https://bugzilla.redhat.com/show_bug.cgi?id=2121350 - Implemented missing behavior of the "force" option in Dbus API by unregistering the system if already registered and re-registering the system. - Added unit tests to check registration with force option and registration when already registered.
040a854 to
60470eb
Compare
jirihnidek
left a comment
There was a problem hiding this comment.
LGTM, Thanks for updates.
Testing
This implementation can be tested in either Python or CLI by sending a register command with the "force" option enabled to the rhsm dbus python binding as seen below:
Testing with a shell script
Testing with a python script