Beispiel #1
0
 def test_get_capabilities(self):
     cap = VnxBlockStorDriver.get_capabilities(context)
     self.assertIsNotNone(cap.get('resource_metrics'))
     self.assertIsNotNone(cap.get('resource_metrics').get('controller'))
     self.assertIsNotNone(cap.get('resource_metrics').get('volume'))
     self.assertIsNotNone(cap.get('resource_metrics').get('port'))
     self.assertIsNotNone(cap.get('resource_metrics').get('disk'))
Beispiel #2
0
 def test_init(self):
     NaviHandler.login = mock.Mock(return_value="05.33.000.5.038_test")
     vnx = VnxBlockStorDriver(**ACCESS_INFO)
     self.assertEqual(vnx.version, "05.33.000.5.038_test")
Beispiel #3
0
def create_driver():
    NaviHandler.login = mock.Mock(return_value={"05.33.000.5.038_test"})
    return VnxBlockStorDriver(**ACCESS_INFO)