-
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
Add support for namespace commands #877
Comments
DISCUSSION:
|
andy-maier
added a commit
that referenced
this issue
Jan 23, 2021
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 testcases. Signed-off-by: Andreas Maier <[email protected]>
We discussed this and the direction is that the pywbem mock environment is enhanced so it can provide a pre-existing Interop namespace like a real WBEM server needs to do. pywbem PR pywbem/pywbem#2581 does that. Pywbemtools automatically pulls in the master branch for now, so once that PR is merged pywbemcli should have what it needs. |
andy-maier
added a commit
that referenced
this issue
Jan 23, 2021
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]>
andy-maier
added a commit
that referenced
this issue
Jan 23, 2021
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]>
andy-maier
added a commit
that referenced
this issue
Jan 23, 2021
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]>
andy-maier
added a commit
that referenced
this issue
Jan 23, 2021
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]>
andy-maier
added a commit
that referenced
this issue
Jan 23, 2021
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]>
andy-maier
added a commit
that referenced
this issue
Jan 23, 2021
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]>
andy-maier
added a commit
that referenced
this issue
Jan 23, 2021
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]>
andy-maier
added a commit
that referenced
this issue
Jan 23, 2021
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]>
andy-maier
added a commit
that referenced
this issue
Jan 23, 2021
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]>
andy-maier
added a commit
that referenced
this issue
Jan 25, 2021
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]>
andy-maier
added a commit
that referenced
this issue
Jan 31, 2021
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]>
andy-maier
added a commit
that referenced
this issue
Feb 2, 2021
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]>
andy-maier
added a commit
that referenced
this issue
Feb 2, 2021
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]>
andy-maier
added a commit
that referenced
this issue
Feb 2, 2021
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]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Initial proposal:
Add a
namespace
command group:pywbemcli namespace create NAMESPACE
- reject if it already exists. Can also be used to create an interop namespace, which is implied from the name.pywbemcli namespace delete NAMESPACE
- reject if non-emptypywbemcli namespace list
pywbemcli namespace interop
- likeserver interop
TBD: What to do with the namespace-related commands in the
server
command group:pywbemcli server namespaces
pywbemcli server interop
The text was updated successfully, but these errors were encountered: