Documentation ¶
Index ¶
- Constants
- Variables
- func HandleCreateDomainSuccessfully(t *testing.T)
- func HandleCreateServiceSuccessfully(t *testing.T)
- func HandleListAndCreateRolesSuccessfully(t *testing.T)
- func HandleListDomainsSuccessfully(t *testing.T)
- func HandleListServicesSuccessfully(t *testing.T)
- func HandleUpdateDomainSuccessfully(t *testing.T)
- func HandleUpdateRoleSuccessfully(t *testing.T)
- func HandleUpdateServiceSuccessfully(t *testing.T)
Constants ¶
const CreateRequest = `
{
"domain": {
"name": "domain two"
}
}
`
CreateRequest provides the input to a Create request.
const CreateRoleRequest = `
{
"role": {
"name": "does_not_exist",
"description": "some description"
}
}
`
CreateRequest provides the input to a Create request.
const GetOutput = `` /* 204-byte string literal not displayed */
GetOutput provides a Get result.
const GetRoleOutput = `` /* 286-byte string literal not displayed */
GetOutput provides a Get result.
const GetServiceOutput = `` /* 350-byte string literal not displayed */
GetOutput provides a Get result.
const ListAssignmentOutput = `` /* 1086-byte string literal not displayed */
ListAssignmentOutput provides a result of ListAssignment request.
const ListEmptyRoleOutput = `
{
"roles": []
}
`
const ListOutput = `` /* 322-byte string literal not displayed */
ListOutput provides a single page of Domain results.
const ListRoleOutput = `` /* 827-byte string literal not displayed */
ListOutput provides a single page of Role results.
const ListServiceOutput = `` /* 436-byte string literal not displayed */
ListOutput provides a single page of Service results.
const UpdateOutput = `` /* 174-byte string literal not displayed */
UpdateOutput provides an update result.
const UpdateRequest = `` /* 130-byte string literal not displayed */
UpdateRequest provides the input to as Update request.
const UpdateRoleOutput = `` /* 209-byte string literal not displayed */
UpdateOutput provides an update result.
const UpdateRoleRequest = `
{
"role": {
"name": "some_role",
"description": "new description"
}
}
`
UpdateRequest provides the input to as Update request.
const UpdateServiceOutput = `` /* 148-byte string literal not displayed */
UpdateOutput provides an update result.
const UpdateServiceRequest = `
{
"service": {
"type": "compute",
"description": "Service New"
}
}
`
UpdateRequest provides the input to as Update request.
Variables ¶
var DomainUpdated = domains.Domain{ Enabled: true, ID: "9fe1d3", Name: "domain two", Description: "Staging Domain", }
SecondDomainUpdated is how SecondDomain should look after an Update.
var FirstRole = roles.Role{ DomainID: "default", ID: "2844b2a08be147a08ef58317d6471f1f", Links: map[string]interface{}{ "self": "http://example.com/identity/v3/roles/2844b2a08be147a08ef58317d6471f1f", }, Name: "admin-read-only", Extra: map[string]interface{}{}, }
FirstRole is the first role in the List request.
Functions ¶
func HandleCreateDomainSuccessfully ¶
HandleCreateDomainSuccessfully creates an HTTP handler at `/domains` on the test handler mux that tests domain creation.
func HandleCreateServiceSuccessfully ¶
HandleCreateServiceSuccessfully creates an HTTP handler at `/services` on the test handler mux that tests service creation.
func HandleListAndCreateRolesSuccessfully ¶
HandleListRolesSuccessfully creates an HTTP handler at `/roles` on the test handler mux that responds with a list of two roles.
func HandleListDomainsSuccessfully ¶
HandleListDomainsSuccessfully creates an HTTP handler at `/domains` on the test handler mux that responds with a list of two domains.
func HandleListServicesSuccessfully ¶
HandleListServicesSuccessfully creates an HTTP handler at `/services` on the test handler mux that responds with a list of two services.
func HandleUpdateDomainSuccessfully ¶
HandleUpdateDomainSuccessfully creates an HTTP handler at `/domains` on the test handler mux that tests domain update.
func HandleUpdateRoleSuccessfully ¶
HandleUpdateRoleSuccessfully creates an HTTP handler at `/roles` on the test handler mux that tests role update.
func HandleUpdateServiceSuccessfully ¶
HandleUpdateServiceSuccessfully creates an HTTP handler at `/services` on the test handler mux that tests service update.
Types ¶
This section is empty.