-
Notifications
You must be signed in to change notification settings - Fork 120
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
Integration Tests for DBus Call RegisterWithActivationKeys #3486
base: main
Are you sure you want to change the base?
Integration Tests for DBus Call RegisterWithActivationKeys #3486
Conversation
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.
Thanks for PR. Overall good, I have only two requests.
|
||
@pytest.mark.parametrize( | ||
"wrong_case", ["wrong-act-key inside", "only wrong-act-key", "wrong-org", "wrong-act-key and wrong-org"] | ||
) |
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.
I would use several test_
methods for each wrong case. This is hard to understand.
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.
It seems that it would be hard to use this approach: https://github.com/candlepin/subscription-manager/blob/main/integration-tests/test_register.py#L110, because returned error message is different for each wrong case.
@@ -42,7 +42,6 @@ EOF | |||
./integration-tests/scripts/run-local-candlepin.sh | |||
|
|||
# create testing data in local candlepin | |||
./integration-tests/scripts/post-activation-keys.sh |
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 change should not be part of this PR. It is already part of another PR.
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.
ok, I will revert this change .
Card-ID: CCT-1051
see https://www.candlepinproject.org/docs/subscription-manager/dbus_objects.html
It is a DBus Method RegisterWithActivationKeys.
This PR covers happy path and wrong path for registering with activation keys.
There can be even wrong organization in a case with activation keys.
The method should provides a useful response when something wrong was used in arguments of the method.