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

Documentation

Index

Constants

View Source
const TestCreateFloatingIPOptsRaw = `` /* 185-byte string literal not displayed */

TestCreateFloatingIPOptsRaw represents marshalled options for the Create request.

View Source
const TestCreateFloatingIPResponseRaw = `` /* 533-byte string literal not displayed */

TestCreateFloatingIPResponseRaw represents a raw response from the Create request.

View Source
const TestGetFloatingIPResponseRaw = `` /* 584-byte string literal not displayed */

TestGetFloatingIPResponseRaw represents a raw response from the Get request.

View Source
const TestListFloatingIPsResponseRaw = `` /* 788-byte string literal not displayed */

TestListFloatingIPsResponseRaw represents a raw response from the List request.

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

TestListFloatingIPsSingleResponseRaw represents a raw response with a single floating ip from the List request.

View Source
const TestManyFloatingIPsInvalidResponseRaw = `
{
    "floatingips": [
        {
            "id": 123
        }
    ]
}
`

TestManyFloatingIPsInvalidResponseRaw represents a raw invalid response with several floating ips.

View Source
const TestSingleFloatingIPInvalidResponseRaw = `
{
    "floatingip": {
        "id": 123
    }
}
`

TestSingleFloatingIPInvalidResponseRaw represents a raw invalid response with a single floating ip.

Variables

View Source
var TestCreateFloatingIPOpts = floatingips.FloatingIPOpts{
	FloatingIPs: []floatingips.FloatingIPOpt{
		{
			Region:   "ru-2",
			Quantity: 1,
		},
		{
			Region:   "ru-1",
			Quantity: 2,
		},
	},
}

TestCreateFloatingIPOpts represent options for the Create request.

View Source
var TestCreateFloatingIPResponse = []*floatingips.FloatingIP{
	{
		FloatingIPAddress: "203.0.113.11",
		ID:                "5232d5f3-4950-454b-bd41-78c5295622cd",
		ProjectID:         "49338ac045f448e294b25d013f890317",
		Region:            "ru-2",
		Status:            "DOWN",
	},
	{
		FloatingIPAddress: "203.0.113.12",
		ID:                "94425a6e-19cd-412d-9710-ff40b34a78f4",
		ProjectID:         "9c97bdc75295493096cf5edcb8c37933",
		Region:            "ru-1",
		Status:            "DOWN",
	},
}

TestCreateFloatingIPResponse represents the unmarshalled TestCreateFloatingIPResponseRaw response.

View Source
var TestGetFloatingIPResponse = &floatingips.FloatingIP{
	FloatingIPAddress: "203.0.113.11",
	ID:                "5232d5f3-4950-454b-bd41-78c5295622cd",
	ProjectID:         "49338ac045f448e294b25d013f890317",
	PortID:            "f7376dd2-c70f-4465-a5a8-e1a89b665d30",
	FixedIPAddress:    "10.0.0.4",
	Region:            "ru-3",
	Status:            "ACTIVE",
	Servers: []servers.Server{
		{
			ID:      "253b680c-89f6-4c85-afbf-c9a67c92d3fe",
			Name:    "Node00",
			Status:  "ACTIVE",
			Updated: floatingIPServerTimeStamp,
		},
	},
}

TestGetFloatingIPResponse represents an unmarshalled TestGetFloatingIPResponseRaw.

View Source
var TestListFloatingIPsSingleResponse = []*floatingips.FloatingIP{
	{
		FloatingIPAddress: "203.0.113.11",
		ID:                "5232d5f3-4950-454b-bd41-78c5295622cd",
		ProjectID:         "49338ac045f448e294b25d013f890317",
		Region:            "ru-2",
		Status:            "ACTIVE",
	},
}

TestListFloatingIPsSingleResponse represents the unmarshalled TestListFloatingIPsSingleResponseRaw 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