testing

package
v1.0.17 Latest Latest
Warning

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

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

Documentation

Overview

flavors unit tests

Index

Constants

View Source
const ExtraSpecsGetBody = `
{
    "extra_specs" : {
        "hw:cpu_policy": "CPU-POLICY",
        "hw:cpu_thread_policy": "CPU-THREAD-POLICY"
    }
}
`

ExtraSpecsGetBody provides a GET result of the extra_specs for a flavor

View Source
const GetExtraSpecBody = `
{
    "hw:cpu_policy": "CPU-POLICY"
}
`

GetExtraSpecBody provides a GET result of a particular extra_spec for a flavor

View Source
const UpdatedExtraSpecBody = `
{
    "hw:cpu_policy": "CPU-POLICY-2"
}
`

UpdatedExtraSpecBody provides an PUT result of a particular updated extra_spec for a flavor

Variables

View Source
var ExtraSpec = map[string]string{
	"hw:cpu_policy": "CPU-POLICY",
}

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

View Source
var ExtraSpecs = map[string]string{
	"hw:cpu_policy":        "CPU-POLICY",
	"hw:cpu_thread_policy": "CPU-THREAD-POLICY",
}

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

View Source
var UpdatedExtraSpec = map[string]string{
	"hw:cpu_policy": "CPU-POLICY-2",
}

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

Functions

func HandleExtraSpecDeleteSuccessfully

func HandleExtraSpecDeleteSuccessfully(t *testing.T)

func HandleExtraSpecGetSuccessfully

func HandleExtraSpecGetSuccessfully(t *testing.T)

func HandleExtraSpecUpdateSuccessfully

func HandleExtraSpecUpdateSuccessfully(t *testing.T)

func HandleExtraSpecsCreateSuccessfully

func HandleExtraSpecsCreateSuccessfully(t *testing.T)

func HandleExtraSpecsListSuccessfully

func HandleExtraSpecsListSuccessfully(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