testing

package
v1.1.18 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

bootfromvolume unit tests

Index

Constants

View Source
const ExpectedExistingVolumeRequest = `` /* 277-byte string literal not displayed */
View Source
const ExpectedImageAndExistingVolumeRequest = `` /* 466-byte string literal not displayed */
View Source
const ExpectedImageAndNewVolumeRequest = `` /* 495-byte string literal not displayed */
View Source
const ExpectedImageRequest = `` /* 296-byte string literal not displayed */
View Source
const ExpectedMultiEphemeralRequest = `` /* 646-byte string literal not displayed */
View Source
const ExpectedNewVolumeRequest = `` /* 299-byte string literal not displayed */
View Source
const ExpectedNewVolumeTypeRequest = `` /* 325-byte string literal not displayed */

Variables

View Source
var BaseCreateOpts = servers.CreateOpts{
	Name:      "createdserver",
	FlavorRef: "performance1-1",
}
View Source
var BaseCreateOptsWithImageRef = servers.CreateOpts{
	Name:      "createdserver",
	FlavorRef: "performance1-1",
	ImageRef:  "asdfasdfasdf",
}
View Source
var ExistingVolumeRequest = bootfromvolume.CreateOptsExt{
	CreateOptsBuilder: BaseCreateOpts,
	BlockDevice: []bootfromvolume.BlockDevice{
		{
			UUID:                "123456",
			SourceType:          bootfromvolume.SourceVolume,
			DestinationType:     bootfromvolume.DestinationVolume,
			DeleteOnTermination: true,
		},
	},
}
View Source
var ImageAndExistingVolumeRequest = bootfromvolume.CreateOptsExt{
	CreateOptsBuilder: BaseCreateOptsWithImageRef,
	BlockDevice: []bootfromvolume.BlockDevice{
		{
			BootIndex:           0,
			DeleteOnTermination: true,
			DestinationType:     bootfromvolume.DestinationLocal,
			SourceType:          bootfromvolume.SourceImage,
			UUID:                "asdfasdfasdf",
		},
		{
			BootIndex:           1,
			DeleteOnTermination: true,
			DestinationType:     bootfromvolume.DestinationVolume,
			SourceType:          bootfromvolume.SourceVolume,
			UUID:                "123456",
			VolumeSize:          1,
		},
	},
}
View Source
var ImageAndNewVolumeRequest = bootfromvolume.CreateOptsExt{
	CreateOptsBuilder: BaseCreateOptsWithImageRef,
	BlockDevice: []bootfromvolume.BlockDevice{
		{
			BootIndex:           0,
			DeleteOnTermination: true,
			DestinationType:     bootfromvolume.DestinationLocal,
			SourceType:          bootfromvolume.SourceImage,
			UUID:                "asdfasdfasdf",
		},
		{
			BootIndex:           1,
			DeleteOnTermination: true,
			DestinationType:     bootfromvolume.DestinationVolume,
			SourceType:          bootfromvolume.SourceBlank,
			VolumeSize:          1,
			DeviceType:          "disk",
			DiskBus:             "scsi",
		},
	},
}
View Source
var ImageRequest = bootfromvolume.CreateOptsExt{
	CreateOptsBuilder: BaseCreateOptsWithImageRef,
	BlockDevice: []bootfromvolume.BlockDevice{
		{
			BootIndex:           0,
			DeleteOnTermination: true,
			DestinationType:     bootfromvolume.DestinationLocal,
			SourceType:          bootfromvolume.SourceImage,
			UUID:                "asdfasdfasdf",
		},
	},
}
View Source
var MultiEphemeralRequest = bootfromvolume.CreateOptsExt{
	CreateOptsBuilder: BaseCreateOptsWithImageRef,
	BlockDevice: []bootfromvolume.BlockDevice{
		{
			BootIndex:           0,
			DeleteOnTermination: true,
			DestinationType:     bootfromvolume.DestinationLocal,
			SourceType:          bootfromvolume.SourceImage,
			UUID:                "asdfasdfasdf",
		},
		{
			BootIndex:           -1,
			DeleteOnTermination: true,
			DestinationType:     bootfromvolume.DestinationLocal,
			GuestFormat:         "ext4",
			SourceType:          bootfromvolume.SourceBlank,
			VolumeSize:          1,
		},
		{
			BootIndex:           -1,
			DeleteOnTermination: true,
			DestinationType:     bootfromvolume.DestinationLocal,
			GuestFormat:         "ext4",
			SourceType:          bootfromvolume.SourceBlank,
			VolumeSize:          1,
		},
	},
}
View Source
var NewVolumeRequest = bootfromvolume.CreateOptsExt{
	CreateOptsBuilder: BaseCreateOpts,
	BlockDevice: []bootfromvolume.BlockDevice{
		{
			UUID:                "123456",
			SourceType:          bootfromvolume.SourceImage,
			DestinationType:     bootfromvolume.DestinationVolume,
			VolumeSize:          10,
			DeleteOnTermination: true,
		},
	},
}
View Source
var NewVolumeTypeRequest = bootfromvolume.CreateOptsExt{
	CreateOptsBuilder: BaseCreateOpts,
	BlockDevice: []bootfromvolume.BlockDevice{
		{
			UUID:                "123456",
			SourceType:          bootfromvolume.SourceImage,
			DestinationType:     bootfromvolume.DestinationVolume,
			VolumeSize:          10,
			DeleteOnTermination: true,
			VolumeType:          "ssd",
		},
	},
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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