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 ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.