Documentation ¶
Index ¶
Constants ¶
View Source
const CreateOutput = `` /* 930-byte string literal not displayed */
View Source
const CreateRequest = `` /* 799-byte string literal not displayed */
View Source
const GetOutput = CreateOutput
View Source
const ListOutput = `` /* 1221-byte string literal not displayed */
Variables ¶
View Source
var ExpectedMappingsSlice = []federation.Mapping{MappingACME}
ExpectedMappingsSlice is the slice of mappings expected to be returned from ListOutput.
View Source
var MappingACME = federation.Mapping{ ID: "ACME", Links: map[string]interface{}{ "self": "http://example.com/identity/v3/OS-FEDERATION/mappings/ACME", }, Rules: []federation.MappingRule{ { Local: []federation.RuleLocal{ { User: &federation.RuleUser{ Name: "{0}", }, }, { Group: &federation.Group{ ID: "0cd5e9", }, }, }, Remote: []federation.RuleRemote{ { Type: "UserName", }, { Type: "orgPersonType", NotAnyOf: []string{ "Contractor", "Guest", }, }, }, }, }, }
Functions ¶
func HandleCreateMappingSuccessfully ¶
HandleCreateMappingSuccessfully creates an HTTP handler at `/mappings` on the test handler mux that tests mapping creation.
func HandleGetMappingSuccessfully ¶
HandleGetMappingSuccessfully creates an HTTP handler at `/mappings` on the test handler mux that responds with a single mapping.
func HandleListMappingsSuccessfully ¶
HandleListMappingsSuccessfully creates an HTTP handler at `/mappings` on the test handler mux that responds with a list of two mappings.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.