Documentation ¶
Overview ¶
trusts unit tests
Index ¶
Constants ¶
const CreateRequest = `` /* 421-byte string literal not displayed */
const CreateResponse = `` /* 713-byte string literal not displayed */
const GetResponse = `` /* 762-byte string literal not displayed */
GetOutput provides a Get result.
const ListResponse = `` /* 723-byte string literal not displayed */
ListOutput provides a single page of Role results.
Variables ¶
var ExpectedTrustsSlice = []trusts.Trust{FirstTrust, SecondTrust}
ExpectedRolesSlice is the slice of roles expected to be returned from ListOutput.
Functions ¶
func HandleCreateTokenWithTrustID ¶
func HandleCreateTokenWithTrustID(t *testing.T, options tokens.AuthOptionsBuilder, requestJSON string)
HandleCreateTokenWithTrustID verifies that providing certain AuthOptions and Scope results in an expected JSON structure.
func HandleCreateTrust ¶
HandleCreateTrust creates an HTTP handler at `/OS-TRUST/trusts` on the test handler mux that tests trust creation.
func HandleDeleteTrust ¶
HandleDeleteUserSuccessfully creates an HTTP handler at `/users` on the test handler mux that tests user deletion.
func HandleGetTrustSuccessfully ¶
HandleGetTrustSuccessfully creates an HTTP handler at `/OS-TRUST/trusts` on the test handler mux that responds with a single trusts.
func HandleListTrustsSuccessfully ¶
HandleListTrustsSuccessfully creates an HTTP handler at `/OS-TRUST/trusts` on the test handler mux that responds with a list of two trusts.
Types ¶
This section is empty.