go-selvpcclient: github.com/selectel/go-selvpcclient/selvpcclient/resell/v2/roles/testing Index | Files

package testing

import "github.com/selectel/go-selvpcclient/selvpcclient/resell/v2/roles/testing"

Index

Package Files

fixtures.go

Constants

const TestCreateRoleResponseRaw = "" /* 138 byte string literal not displayed */

TestCreateRoleResponseRaw represents a raw response from the Create request.

const TestCreateRolesOptsRaw = "" /* 307 byte string literal not displayed */

TestCreateRolesOptsRaw represent raw options for the Create request.

const TestCreateRolesResponseRaw = "" /* 307 byte string literal not displayed */

TestCreateRolesResponseRaw represents a raw response from the Create request.

const TestListProjectResponseRaw = "" /* 449 byte string literal not displayed */

TestListProjectResponseRaw represents a raw response from ListProject requests.

const TestListResponseRaw = "" /* 448 byte string literal not displayed */

TestListResponseRaw represents a raw response from List requests.

const TestListResponseSingleRaw = "" /* 167 byte string literal not displayed */

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

const TestListUserResponseRaw = "" /* 447 byte string literal not displayed */

TestListUserResponseRaw represents a raw response from ListUser requests.

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

TestManyRolesInvalidResponseRaw represents a raw invalid response with several roles.

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

TestSingleRoleInvalidResponseRaw represents a raw invalid response with a single role.

Variables

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

TestCreateRoleResponse represents the unmarshalled TestCreateRoleResponseRaw response.

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

TestCreateRolesOpts represent options for the Create request.

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

TestListResponseSingle represents the unmarshalled TestListResponseSingleRaw response.

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

TestRoleOpt represent options for the Create and Delete requests.

Package testing imports 1 packages (graph). Updated 2019-02-19. Refresh now. Tools for package owners.