def setUp(self):
     api_session = api.VMwareAPISession("test_server",
                                        "test_user",
                                        "test_password",
                                        0,
                                        None,
                                        create_session=False)
     api_session._vim = mock.MagicMock()
     self._vsphere_ops = vsphere_operations.VsphereOperations(
         api_session, 1000)
     super(VsphereOperationsTest, self).setUp()
Ejemplo n.º 2
0
 def __init__(self, conf):
     super(VsphereInspector, self).__init__(conf)
     self._ops = vsphere_operations.VsphereOperations(
         get_api_session(self.conf), 1000)