-
Notifications
You must be signed in to change notification settings - Fork 83
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 for registration command packages #1225
Fix for registration command packages #1225
Conversation
Can one of the admins verify this patch? |
@@ -6792,7 +6792,7 @@ def __init__(self, server_config=None, **kwargs): | |||
'jwt_expiration': entity_fields.IntegerField(default=4), | |||
'repo': entity_fields.StringField(default=''), | |||
'repo_gpg_key_url': entity_fields.URLField(default=''), | |||
'packages': entity_fields.ListField(default=[]), | |||
'packages': entity_fields.StringField(), |
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.
@dosas Good catch, this field should only be a string field, but robottelo uses it as a list field only, will you be opening a PR for that too?
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.
Shouldn't some tests be failing if packages was passed?
I cannot find any usage of packages in robottelo tests.
RegistrationCommand
is called by api_register
: https://github.com/search?q=repo%3ASatelliteQE%2Frobottelo%20api_register&type=code
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.
ping @Gauravtalreja1
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.
ah, right, we've no registration tests for api's to check if packages works
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.
Created PR to cover this in robottelo test - SatelliteQE/robottelo#16914
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.
ACK, PRT passed on SatelliteQE/robottelo#16914
it is a space separated string not a list https://apidocs.theforeman.org/foreman/latest/apidoc/v2/registration_commands/create.html
84fe64d
to
c97d94b
Compare
@Gauravtalreja1 Thank you for the review and the testing. Do you know anybody from your team who could supply the second approval? |
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.
Ack
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.
Ack
it is a space separated string not a list https://apidocs.theforeman.org/foreman/latest/apidoc/v2/registration_commands/create.html (cherry picked from commit 4f7c162)
it is a space separated string not a list https://apidocs.theforeman.org/foreman/latest/apidoc/v2/registration_commands/create.html (cherry picked from commit 4f7c162)
it is a space separated string not a list https://apidocs.theforeman.org/foreman/latest/apidoc/v2/registration_commands/create.html (cherry picked from commit 4f7c162)
it is a space separated string not a list https://apidocs.theforeman.org/foreman/latest/apidoc/v2/registration_commands/create.html (cherry picked from commit 4f7c162)
it is a space separated string not a list https://apidocs.theforeman.org/foreman/latest/apidoc/v2/registration_commands/create.html (cherry picked from commit 4f7c162) Co-authored-by: dosas <dosas@users.noreply.github.com>
it is a space separated string not a list https://apidocs.theforeman.org/foreman/latest/apidoc/v2/registration_commands/create.html (cherry picked from commit 4f7c162) Co-authored-by: dosas <dosas@users.noreply.github.com>
it is a space separated string not a list https://apidocs.theforeman.org/foreman/latest/apidoc/v2/registration_commands/create.html (cherry picked from commit 4f7c162) Co-authored-by: dosas <dosas@users.noreply.github.com>
it is a space separated string not a list https://apidocs.theforeman.org/foreman/latest/apidoc/v2/registration_commands/create.html (cherry picked from commit 4f7c162) Co-authored-by: dosas <dosas@users.noreply.github.com>
it is a space separated string not a list
https://apidocs.theforeman.org/foreman/latest/apidoc/v2/registration_commands/create.html