Skip to content

Conversation

rushikeshjadhav
Copy link
Contributor

@rushikeshjadhav rushikeshjadhav commented Jul 8, 2025

Incorporating image-format fixture into following SR types for storage tests

  • ext
  • lvm
  • xfs
  • zfs
  • largeblock
  • zfsvol

Nambrok and others added 15 commits June 30, 2025 14:26
Add a vdi-type parameter to parametrize the vdi_type fixture,
it default to vhd at the moment, will be used to run test on other vdi
type, e.g. qcow2.

The tests create a VDI, connect it to Dom0 then use the tapdev to write
random data somewhere in it.
It then compare the data of the VDI to the original data we have to see
if it has changed.
The test create snapshot/clone before deleting them and waiting for the
coalesce to have happened by observing sm-config:vhd-parent before
checking the integrity of the data.

Signed-off-by: Damien Thenot <[email protected]>
Adapt waiting for coalesce to fail with a timeout if coalesce doesn't
happen using wait_for.

Signed-off-by: Damien Thenot <[email protected]>
vdi.py: add getting the image_format if available
sr.py: add choosing a image_format on vdi creation
sr.py add get_type to get the type of the SR

Signed-off-by: Damien Thenot <[email protected]>
Add a fixture `shared_sr` to get a shared SR
Also modify local_sr_* function to log the SR type

Signed-off-by: Damien Thenot <[email protected]>
Now use `SR.create_vdi` to create a VDI with the chosen image_format

Signed-off-by: Damien Thenot <[email protected]>
Signed-off-by: Damien Thenot <[email protected]>
Add a list of vdis object to a VM
Add get_dom0_vm in host.py
Add function to connect/disconnect a VDI from a VM

Signed-off-by: Damien Thenot <[email protected]>
It will allow to re-use in other tests

Signed-off-by: Damien Thenot <[email protected]>
Signed-off-by: Damien Thenot <[email protected]>
…te_script scp

Using the same path for both source and destination may cause scp to fail,
especially when the source path (e.g. a temp path on macOS) does not exist
on the remote system. Thus, resorting to use `/tmp/` and random name from
`sctipt.name` on destination.

Signed-off-by: Rushikesh Jadhav <[email protected]>
@rushikeshjadhav rushikeshjadhav marked this pull request as draft July 8, 2025 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants