예제 #1
0
 def test_get_vnc_port(self):
     fake_vms = self._create_fake_vms()
     self.flags(vnc_port=5900, group='vmware')
     self.flags(vnc_port_total=10000, group='vmware')
     actual = vm_util.get_vnc_port(
         fake.FakeObjectRetrievalSession(fake_vms))
     self.assertEqual(actual, 5910)
예제 #2
0
 def test_get_vnc_port(self):
     fake_vms = self._create_fake_vms()
     self.flags(vnc_port=5900, group='vmware')
     self.flags(vnc_port_total=10000, group='vmware')
     actual = vm_util.get_vnc_port(
         fake.FakeObjectRetrievalSession(fake_vms))
     self.assertEqual(actual, 5910)
예제 #3
0
파일: test_vm_util.py 프로젝트: juigil/nova
 def test_get_vnc_port(self):
     fake_vms = self._create_fake_vms()
     self.flags(vnc_port=5900, group="vmware")
     self.flags(vnc_port_total=10000, group="vmware")
     actual = vm_util.get_vnc_port(fake_session(fake_vms))
     self.assertEqual(actual, 5910)