testing

package
v0.26.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: 7 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

Index

Constants

View Source
const AllocationListBody = `` /* 1567-byte string literal not displayed */
View Source
const SingleAllocationBody = `` /* 611-byte string literal not displayed */

Variables

View Source
var (
	Allocation1 = allocations.Allocation{
		UUID:           "5344a3e2-978a-444e-990a-cbf47c62ef88",
		CandidateNodes: []string{"344a3e2-978a-444e-990a-cbf47c62ef88"},
		Name:           "allocation-1",
		State:          "allocating",
		ResourceClass:  "baremetal",
		Traits:         []string{"foo"},
		Extra:          map[string]string{},
		CreatedAt:      createdAt,
		Links:          []interface{}{map[string]interface{}{"href": "http://127.0.0.1:6385/v1/allocations/5344a3e2-978a-444e-990a-cbf47c62ef88", "rel": "self"}, map[string]interface{}{"href": "http://127.0.0.1:6385/allocations/5344a3e2-978a-444e-990a-cbf47c62ef88", "rel": "bookmark"}},
	}
)

Functions

func HandleAllocationCreationSuccessfully

func HandleAllocationCreationSuccessfully(t *testing.T, response string)

HandleAllocationCreationSuccessfully sets up the test server to respond to a allocation creation request with a given response.

func HandleAllocationDeletionSuccessfully

func HandleAllocationDeletionSuccessfully(t *testing.T)

HandleAllocationDeletionSuccessfully sets up the test server to respond to a allocation deletion request.

func HandleAllocationGetSuccessfully

func HandleAllocationGetSuccessfully(t *testing.T)

func HandleAllocationListSuccessfully

func HandleAllocationListSuccessfully(t *testing.T)

HandleAllocationListSuccessfully sets up the test server to respond to a allocation List request.

Types

This section is empty.

Jump to

Keyboard shortcuts

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