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

package testing

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

Index

Package Files

fixtures.go

Constants

const TestGetAllQuotasResponseRaw = "" /* 533 byte string literal not displayed */

TestGetAllQuotasResponseRaw represents a raw response from the GetAll request.

const TestGetAllQuotasResponseSingleRaw = "" /* 189 byte string literal not displayed */

TestGetAllQuotasResponseSingleRaw represents a raw response with a single quota from the GetAll request.

const TestGetFreeQuotasResponseRaw = "" /* 594 byte string literal not displayed */

TestGetFreeQuotasResponseRaw represents a raw response from the GetFree request.

const TestGetFreeQuotasResponseSingleRaw = "" /* 189 byte string literal not displayed */

TestGetFreeQuotasResponseSingleRaw represents a raw response with a single quota from the GetFree request.

const TestGetProjectQuotasResponseRaw = "" /* 264 byte string literal not displayed */

TestGetProjectQuotasResponseRaw represents a raw response from the GetProject request.

const TestGetProjectQuotasResponseSingleRaw = "" /* 190 byte string literal not displayed */

TestGetProjectQuotasResponseSingleRaw represents a raw response with a single quota from the GetProject request.

const TestGetProjectsQuotasResponseRaw = "" /* 1153 byte string literal not displayed */

TestGetProjectsQuotasResponseRaw represents a raw response from the GetProjectsQuotas request.

const TestGetProjectsQuotasResponseSingleRaw = "" /* 273 byte string literal not displayed */

TestGetProjectsQuotasResponseSingleRaw represents a raw response with a single quota from the GetProjectsQuotas request.

const TestQuotasInvalidResponseRaw = "" /* 180 byte string literal not displayed */

TestQuotasInvalidResponseRaw represents a raw invalid quotas response.

const TestUpdateProjectQuotasResponseRaw = "" /* 190 byte string literal not displayed */

TestUpdateProjectQuotasResponseRaw represents a raw response from the UpdateProjectQuotas request.

const TestUpdateProjectQuotasResponseRawNilLocationParams = "" /* 185 byte string literal not displayed */

TestUpdateProjectQuotasResponseRawNilLocationParams represents a raw response from the UpdateProjectQuotas request with "null" in region and zone.

const TestUpdateQuotasOptsRaw = "" /* 190 byte string literal not displayed */

TestUpdateQuotasOptsRaw represents unmarshalled options for the UpdateProjectQuotas request.

const TestUpdateQuotasOptsRawNilLocationParams = "" /* 185 byte string literal not displayed */

TestUpdateQuotasOptsNilLocationParamsRaw represents unmarshalled options for the UpdateProjectQuotas request with "null" in region and zone.

Variables

var TestGetAllQuotasResponseSingle = []*quotas.Quota{
    {
        Name: "compute_cores",
        ResourceQuotasEntities: []quotas.ResourceQuotaEntity{
            {
                Region: "ru-1",
                Zone:   "ru-1b",
                Value:  20,
            },
        },
    },
}

TestGetAllQuotasResponseSingle represents the unmarshalled TestGetAllQuotasResponseSingleRaw response.

var TestGetFreeQuotasResponseSingle = []*quotas.Quota{
    {
        Name: "compute_cores",
        ResourceQuotasEntities: []quotas.ResourceQuotaEntity{
            {
                Region: "ru-2",
                Zone:   "ru-2a",
                Value:  40,
            },
        },
    },
}

TestGetFreeQuotasResponseSingle represents the unmarshalled TestGetFreeQuotasResponseSingleRaw response.

var TestGetProjectQuotasResponseSingle = []*quotas.Quota{
    {
        Name: "compute_ram",
        ResourceQuotasEntities: []quotas.ResourceQuotaEntity{
            {
                Region: "ru-3",
                Zone:   "ru-3a",
                Value:  51200,
            },
        },
    },
}

TestGetProjectQuotasResponseSingle represents the unmarshalled TestGetProjectQuotasResponseSingleRaw response.

var TestGetProjectsQuotasResponseSingle = []*quotas.ProjectQuota{
    {
        ID: "c83243b3c18a4d109a5f0fe45336af85",
        ProjectQuotas: []quotas.Quota{
            {
                Name: "compute_cores",
                ResourceQuotasEntities: []quotas.ResourceQuotaEntity{
                    {
                        Region: "ru-2",
                        Zone:   "ru-2a",
                        Value:  40,
                    },
                },
            },
        },
    },
}

TestGetProjectsQuotasResponseSingle represents the unmarshalled TestProjectsQuotasResponseRaw response.

var TestUpdateProjectQuotasResponse = []*quotas.Quota{
    {
        Name: "compute_ram",
        ResourceQuotasEntities: []quotas.ResourceQuotaEntity{
            {
                Region: "ru-2",
                Zone:   "ru-2a",
                Value:  64000,
            },
        },
    },
}

TestUpdateProjectQuotasResponse represents the unmarshalled TestUpdateProjectQuotasResponseRaw response.

var TestUpdateProjectQuotasResponseNilLocationParams = []*quotas.Quota{
    {
        Name: "compute_ram",
        ResourceQuotasEntities: []quotas.ResourceQuotaEntity{
            {
                Value: 64000,
            },
        },
    },
}

TestUpdateProjectQuotasResponseNilLocationParams represents the unmarshalled TestUpdateProjectQuotasResponseRaw response with "null" in region and zone.

var TestUpdateQuotasInvalidOpts = quotas.UpdateProjectQuotasOpts{
    QuotasOpts: []quotas.QuotaOpts{},
}

TestUpdateQuotasInvalidOpts represents update opts without quotas.

var TestUpdateQuotasOpts = quotas.UpdateProjectQuotasOpts{
    QuotasOpts: []quotas.QuotaOpts{
        {
            Name: "compute_ram",
            ResourceQuotasOpts: []quotas.ResourceQuotaOpts{
                {
                    Region: &ramQuotaRegion,
                    Zone:   &ramQuotaZone,
                    Value:  &ramQuotaValue,
                },
            },
        },
    },
}

TestUpdateQuotasOpts represents options for the UpdateProjectQuotas request.

var TestUpdateQuotasOptsNilLocationParams = quotas.UpdateProjectQuotasOpts{
    QuotasOpts: []quotas.QuotaOpts{
        {
            Name: "compute_ram",
            ResourceQuotasOpts: []quotas.ResourceQuotaOpts{
                {
                    Value: &ramQuotaValue,
                },
            },
        },
    },
}

TestUpdateQuotasOptsNilLocationParams represents options for the UpdateProjectQuotas request with "null" in region and zone.

Package testing imports 1 packages (graph). Updated 2020-08-08. Refresh now. Tools for package owners.