testing

package
v0.28.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 6, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const CreateRequest = `
{
  "tenant_id": "6238dee2fec940a6bf31e49e9faf995a"
}
`

CreateRequest provides the input to a Create request.

View Source
const CreateResponse = `` /* 405-byte string literal not displayed */
View Source
const GetOutput = `` /* 405-byte string literal not displayed */

GetOutput provides a Get result.

View Source
const ListOutput = `` /* 995-byte string literal not displayed */

ListOutput provides a single page of EC2Credential results.

Variables

View Source
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",
	},
}

ExpectedEC2CredentialsSlice is the slice of application credentials expected to be returned from ListOutput.

View Source
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

func HandleCreateEC2CredentialSuccessfully(t *testing.T)

HandleCreateEC2CredentialSuccessfully creates an HTTP handler at `/users` on the test handler mux that tests application credential creation.

func HandleDeleteEC2CredentialSuccessfully

func HandleDeleteEC2CredentialSuccessfully(t *testing.T)

HandleDeleteEC2CredentialSuccessfully creates an HTTP handler at `/users` on the test handler mux that tests application credential deletion.

func HandleGetEC2CredentialSuccessfully

func HandleGetEC2CredentialSuccessfully(t *testing.T)

HandleGetEC2CredentialSuccessfully creates an HTTP handler at `/users` on the test handler mux that responds with a single application credential.

func HandleListEC2CredentialsSuccessfully

func HandleListEC2CredentialsSuccessfully(t *testing.T)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL