tests

package
v1.60.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 22, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateImageIoDefaultInventory added in v1.41.0

func CreateImageIoDefaultInventory(f *framework.Framework)

CreateImageIoDefaultInventory resets ImageIO inventory to the defaults, and adds a response for the base /ovirt-engine/api URL.

func CreateImageIoInventory added in v1.43.0

func CreateImageIoInventory(f *framework.Framework, responseSequences []imageIoMockResponseSequence)

CreateImageIoInventory encodes a sequence of mock responses for fakeovirt to return during the test.

func CreateImageIoInventoryNoExtents added in v1.43.0

func CreateImageIoInventoryNoExtents(f *framework.Framework)

CreateImageIoInventoryNoExtents creates fakeovirt response sequences for an image transfer that does not support the extents API. The default response configuration does return "extents" in the features list, so the existing test already tests the extents feature. Unfortunately it's the response from imageiotest's transfer URL that matters, and imageiotest does not support fakeovirt's response sequences, so the extents feature cannot be easily turned off. Work around this by creating an image transfer that points to the fakeovirt URL, and set it up to return a small amount of data with no extents.

func CreateImageIoWarmImportInventory added in v1.39.0

func CreateImageIoWarmImportInventory(f *framework.Framework, diskID string, storageDomainID string, snapshots []string)

CreateImageIoWarmImportInventory constructs ImageIO inventory updates for a multi-stage import

func ResetImageIoInventory added in v1.39.0

func ResetImageIoInventory(f *framework.Framework, configurators ...string)

ResetImageIoInventory resets the fakeovirt inventory to the defaults. Accepts a list of configurators (see fakeovirt documentation): static-sso, static-vms, static-namespace, static-transfers

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL