testing

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

volume_types

Index

Constants

View Source
const ExtraSpecsGetBody = `
{
    "extra_specs" : {
        "capabilities": "gpu",
        "volume_backend_name": "ssd"
    }
}
`

ExtraSpecsGetBody provides a GET result of the extra_specs for a volume type

View Source
const GetExtraSpecBody = `
{
    "capabilities": "gpu"
}
`

GetExtraSpecBody provides a GET result of a particular extra_spec for a volume type

View Source
const UpdatedExtraSpecBody = `
{
    "capabilities": "gpu-2"
}
`

UpdatedExtraSpecBody provides an PUT result of a particular updated extra_spec for a volume type

Variables

View Source
var ExtraSpec = map[string]string{
	"capabilities": "gpu",
}

ExtraSpec is the expected extra_spec returned from GET on a volume type's extra_specs

View Source
var ExtraSpecs = map[string]string{
	"capabilities":        "gpu",
	"volume_backend_name": "ssd",
}

ExtraSpecs is the expected extra_specs returned from GET on a volume type's extra_specs

View Source
var UpdatedExtraSpec = map[string]string{
	"capabilities": "gpu-2",
}

UpdatedExtraSpec is the expected extra_spec returned from PUT on a volume type's extra_specs

Functions

func HandleExtraSpecDeleteSuccessfully added in v0.17.0

func HandleExtraSpecDeleteSuccessfully(t *testing.T)

func HandleExtraSpecGetSuccessfully added in v0.17.0

func HandleExtraSpecGetSuccessfully(t *testing.T)

func HandleExtraSpecUpdateSuccessfully added in v0.17.0

func HandleExtraSpecUpdateSuccessfully(t *testing.T)

func HandleExtraSpecsCreateSuccessfully added in v0.17.0

func HandleExtraSpecsCreateSuccessfully(t *testing.T)

func HandleExtraSpecsListSuccessfully added in v0.17.0

func HandleExtraSpecsListSuccessfully(t *testing.T)

func MockCreateResponse

func MockCreateResponse(t *testing.T)

func MockDeleteResponse

func MockDeleteResponse(t *testing.T)

func MockGetResponse

func MockGetResponse(t *testing.T)

func MockListResponse

func MockListResponse(t *testing.T)

func MockUpdateResponse

func MockUpdateResponse(t *testing.T)

Types

This section is empty.

Jump to

Keyboard shortcuts

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