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

Add support for namespace commands #877

Closed
andy-maier opened this issue Jan 20, 2021 · 2 comments · Fixed by #878
Closed

Add support for namespace commands #877

andy-maier opened this issue Jan 20, 2021 · 2 comments · Fixed by #878

Comments

@andy-maier
Copy link
Contributor

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-empty
  • pywbemcli namespace list
  • pywbemcli namespace interop - like server interop

TBD: What to do with the namespace-related commands in the server command group:

  • pywbemcli server namespaces
  • pywbemcli server interop
@andy-maier
Copy link
Contributor Author

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]>
@andy-maier
Copy link
Contributor Author

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
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant