Drop bay and baymodel
magnumclient drops support of bay and baymodel in [1], so we need to remove the bits here as well. [1] https://review.opendev.org/c/openstack/python-magnumclient/+/803629 Change-Id: I930c998e4034e05d49fbb5843258986f3f816f89
This commit is contained in:
parent
64fdbe5422
commit
c721eccd12
|
@ -1079,16 +1079,6 @@
|
|||
},
|
||||
"magnum": {
|
||||
"_comment": "It uses magnumclient.v1.",
|
||||
"baymodels_create": "baymodels.create",
|
||||
"baymodels_delete": "baymodels.delete",
|
||||
"baymodels_get": "baymodels.get",
|
||||
"baymodels_list": "baymodels.list",
|
||||
"baymodels_update": "baymodels.update",
|
||||
"bays_create": "bays.create",
|
||||
"bays_delete": "bays.delete",
|
||||
"bays_get": "bays.get",
|
||||
"bays_list": "bays.list",
|
||||
"bays_update": "bays.update",
|
||||
"certificates_create": "certificates.create",
|
||||
"certificates_get": "certificates.get",
|
||||
"certificates_rotate_ca": "certificates.rotate_ca",
|
||||
|
|
|
@ -49,7 +49,7 @@ MODULE_MAPPING = {
|
|||
'mistral': ['mistral.workflows_get', actions.MistralAction],
|
||||
'designate': ['designate.quotas_list', actions.DesignateAction],
|
||||
'manila': ['manila.shares_list', actions.ManilaAction],
|
||||
'magnum': ['magnum.bays_list', actions.MagnumAction],
|
||||
'magnum': ['magnum.mservices_list', actions.MagnumAction],
|
||||
'murano': ['murano.deployments_list', actions.MuranoAction],
|
||||
'tacker': ['tacker.list_vims', actions.TackerAction],
|
||||
'senlin': ['senlin.get_profile', actions.SenlinAction],
|
||||
|
|
|
@ -254,19 +254,6 @@ class OpenStackActionTest(base.BaseTestCase):
|
|||
self.assertTrue(mocked().domain.get.called)
|
||||
mocked().domain.get.assert_called_once_with(domain="example.com")
|
||||
|
||||
@mock.patch.object(actions.MagnumAction, '_get_client')
|
||||
def test_magnum_action(self, mocked):
|
||||
mock_ctx = mock.Mock()
|
||||
method_name = "baymodels.get"
|
||||
action_class = actions.MagnumAction
|
||||
action_class.client_method_name = method_name
|
||||
params = {'id': '1234-abcd'}
|
||||
action = action_class(**params)
|
||||
action.run(mock_ctx)
|
||||
|
||||
self.assertTrue(mocked().baymodels.get.called)
|
||||
mocked().baymodels.get.assert_called_once_with(id="1234-abcd")
|
||||
|
||||
@mock.patch.object(actions.MuranoAction, '_get_client')
|
||||
def test_murano_action(self, mocked):
|
||||
mock_ctx = mock.Mock()
|
||||
|
|
Loading…
Reference in New Issue