def test_display_net_on_a_vm_net(self, libvirt_del_net,
                                     libvirt_create_net):
        displaynetwork.create_network(NETNAME, REFID)
        libvirt_create_net.assert_called_with(NETNAME, NETNAME, REFID)

        displaynetwork.delete_network(NETNAME, REFID)
        libvirt_del_net.assert_called_with(NETNAME, REFID)
Beispiel #2
0
    def test_display_net_on_a_vm_net(
            self, libvirt_del_net, libvirt_create_net):
        displaynetwork.create_network(NETNAME, REFID)
        libvirt_create_net.assert_called_with(NETNAME, NETNAME, REFID)

        displaynetwork.delete_network(NETNAME, REFID)
        libvirt_del_net.assert_called_with(NETNAME, REFID)
Beispiel #3
0
 def teardown(self):
     display_network = self._display_network()
     if display_network is not None:
         displaynetwork.delete_network(display_network, self._vm_id)
Beispiel #4
0
 def teardown(self):
     display_network = self.specParams.get('displayNetwork')
     if display_network:
         displaynetwork.delete_network(display_network, self.vmid)
Beispiel #5
0
 def teardown(self):
     display_network = self.specParams.get('displayNetwork')
     if display_network:
         displaynetwork.delete_network(display_network, self.vmid)