Documentation ¶
Index ¶
Constants ¶
const CreateRequest = `
{
"tenant_id": "6238dee2fec940a6bf31e49e9faf995a"
}
`
CreateRequest provides the input to a Create request.
const CreateResponse = `` /* 405-byte string literal not displayed */
const GetOutput = `` /* 405-byte string literal not displayed */
GetOutput provides a Get result.
const ListOutput = `` /* 995-byte string literal not displayed */
ListOutput provides a single page of EC2Credential results.
Variables ¶
var EC2Credential = ec2credentials.Credential{ UserID: "2844b2a08be147a08ef58317d6471f1f", TenantID: "6238dee2fec940a6bf31e49e9faf995a", Access: "f741662395b249c9b8acdebf1722c5ae", Secret: "6a61eb0296034c89b49cc51dde9b40aa", TrustID: "", Links: map[string]interface{}{ "self": "http://identity:5000/v3/users/2844b2a08be147a08ef58317d6471f1f/credentials/OS-EC2/f741662395b249c9b8acdebf1722c5ae", }, }
var ExpectedEC2CredentialsSlice = []ec2credentials.Credential{EC2Credential, SecondEC2Credential}
ExpectedEC2CredentialsSlice is the slice of application credentials expected to be returned from ListOutput.
var SecondEC2Credential = ec2credentials.Credential{ UserID: "2844b2a08be147a08ef58317d6471f1f", TenantID: "6238dee2fec940a6bf31e49e9faf995a", Access: "ad6fc85fc2df49e6b5c23d5b5bdff980", Secret: "eb233f680a204097ac329ebe8dba6d32", TrustID: "", Links: map[string]interface{}{ "self": "http://identity:5000/v3/users/2844b2a08be147a08ef58317d6471f1f/credentials/OS-EC2/ad6fc85fc2df49e6b5c23d5b5bdff980", }, }
Functions ¶
func HandleCreateEC2CredentialSuccessfully ¶
HandleCreateEC2CredentialSuccessfully creates an HTTP handler at `/users` on the test handler mux that tests application credential creation.
func HandleDeleteEC2CredentialSuccessfully ¶
HandleDeleteEC2CredentialSuccessfully creates an HTTP handler at `/users` on the test handler mux that tests application credential deletion.
func HandleGetEC2CredentialSuccessfully ¶
HandleGetEC2CredentialSuccessfully creates an HTTP handler at `/users` on the test handler mux that responds with a single application credential.
func HandleListEC2CredentialsSuccessfully ¶
HandleListEC2CredentialsSuccessfully creates an HTTP handler at `/users` on the test handler mux that responds with a list of two applicationcredentials.
Types ¶
This section is empty.