Documentation ¶
Index ¶
Constants ¶
View Source
const GetOutput = `` /* 328-byte string literal not displayed */
GetOutput provides a Get result.
View Source
const ListOutput = `` /* 946-byte string literal not displayed */
ListOutput provides a single page of Group results.
Variables ¶
View Source
var ExpectedGroupsSlice = []groups.Group{FirstGroup, SecondGroup}
ExpectedGroupsSlice is the slice of groups expected to be returned from ListOutput.
View Source
var FirstGroup = groups.Group{ DomainID: "default", ID: "2844b2a08be147a08ef58317d6471f1f", Links: map[string]interface{}{ "self": "http://example.com/identity/v3/groups/2844b2a08be147a08ef58317d6471f1f", }, Name: "internal support", Description: "group for internal support users", Extra: map[string]interface{}{ "email": "support@localhost", }, }
FirstGroup is the first group in the List request.
View Source
var SecondGroup = groups.Group{ DomainID: "1789d1", ID: "9fe1d3", Links: map[string]interface{}{ "self": "https://example.com/identity/v3/groups/9fe1d3", }, Name: "support", Description: "group for support users", Extra: map[string]interface{}{ "email": "support@example.com", }, }
SecondGroup is the second group in the List request.
Functions ¶
func HandleGetGroupSuccessfully ¶
HandleGetGroupSuccessfully creates an HTTP handler at `/groups` on the test handler mux that responds with a single group.
func HandleListGroupsSuccessfully ¶
HandleListGroupsSuccessfully creates an HTTP handler at `/groups` on the test handler mux that responds with a list of two groups.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.