Cinder model integration
This patch adds Cinder model integration. Change-Id: I31d5bc5e2bbed885d074d66bf7999d42cec15f10 Implements: blueprint cinder-model-integration
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
# limitations under the License.
|
||||
|
||||
from watcher.common import service_manager
|
||||
from watcher.decision_engine.model.notification import cinder as cnotification
|
||||
from watcher.decision_engine.model.notification import nova as novanotification
|
||||
from watcher.tests.decision_engine.model import faker_cluster_state
|
||||
|
||||
@@ -65,3 +66,20 @@ class FakeManager(service_manager.ServiceManager):
|
||||
novanotification.LegacyLiveMigratedEnd(self.fake_cdmc),
|
||||
novanotification.LegacyInstanceDeletedEnd(self.fake_cdmc),
|
||||
]
|
||||
|
||||
|
||||
class FakeStorageManager(FakeManager):
|
||||
|
||||
fake_cdmc = faker_cluster_state.FakerStorageModelCollector()
|
||||
|
||||
@property
|
||||
def notification_endpoints(self):
|
||||
return [
|
||||
cnotification.CapacityNotificationEndpoint(self.fake_cdmc),
|
||||
cnotification.VolumeCreateEnd(self.fake_cdmc),
|
||||
cnotification.VolumeUpdateEnd(self.fake_cdmc),
|
||||
cnotification.VolumeDeleteEnd(self.fake_cdmc),
|
||||
cnotification.VolumeAttachEnd(self.fake_cdmc),
|
||||
cnotification.VolumeDetachEnd(self.fake_cdmc),
|
||||
cnotification.VolumeResizeEnd(self.fake_cdmc),
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user