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 for registration command packages #1225

Merged

Conversation

dosas
Copy link
Collaborator

@dosas dosas commented Sep 5, 2024

@dosas dosas added CherryPick PR needs CherryPick to previous branches 6.14.z 6.15.z 6.16.z labels Sep 5, 2024
@omkarkhatavkar
Copy link

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(),
Copy link
Collaborator

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?

Copy link
Collaborator Author

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

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Copy link
Collaborator

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

Copy link
Collaborator

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

Copy link
Collaborator

@Gauravtalreja1 Gauravtalreja1 left a 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

@dosas dosas force-pushed the fix-for-registration-command-packages branch from 84fe64d to c97d94b Compare November 14, 2024 10:50
@dosas
Copy link
Collaborator Author

dosas commented Nov 14, 2024

@Gauravtalreja1 Thank you for the review and the testing. Do you know anybody from your team who could supply the second approval?

Copy link
Contributor

@shweta83 shweta83 left a comment

Choose a reason for hiding this comment

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

Ack

Copy link
Contributor

@shweta83 shweta83 left a comment

Choose a reason for hiding this comment

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

Ack

@shweta83 shweta83 merged commit 4f7c162 into SatelliteQE:master Nov 14, 2024
9 checks passed
github-actions bot pushed a commit that referenced this pull request Nov 14, 2024
github-actions bot pushed a commit that referenced this pull request Nov 14, 2024
github-actions bot pushed a commit that referenced this pull request Nov 14, 2024
github-actions bot pushed a commit that referenced this pull request Nov 14, 2024
Gauravtalreja1 pushed a commit that referenced this pull request Nov 14, 2024
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>
Gauravtalreja1 pushed a commit that referenced this pull request Nov 14, 2024
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>
Gauravtalreja1 pushed a commit that referenced this pull request Nov 14, 2024
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>
Gauravtalreja1 pushed a commit that referenced this pull request Nov 14, 2024
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.13.z 6.14.z 6.15.z 6.16.z CherryPick PR needs CherryPick to previous branches
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants