def test_device_type(self): self.tearDown() self.conn = connect(ADDR_SVC, username='******', password='******') self.assertTrue(self.conn) self.assertRaisesEx(uc.IncorrectDeviceTypeError, connect, ADDR_SVC, username='******', password="******", device_type='storwize')
def test_set_specification(self): self.tearDown() self.conn = connect(ADDR_SVC, username='******', password='******') self.assertTrue(list(self.conn.svcinfo.lscluster())) self.assertTrue(list(self.conn.svcinfo.lsuser())) self.assertTrue(list(self.conn.svcinfo.lsmdiskgrp())) expect_ = list(self.conn.svcinfo.lsmdiskgrp()) self.assertTrue(expect_[0].name) self.assertTrue(expect_[0].capacity)
def setUp(self): self.ssh_transport_patcher = mock.patch( r'pysvc.unified.tests.' r'test_unified_client.client.SSHTransport') self.ssh_transport_patcher.start() self.set_specification_patcher = mock.patch( r'pysvc.unified.tests.test_unified_client.client.' r'set_specification') self.set_specification_patcher.start() self.check_device_type_patcher = mock.patch( r'pysvc.unified.tests.test_unified_client.client.' r'check_device_type') self.check_device_type_patcher.start() self.conn = connect(r'test address', username=r'admin', password=r'password')
def setUp(self): self.conn = connect(ADDR_SVC, username='******', password='******')