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: 2 Imported by: 0

Documentation

Index

Constants

View Source
const TestCreateProjectAutoQuotasOptsRaw = `
{
    "project": {
        "name": "Project2",
        "auto_quotas": true
    }
}
`

TestCreateProjectAutoQuotasOptsRaw represents marshalled options for the Create request with auto_quotas parameter.

View Source
const TestCreateProjectAutoQuotasResponseRaw = `` /* 423-byte string literal not displayed */

TestCreateProjectAutoQuotasResponseRaw represents a raw response from the Create request with auto_quotas parameter.

View Source
const TestCreateProjectNoQuotasOptsRaw = `
{
    "project": {
        "name": "Project2",
        "auto_quotas": false
    }
}
`

TestCreateProjectNoQuotasOptsRaw represents a raw request body without quotas.

View Source
const TestCreateProjectOptsRaw = `` /* 303-byte string literal not displayed */

TestCreateProjectOptsRaw represents marshalled options for the Create request.

View Source
const TestCreateProjectResponseRaw = `` /* 173-byte string literal not displayed */

TestCreateProjectResponseRaw represents a raw response from the Create request.

View Source
const TestGetProjectResponseRaw = `` /* 973-byte string literal not displayed */

TestGetProjectResponseRaw represents a raw response from the Get request.

View Source
const TestGetProjectResponseSingleQuotaRaw = `` /* 538-byte string literal not displayed */

TestGetProjectResponseSingleQuotaRaw represents a raw response with a single quota from the Get request.

View Source
const TestListProjectsResponseRaw = `` /* 456-byte string literal not displayed */

TestListProjectsResponseRaw represents a raw response from the List request.

View Source
const TestListProjectsResponseSingleRaw = `` /* 242-byte string literal not displayed */

TestListProjectsResponseSingleRaw represents a raw response with a single project from the List request.

View Source
const TestManyProjectsInvalidResponseRaw = `
{
    "projects": [
        {
            "id": 12
        }
    ]
}
`

TestManyProjectsInvalidResponseRaw represents a raw invalid response with many projects.

View Source
const TestSingleProjectInvalidResponseRaw = `
{
    "project": {
        "id": 12
    }
}
`

TestSingleProjectInvalidResponseRaw represents a raw invalid response with a single project.

View Source
const TestUpdateProjectOptsRaw = `
{
    "project": {
        "name": "Project3",
        "theme": {
            "color": "#581845"
        }
    }
}
`

TestUpdateProjectOptsRaw represents marshalled options for the Update request.

View Source
const TestUpdateProjectResponseRaw = `` /* 284-byte string literal not displayed */

TestUpdateProjectResponseRaw represents a raw response from the Update request.

Variables

View Source
var TestCreateProjectAutoQuotasOpts = projects.CreateOpts{
	Name:       "Project2",
	AutoQuotas: true,
}

TestCreateProjectAutoQuotasOpts represent options for the Create request with auto_quotas parameter.

View Source
var TestCreateProjectAutoQuotasResponse = &projects.Project{
	ID:      "9c97bdc75295493096cf5edcb8c37933",
	Name:    "Project2",
	URL:     "https://yyyyyy.selvpc.ru",
	Enabled: true,
	Quotas: []quotas.Quota{
		{
			Name: "compute_cores",
			ResourceQuotasEntities: []quotas.ResourceQuotaEntity{
				{
					Region: "ru-1",
					Zone:   "ru-1b",
					Value:  10,
					Used:   2,
				},
			},
		},
	},
}

TestCreateProjectAutoQuotasResponse represents the unmarshalled TestCreateProjectAutoQuotasResponseRaw response.

View Source
var TestCreateProjectNoQuotasOpts = projects.CreateOpts{
	Name: "Project2",
}

TestCreateProjectNoQuotasOpts represents project create options without quotas.

View Source
var TestCreateProjectOpts = projects.CreateOpts{
	Name: "Project2",
	Quotas: []quotas.QuotaOpts{
		{
			Name: "image_gigabytes",
			ResourceQuotasOpts: []quotas.ResourceQuotaOpts{
				{
					Region: &regionValue,
					Value:  &imageGigabytesValue,
				},
			},
		},
	},
}

TestCreateProjectOpts represent options for the Create request.

View Source
var TestCreateProjectResponse = &projects.Project{
	ID:      "9c97bdc75295493096cf5edcb8c37933",
	Name:    "Project2",
	URL:     "https://yyyyyy.selvpc.ru",
	Enabled: true,
}

TestCreateProjectResponse represents the unmarshalled TestCreateProjectResponseRaw response.

View Source
var TestGetProjectSingleQuotaResponse = &projects.Project{
	ID:        "49338ac045f448e294b25d013f890317",
	Name:      "Project1",
	URL:       "https://xxxxxx.selvpc.ru",
	Enabled:   true,
	CustomURL: "",
	Theme: projects.Theme{
		Color: "#581845",
		Logo:  "",
	},
	Quotas: []quotas.Quota{
		{
			Name: "compute_cores",
			ResourceQuotasEntities: []quotas.ResourceQuotaEntity{
				{
					Region: "ru-1",
					Zone:   "ru-1b",
					Value:  10,
					Used:   2,
				},
			},
		},
	},
}

TestGetProjectSingleQuotaResponse represents the unmarshalled TestGetProjectResponseSingleQuotaRaw response.

View Source
var TestListProjectsSingleResponse = []*projects.Project{
	{
		ID:        "49338ac045f448e294b25d013f890317",
		Name:      "Project1",
		URL:       "https://xxxxxx.selvpc.ru",
		Enabled:   true,
		CustomURL: "",
	},
}

TestListProjectsSingleResponse represents the unmarshalled TestListProjectsResponseSingleRaw response.

View Source
var TestUpdateProjectOpts = projects.UpdateOpts{
	Name: "Project3",
	Theme: &projects.ThemeUpdateOpts{
		Color: &color,
	},
}

TestUpdateProjectOpts represent options for the Update request.

View Source
var TestUpdateProjectResponse = &projects.Project{
	ID:        "f9ede488e5f14bac8962d8c53d0af9f4",
	Name:      "Project3",
	URL:       "https://zzzzzz.selvpc.ru",
	Enabled:   true,
	CustomURL: "",
	Theme: projects.Theme{
		Color: "#581845",
		Logo:  "",
	},
}

TestUpdateProjectResponse represents the unmarshalled TestUpdateProjectResponseRaw response.

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