-
Notifications
You must be signed in to change notification settings - Fork 9
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
Improve CLI functionality and CLI tests #30
Improve CLI functionality and CLI tests #30
Conversation
c97cc7b
to
3aa142f
Compare
Sample output of simple and detailed inventory display (using mocked data):
|
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.
Great progress! Some minor suggestions
tests/test_manifester.py
Outdated
@@ -97,7 +111,7 @@ def post(self, *args, **kwargs): | |||
self.access_token = "this is a simulated access token" | |||
return self | |||
if args[0].endswith("allocations"): | |||
self.uuid = "1234567890" | |||
self.uuid = f"{SUB_ALLOCATION_UUID}" |
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.
same string conversion comment
3aa142f
to
668d3b8
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.
No obvious issues seen, nice job!
This PR is another step in the manifester inventory/CLI improvement effort. It adds functionality to and testing for the CLI with the goal of making Manifester useful for interactive users in addition to its current primary usecase in automated workflows. Requires SatelliteQE#29, so starting this in draft status.
This commit adds a 'manifester delete' command and makes various changes to support its implementation. Notably, it adds a `minimal_init` option to Manifester's `__init__` method to allow instantiating Manifester objects with a subset of the attributes required for a full Manifester run. This change does require some modifications to the structure of the settings file, which I will push in a subsequent commit. This commit also uses the `minimal_init` option to add a CLI option to sync the inventory from RHSM, implements some changes suggested in review, and makes several other small tweaks.
d095df5
to
d6e6423
Compare
This PR is another step in the manifester inventory/CLI improvement effort. It adds functionality to and testing for the CLI with the goal of making Manifester useful for interactive users in addition to its current primary usecase in automated workflows.