Documentation ¶
Index ¶
Constants ¶
const CreateRequest = `` /* 234-byte string literal not displayed */
CreateRequest provides the input to a Create request.
const GetOutput = `` /* 464-byte string literal not displayed */
GetOutput provides a Get result.
const ListOutput = `` /* 1168-byte string literal not displayed */
ListOutput provides a single page of Credential results.
const UpdateOutput = `` /* 464-byte string literal not displayed */
UpdateOutput provides an update result.
const UpdateRequest = `` /* 234-byte string literal not displayed */
UpdateRequest provides the input to as Update request.
Variables ¶
var Credential = credentials.Credential{ ID: credentialID, ProjectID: projectID, Type: "ec2", UserID: userID, Blob: "{\"access\":\"181920\",\"secret\":\"secretKey\"}", Links: map[string]interface{}{ "self": "http://identity/v3/credentials/3d3367228f9c7665266604462ec60029bcd83ad89614021a80b2eb879c572510", }, }
var ExpectedCredentialsSlice = []credentials.Credential{FirstCredential, SecondCredential}
ExpectedCredentialsSlice is the slice of credentials expected to be returned from ListOutput.
var FirstCredential = credentials.Credential{ ID: credentialID, ProjectID: projectID, Type: "ec2", UserID: userID, Blob: "{\"access\":\"181920\",\"secret\":\"secretKey\"}", Links: map[string]interface{}{ "self": "http://identity/v3/credentials/3d3367228f9c7665266604462ec60029bcd83ad89614021a80b2eb879c572510", }, }
var SecondCredential = credentials.Credential{ ID: "2441494e52ab6d594a34d74586075cb299489bdd1e9389e3ab06467a4f460609", ProjectID: "1a1d14690f3c4ec5bf5f321c5fde3c16", Type: "ec2", UserID: "6f556708d04b4ea6bc72d7df2296b71a", Blob: "{\"access\":\"7da79ff0aa364e1396f067e352b9b79a\",\"secret\":\"7a18d68ba8834b799d396f3ff6f1e98c\"}", Links: map[string]interface{}{ "self": "http://identity/v3/credentials/2441494e52ab6d594a34d74586075cb299489bdd1e9389e3ab06467a4f460609", }, }
var SecondCredentialUpdated = credentials.Credential{ ID: "2441494e52ab6d594a34d74586075cb299489bdd1e9389e3ab06467a4f460609", ProjectID: projectID, Type: "ec2", UserID: userID, Blob: "{\"access\":\"181920\",\"secret\":\"secretKey\"}", Links: map[string]interface{}{ "self": "http://identity/v3/credentials/2441494e52ab6d594a34d74586075cb299489bdd1e9389e3ab06467a4f460609", }, }
SecondCredentialUpdated is how SecondCredential should look after an Update.
Functions ¶
func HandleCreateCredentialSuccessfully ¶
HandleCreateCredentialSuccessfully creates an HTTP handler at `/credentials` on the test handler mux that tests credential creation.
func HandleDeleteCredentialSuccessfully ¶
HandleDeleteCredentialSuccessfully creates an HTTP handler at `/credentials` on the test handler mux that tests credential deletion.
func HandleGetCredentialSuccessfully ¶
HandleGetCredentialSuccessfully creates an HTTP handler at `/credentials` on the test handler mux that responds with a single credential.
func HandleListCredentialsSuccessfully ¶
HandleListCredentialsSuccessfully creates an HTTP handler at `/credentials` on the test handler mux that responds with a list of two credentials.
func HandleUpdateCredentialSuccessfully ¶
HandleUpdateCredentialsSuccessfully creates an HTTP handler at `/credentials` on the test handler mux that tests credentials update.
Types ¶
This section is empty.