-
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
feat: Remove deprecated syspurpose top-level commands #3417
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.
You have to at least remove addons.py
and test_addons.py
.
@jirihnidek The AddonsCommand class in addons.py is imported as a subcommand in syspurpose.py. |
test_addons.py needs to be kept too. The command is still there, just not as a first-class command, but rather as a syspurpose command’s subcommand. The test doesn’t verify the actual CLI syntax, but rather the already invoked command. |
Or maybe not. 🤔 This line looks suspicious:
But the tests pass even though I removed the command from managercli. |
It works regardless of the argv value… 🤷🏻♂️ |
I think I found all the places where the @jirihnidek Do you think it’s ok this way? Didn’t I forget anything? |
Interesting. In test_role.py, the setUp method doesn’t contain the |
de33e4a
to
d61978d
Compare
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 seems generally good; please rebase it to fix the conflicts.
Also, if this is ready to be reviewed and merged, please un-draft/un-wip it, thanks.
The deprecated addons, role, service-level and usage commands are no longer recognized. They are now available solely as subcommands of the syspurpose command.
This will break the cockpit tests, which currently still use the old commands. This PR will need to wait until that is merged. (also, is it still "wip"?) |
Fine-tuned the pull request, so it can be reviewed and merged: |
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.
LGTM, thanks!
Removes addons, role, service-level, and usage commands. These are deprecated as top-level commands as they’ve been moved to the syspurpose command as sub-commands.
CCT-402