testing

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: May 25, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const CreateOutput = ListOutput
View Source
const CreateRequest = `` /* 514-byte string literal not displayed */
View Source
const GetOutput = `` /* 403-byte string literal not displayed */

GetOutput provides a Get result.

View Source
const ListOutput = `` /* 1085-byte string literal not displayed */

ListOutput provides a single page of List results.

View Source
const UpdateOutput = `` /* 466-byte string literal not displayed */

UpdateOutput provides an Update response.

View Source
const UpdateRequest = `` /* 144-byte string literal not displayed */

UpdateRequest provides the input to an Update request.

Variables

ExpectedRegisteredLimitsSlice is the slice of registered_limits expected to be returned from ListOutput.

View Source
var FirstRegisteredLimit = registeredlimits.RegisteredLimit{
	ResourceName: "volume",
	RegionID:     "RegionOne",
	Links: map[string]interface{}{
		"self": "http://10.3.150.25/identity/v3/registered_limits/25a04c7a065c430590881c646cdcdd58",
	},
	ServiceID:    "9408080f1970482aa0e38bc2d4ea34b7",
	ID:           "25a04c7a065c430590881c646cdcdd58",
	DefaultLimit: 11,
	Description:  "Number of volumes for service 9408080f1970482aa0e38bc2d4ea34b7",
}

FirstLimit is the first limit in the List request.

View Source
var SecondRegisteredLimit = registeredlimits.RegisteredLimit{
	ResourceName: "snapshot",
	RegionID:     "RegionOne",
	Links: map[string]interface{}{
		"self": "http://10.3.150.25/identity/v3/registered_limits/3229b3849f584faea483d6851f7aab05",
	},
	ServiceID:    "9408080f1970482aa0e38bc2d4ea34b7",
	ID:           "3229b3849f584faea483d6851f7aab05",
	DefaultLimit: 5,
}

SecondLimit is the second limit in the List request.

View Source
var UpdatedSecondRegisteredLimit = registeredlimits.RegisteredLimit{
	ResourceName: "volumes",
	RegionID:     "RegionOne",
	Links: map[string]interface{}{
		"self": "http://10.3.150.25/identity/v3/registered_limits/3229b3849f584faea483d6851f7aab05",
	},
	ServiceID:    "9408080f1970482aa0e38bc2d4ea34b7",
	ID:           "3229b3849f584faea483d6851f7aab05",
	DefaultLimit: 15,
	Description:  "Number of volumes for service 9408080f1970482aa0e38bc2d4ea34b7",
}

UpdatedSecondRegisteredLimit is a Registered Limit Fixture.

Functions

func HandleCreateRegisteredLimitSuccessfully

func HandleCreateRegisteredLimitSuccessfully(t *testing.T)

HandleCreateRegisteredLimitSuccessfully creates an HTTP handler at `/registered_limits` on the test handler mux that tests registered limit creation.

func HandleDeleteRegisteredLimitSuccessfully

func HandleDeleteRegisteredLimitSuccessfully(t *testing.T)

HandleDeleteRegisteredLimitSuccessfully creates an HTTP handler at `/registered_limits` on the test handler mux that tests registered_limit deletion.

func HandleGetRegisteredLimitSuccessfully

func HandleGetRegisteredLimitSuccessfully(t *testing.T)

HandleGetRegisteredLimitSuccessfully creates an HTTP handler at `/registered_limits` on the test handler mux that responds with a single project.

func HandleListRegisteredLimitsSuccessfully

func HandleListRegisteredLimitsSuccessfully(t *testing.T)

HandleListRegisteredLimitsSuccessfully creates an HTTP handler at `/registered_limits` on the test handler mux that responds with a list of two registered limits.

func HandleUpdateRegisteredLimitSuccessfully

func HandleUpdateRegisteredLimitSuccessfully(t *testing.T)

HandleUpdateRegisteredLimitSuccessfully creates an HTTP handler at `/registered_limits` on the test handler mux that tests registered limits updates.

Types

This section is empty.

Jump to

Keyboard shortcuts

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