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

package testing

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

Index

Package Files

fixtures.go

Constants

const TestCreateFloatingIPOptsRaw = "" /* 187 byte string literal not displayed */

TestCreateFloatingIPOptsRaw represents marshalled options for the Create request.

const TestCreateFloatingIPResponseRaw = "" /* 535 byte string literal not displayed */

TestCreateFloatingIPResponseRaw represents a raw response from the Create request.

const TestGetFloatingIPResponseRaw = "" /* 586 byte string literal not displayed */

TestGetFloatingIPResponseRaw represents a raw response from the Get request.

const TestListFloatingIPsResponseRaw = "" /* 790 byte string literal not displayed */

TestListFloatingIPsResponseRaw represents a raw response from the List request.

const TestListFloatingIPsSingleResponseRaw = "" /* 286 byte string literal not displayed */

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

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

TestManyFloatingIPsInvalidResponseRaw represents a raw invalid response with several floating ips.

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

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

Variables

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

TestCreateFloatingIPOpts represent options for the Create request.

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.

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.

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.

Package testing imports 3 packages (graph). Updated 2018-10-20. Refresh now. Tools for package owners.