mirror of
https://github.com/virt-manager/virt-manager.git
synced 2024-12-24 21:34:47 +03:00
48e32b429d
The copyright headers in every file were chjanged in this previous commit
commit b6dcee8eb7
Author: Cole Robinson <crobinso@redhat.com>
Date: Tue Mar 20 15:00:02 2018 -0400
Use consistent and minimal license header for every file
Where before this they said "
"either version 2 of the License, or (at your option) any later version."
Now they just say
"GNU GPLv2"
This fixes it to say "GNU GPLv2 or later" again.
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
39 lines
1.4 KiB
Python
39 lines
1.4 KiB
Python
# This work is licensed under the GNU GPLv2 or later.
|
|
# See the COPYING file in the top-level directory.
|
|
|
|
from tests.uitests import utils as uiutils
|
|
|
|
|
|
class VMMMigrate(uiutils.UITestCase):
|
|
"""
|
|
UI tests for the migrate dialog
|
|
"""
|
|
|
|
##############
|
|
# Test cases #
|
|
##############
|
|
|
|
def testMigrate(self):
|
|
# Add an additional connection
|
|
self.app.root.find("File", "menu").click()
|
|
self.app.root.find("Add Connection...", "menu item").click()
|
|
win = self.app.root.find_fuzzy("Add Connection", "dialog")
|
|
win.find_fuzzy("Hypervisor", "combo box").click()
|
|
win.find_fuzzy("Custom URI", "menu item").click()
|
|
win.find("uri-entry", "text").text = "test:///default"
|
|
win.find("Connect", "push button").click()
|
|
|
|
uiutils.check_in_loop(lambda: win.showing is False)
|
|
c = self.app.root.find("test-many-devices", "table cell")
|
|
c.click(button=3)
|
|
self.app.root.find("Migrate...", "menu item").click()
|
|
|
|
mig = self.app.root.find("Migrate the virtual machine", "frame")
|
|
mig.find("Advanced", "toggle button").click_expander()
|
|
mig.find("Migrate", "push button").click()
|
|
alert = self.app.root.find("vmm dialog", "alert")
|
|
alert.find_fuzzy("the connection driver: virDomainMigrate")
|
|
alert.find("Close", "push button").click()
|
|
mig.find("Cancel", "push button").click()
|
|
uiutils.check_in_loop(lambda: not mig.showing)
|