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 ¶
HandleAllocationCreationSuccessfully sets up the test server to respond to a allocation creation request with a given response.
func HandleAllocationDeletionSuccessfully ¶
HandleAllocationDeletionSuccessfully sets up the test server to respond to a allocation deletion request.
func HandleAllocationListSuccessfully ¶
HandleAllocationListSuccessfully sets up the test server to respond to a allocation List request.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.