testing

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const TestCreateRoleResponseRaw = `` /* 136-byte string literal not displayed */

TestCreateRoleResponseRaw represents a raw response from the Create request.

View Source
const TestCreateRolesOptsRaw = `` /* 305-byte string literal not displayed */

TestCreateRolesOptsRaw represent raw options for the Create request.

View Source
const TestCreateRolesResponseRaw = `` /* 305-byte string literal not displayed */

TestCreateRolesResponseRaw represents a raw response from the Create request.

View Source
const TestListProjectResponseRaw = `` /* 447-byte string literal not displayed */

TestListProjectResponseRaw represents a raw response from ListProject requests.

View Source
const TestListResponseRaw = `` /* 446-byte string literal not displayed */

TestListResponseRaw represents a raw response from List requests.

View Source
const TestListResponseSingleRaw = `` /* 165-byte string literal not displayed */

TestListResponseSingleRaw represents a raw response with a single role from List requests.

View Source
const TestListUserResponseRaw = `` /* 445-byte string literal not displayed */

TestListUserResponseRaw represents a raw response from ListUser requests.

View Source
const TestManyRolesInvalidResponseRaw = `
{
    "roles": [
        {
            "project_id": 123
        }
    ]
}
`

TestManyRolesInvalidResponseRaw represents a raw invalid response with several roles.

View Source
const TestSingleRoleInvalidResponseRaw = `
{
    "role": {
        "project_id": 123
    }
}
`

TestSingleRoleInvalidResponseRaw represents a raw invalid response with a single role.

Variables

View Source
var TestCreateRoleResponse = &roles.Role{
	ProjectID: "49338ac045f448e294b25d013f890317",
	UserID:    "763eecfaeb0c8e9b76ab12a82eb4c11",
}

TestCreateRoleResponse represents the unmarshalled TestCreateRoleResponseRaw response.

View Source
var TestCreateRolesOpts = roles.RoleOpts{
	Roles: []roles.RoleOpt{
		{
			ProjectID: "81800a8ec3fc49fca2cf00857de3ae9d",
			UserID:    "763eecfaeb0c8e9b76ab12a82eb4c11",
		},
		{
			ProjectID: "d7452adc9769422a908edfd2281d7c55",
			UserID:    "763eecfaeb0c8e9b76ab12a82eb4c11",
		},
	},
}

TestCreateRolesOpts represent options for the Create request.

View Source
var TestListResponseSingle = []*roles.Role{
	{
		ProjectID: "49338ac045f448e294b25d013f890317",
		UserID:    "763eecfaeb0c8e9b76ab12a82eb4c11",
	},
}

TestListResponseSingle represents the unmarshalled TestListResponseSingleRaw response.

View Source
var TestRoleOpt = roles.RoleOpt{
	ProjectID: "49338ac045f448e294b25d013f890317",
	UserID:    "763eecfaeb0c8e9b76ab12a82eb4c11",
}

TestRoleOpt represent options for the Create and Delete requests.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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