Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TestMachinesDisks.testAddDiskDirPool's "transient VM" test case ommediately opened the "Add Disk" dialog after undefining the VM. This was a race condition which the test actually "won" in most cases: The `UNDEFINED` event did not yet bubble through the UI, so the "Add Disk" dialog still thought that the VM was persistent. Fix that by waiting until the UI picked up the event and considers the VM transient. This exposed a bug in the dialog's fill() function: It tried to check the value of the "Permanent" checkbox, but that doesn't exist at all for transient VMs. Fix up the logic and assert the latter for transient VMs. Now that this test is working correctly, it uncovered a bug in the code: Trying to add a disk to a transient VM fails with > Requested operation is not valid: transient domains do not have any persistent config because the `persistent` state was initialized to "true". Fix that. https://issues.redhat.com/browse/RHEL-17677
- Loading branch information