Exemplo n.º 1
0
 def setUp(self):
     super(NetAppDriverTestCase, self).setUp()
     driver = netapp.NetAppISCSIDriver()
     self.stubs.Set(httplib, 'HTTPConnection', FakeHTTPConnection)
     driver._create_client('http://localhost:8088/dfm.wsdl', 'root',
                           'password', 'localhost', 8088)
     driver._set_storage_service(self.STORAGE_SERVICE)
     self.driver = driver
Exemplo n.º 2
0
 def setUp(self):
     super(NetAppDriverTestCase, self).setUp()
     driver = netapp.NetAppISCSIDriver()
     self.stubs.Set(httplib, 'HTTPConnection', FakeHTTPConnection)
     driver._create_client(wsdl_url='http://localhost:8088/dfm.wsdl',
                           login='******',
                           password='******',
                           hostname='localhost',
                           port=8088,
                           cache=False)
     driver._set_storage_service(self.STORAGE_SERVICE)
     driver._set_storage_service_prefix(self.STORAGE_SERVICE_PREFIX)
     driver._set_vfiler('')
     self.driver = driver