testing

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const TestGetLimitsQuotasResponseRaw = `` /* 395-byte string literal not displayed */

TestGetLimitsQuotasResponseRaw represents a raw response from the GetAll request.

View Source
const TestGetProjectQuotasResponseRaw = `` /* 228-byte string literal not displayed */

TestGetProjectQuotasResponseRaw represents a raw response from the GetProject request.

View Source
const TestGetProjectQuotasResponseSingleRaw = `` /* 154-byte string literal not displayed */

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

View Source
const TestQuotasInvalidResponseRaw = `` /* 144-byte string literal not displayed */

TestQuotasInvalidResponseRaw represents a raw invalid quotas response.

View Source
const TestUpdateProjectQuotasResponseRaw = `` /* 154-byte string literal not displayed */

TestUpdateProjectQuotasResponseRaw represents a raw response from the UpdateProjectQuotas request.

View Source
const TestUpdateProjectQuotasResponseRawNilLocationParams = `` /* 151-byte string literal not displayed */

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

View Source
const TestUpdateQuotasOptsRaw = `` /* 154-byte string literal not displayed */

TestUpdateQuotasOptsRaw represents unmarshalled options for the UpdateProjectQuotas request.

View Source
const TestUpdateQuotasOptsRawNilLocationParams = `
{
    "quotas": {
        "compute_ram": [
            {
                "value": 64000
            }
        ]
    }
}
`

TestUpdateQuotasOptsRawNilLocationParams represents unmarshalled options for the UpdateProjectQuotas request with "null" in zone.

Variables

View Source
var TestGetProjectQuotasResponseSingle = []*quotas.Quota{
	{
		Name: "compute_ram",
		ResourceQuotasEntities: []quotas.ResourceQuotaEntity{
			{
				Zone:  "ru-1a",
				Value: 51200,
			},
		},
		ResourceQuotasErrors: []quotas.ResourceError{},
	},
}

TestGetProjectQuotasResponseSingle represents the unmarshalled TestGetProjectQuotasResponseSingleRaw response.

View Source
var TestUpdateProjectQuotasResponse = []*quotas.Quota{
	{
		Name: "compute_ram",
		ResourceQuotasEntities: []quotas.ResourceQuotaEntity{
			{
				Zone:  "ru-1a",
				Value: 64000,
			},
		},
		ResourceQuotasErrors: []quotas.ResourceError{},
	},
}

TestUpdateProjectQuotasResponse represents the unmarshalled TestUpdateProjectQuotasResponseRaw response.

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

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

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

TestUpdateQuotasInvalidOpts represents update opts without quotas.

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

TestUpdateQuotasOpts represents options for the UpdateProjectQuotas request.

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

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