-
Notifications
You must be signed in to change notification settings - Fork 1
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
Added namespace command group #878
Conversation
2a1358e
to
ffdf06f
Compare
8aa061e
to
b48579c
Compare
b48579c
to
8b31174
Compare
8b31174
to
24ecff4
Compare
I think this one is OK. Tested as far as I could against OpenPegasus. I want to run another test against pegasus in a docker image since there I can test create and delete of namespaces. Will try to do that tonight. Note that most of the existing test scripts now fail any namespace command and return the Model error because they do not have an interop namespace but that is a separate issue. I make some minor comments. |
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 am generally comfortable with this one after playing with it and reviewing. Made some editorial comments and marked test needed since I would like to run create/delete test against OpenPegasus in a container.
Tested a variety of the commands against docker image of OpenPegasus with no problems including creating, populating the namespace and deleting the namespace. COMMENTS on testing against new namespace commands.
DISCUSSION: We should consider the following:
HOWEVER, This are for future discussion and the code passed the review and tests that it is built for today. |
On the discussion items:
|
24ecff4
to
0c01fbe
Compare
At this point, there is only the comment open on explaining the use of CIM object terms without the "CIM" term. |
0c01fbe
to
2506dc6
Compare
Details: * Added a 'namespace' command group that allows liting, creating and deleting CIM namespaces, and showing the Interop namespace. The 'server namespaces' and 'server interop' commands that provide a subset of that functionality have been deprecated. (issue #877) * Deprecated the 'server namespaces' and 'server interop' commands. Use the new commands 'namespace list' and 'namespace interop', respectively. (issue #877) * Added a MOF file simple_interop_mock_model.mof that sets up the Interop namespace with a minimal model for namespace creation and deletion via pywbem.WBEMServer.create_namespace() and delete_namespace() (i.e. just the CIM_Namespace and CIM_ObjectManager classes), and a user namespace with the simple mock model. * Added a mock script simple_interop_mock_script.py that loads the simple_interop_mock_model.mof model and registers the pywbem-provided namespace provider. It can be used as a standalone mock file that creates a minimal but functioning Interop namespace that allows operating on namespaces. * Added unit testcases in test_namespace_cmds.py that use either the simple interop model when verifying that namespace operations can work, or the simple (non-interop) model for verifying that the missing interop namespace causes the commands to fail. Signed-off-by: Andreas Maier <[email protected]>
2506dc6
to
09c782b
Compare
Ready for review and test.
Now uses pywbem from master again.