testing

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: Apache-2.0 Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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