mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-01-22 22:03:58 +03:00
uitests: Test raw diskimage default via keyfile
Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
parent
6a88f92fd0
commit
6f8b9c13a7
2
tests/uitests/data/keyfile/rawdefault.ini
Normal file
2
tests/uitests/data/keyfile/rawdefault.ini
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
[org/virt-manager/virt-manager/new-vm]
|
||||||
|
storage-format='raw'
|
@ -553,10 +553,21 @@ def testAddHWMisc1(app):
|
|||||||
"""
|
"""
|
||||||
Add some simple devices
|
Add some simple devices
|
||||||
"""
|
"""
|
||||||
details = _open_app(app, "test-clone-simple")
|
details = _open_app(app, "test-clone-simple",
|
||||||
|
keyfile="rawdefault.ini")
|
||||||
|
|
||||||
|
# Disk, verify that raw will fully allocate by default
|
||||||
addhw = _open_addhw(app, details)
|
addhw = _open_addhw(app, details)
|
||||||
|
tab = _select_hw(addhw, "Storage", "storage-tab")
|
||||||
|
# Size too big
|
||||||
|
tab.find("GiB", "spin button").set_text("200000")
|
||||||
|
_finish(addhw, check=None)
|
||||||
|
app.click_alert_button("not enough free space", "Close")
|
||||||
|
tab.find("GiB", "spin button").set_text("1.5")
|
||||||
|
_finish(addhw, check=details)
|
||||||
|
|
||||||
# Add input
|
# Add input
|
||||||
|
addhw = _open_addhw(app, details)
|
||||||
tab = _select_hw(addhw, "Input", "input-tab")
|
tab = _select_hw(addhw, "Input", "input-tab")
|
||||||
tab.combo_select("Type:", "EvTouch")
|
tab.combo_select("Type:", "EvTouch")
|
||||||
_finish(addhw, check=details)
|
_finish(addhw, check=details)
|
||||||
|
@ -616,6 +616,7 @@ def testNewVMAArch64UEFI(app):
|
|||||||
newvm.find("media-entry").set_text("/dev/default-pool/testvol1.img")
|
newvm.find("media-entry").set_text("/dev/default-pool/testvol1.img")
|
||||||
_forward(newvm)
|
_forward(newvm)
|
||||||
_forward(newvm)
|
_forward(newvm)
|
||||||
|
# Disable storage, this triggers a livecd code path in createvm.py
|
||||||
newvm.find_fuzzy("Enable storage", "check box").click()
|
newvm.find_fuzzy("Enable storage", "check box").click()
|
||||||
_forward(newvm)
|
_forward(newvm)
|
||||||
newvm.find_fuzzy("Finish", "button").click()
|
newvm.find_fuzzy("Finish", "button").click()
|
||||||
@ -767,6 +768,7 @@ def testNewVMCustomizeMisc(app):
|
|||||||
"""
|
"""
|
||||||
Some specific customize logic paths
|
Some specific customize logic paths
|
||||||
"""
|
"""
|
||||||
|
app.open(keyfile="rawdefault.ini")
|
||||||
newvm = _open_newvm(app)
|
newvm = _open_newvm(app)
|
||||||
newvm.find_fuzzy("Manual", "radio").click()
|
newvm.find_fuzzy("Manual", "radio").click()
|
||||||
_forward(newvm)
|
_forward(newvm)
|
||||||
@ -774,6 +776,14 @@ def testNewVMCustomizeMisc(app):
|
|||||||
newvm.find("oslist-popover").find_fuzzy("generic").click()
|
newvm.find("oslist-popover").find_fuzzy("generic").click()
|
||||||
_forward(newvm)
|
_forward(newvm)
|
||||||
_forward(newvm)
|
_forward(newvm)
|
||||||
|
|
||||||
|
# Raw default will be non-sparse, should trigger size error
|
||||||
|
sizetext = newvm.find(None, "spin button", "GiB")
|
||||||
|
sizetext.set_text("10000000")
|
||||||
|
_forward(newvm, check=False)
|
||||||
|
app.click_alert_button("Storage parameter error", "OK")
|
||||||
|
sizetext.set_text("1")
|
||||||
|
|
||||||
_forward(newvm)
|
_forward(newvm)
|
||||||
|
|
||||||
newvm.find_fuzzy("Customize", "check").click()
|
newvm.find_fuzzy("Customize", "check").click()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user