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 TestGetAllQuotasResponseRaw = `` /* 531-byte string literal not displayed */

TestGetAllQuotasResponseRaw represents a raw response from the GetAll request.

View Source
const TestGetAllQuotasResponseSingleRaw = `` /* 187-byte string literal not displayed */

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

View Source
const TestGetFreeQuotasResponseRaw = `` /* 592-byte string literal not displayed */

TestGetFreeQuotasResponseRaw represents a raw response from the GetFree request.

View Source
const TestGetFreeQuotasResponseSingleRaw = `` /* 187-byte string literal not displayed */

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

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

TestGetProjectQuotasResponseRaw represents a raw response from the GetProject request.

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

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

View Source
const TestGetProjectsQuotasResponseRaw = `` /* 1151-byte string literal not displayed */

TestGetProjectsQuotasResponseRaw represents a raw response from the GetProjectsQuotas request.

View Source
const TestGetProjectsQuotasResponseSingleRaw = `` /* 271-byte string literal not displayed */

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

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

TestQuotasInvalidResponseRaw represents a raw invalid quotas response.

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

TestUpdateProjectQuotasResponseRaw represents a raw response from the UpdateProjectQuotas request.

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

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

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

TestUpdateQuotasOptsRaw represents unmarshalled options for the UpdateProjectQuotas request.

View Source
const TestUpdateQuotasOptsRawNilLocationParams = `` /* 183-byte string literal not displayed */

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

Variables

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

TestGetAllQuotasResponseSingle represents the unmarshalled TestGetAllQuotasResponseSingleRaw response.

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

TestGetFreeQuotasResponseSingle represents the unmarshalled TestGetFreeQuotasResponseSingleRaw response.

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

TestGetProjectQuotasResponseSingle represents the unmarshalled TestGetProjectQuotasResponseSingleRaw response.

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

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

TestUpdateProjectQuotasResponse represents the unmarshalled TestUpdateProjectQuotasResponseRaw response.

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

TestUpdateProjectQuotasResponseNilLocationParams represents the unmarshalled TestUpdateProjectQuotasResponseRaw response with "null" in region and 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{
				{
					Region: &ramQuotaRegion,
					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 region and 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