testing

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

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