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

Documentation

Index

Constants

View Source
const TestCreateVRRPSubnetsOptsRaw = `` /* 246-byte string literal not displayed */

TestCreateVRRPSubnetsOptsRaw represents marshalled options for the Create request.

View Source
const TestCreateVRRPSubnetsResponseRaw = `` /* 761-byte string literal not displayed */

TestCreateVRRPSubnetsResponseRaw represents a raw response from the Create request.

View Source
const TestGetVRRPSubnetResponseRaw = `` /* 910-byte string literal not displayed */

TestGetVRRPSubnetResponseRaw represents a raw response from the Get request.

View Source
const TestListVRRPSubnetsResponseRaw = `` /* 1035-byte string literal not displayed */

TestListVRRPSubnetsResponseRaw represents a raw response from the List request.

View Source
const TestManyVRRPSubnetsInvalidResponseRaw = `
{
    "vrrp_subnets": [
        {
            "id": "49338ac045f448e294b25d013f890317"
        }
    ]
}
`

TestManyVRRPSubnetsInvalidResponseRaw represents a raw invalid response with several VRRP subnets.

View Source
const TestSingleVRRPSubnetInvalidResponseRaw = `
{
    "vrrp_subnet": {
        "id": "49338ac045f448e294b25d013f890317"
    }
}
`

TestSingleVRRPSubnetInvalidResponseRaw represents a raw invalid response with a single VRRP subnet.

Variables

View Source
var TestCreateVRRPSubnetsOpts = vrrpsubnets.VRRPSubnetOpts{
	VRRPSubnets: []vrrpsubnets.VRRPSubnetOpt{
		{
			Quantity: 1,
			Regions: vrrpsubnets.VRRPRegionOpt{
				Master: "ru-2",
				Slave:  "ru-1",
			},
			Type:         selvpcclient.IPv4,
			PrefixLength: 29,
		},
	},
}

TestCreateVRRPSubnetsOpts represents options for the Create request.

View Source
var TestCreateVRRPSubnetsResponse = []*vrrpsubnets.VRRPSubnet{
	{
		ID:           186,
		Status:       "ACTIVE",
		CIDR:         "203.0.113.0/24",
		ProjectID:    "49338ac045f448e294b25d013f890317",
		MasterRegion: "ru-2",
		SlaveRegion:  "ru-1",
		Subnets: []subnets.Subnet{
			{
				Region:    "ru-1",
				NetworkID: "8233f12e-c47e-4f1c-953a-1ecd322a7119",
				SubnetID:  "94425a6e-19cd-412d-9710-ff40b34a78f4",
			},
			{
				Region:    "ru-2",
				NetworkID: "e53c5abe-8b64-4a49-83f2-a51949d9294e",
				SubnetID:  "649231cc-a17f-4c6b-8bf3-51a8871104c5",
			},
		},
	},
}

TestCreateVRRPSubnetsResponse represents an unmarshalled TestCreateVRRPSubnetsResponseRaw.

View Source
var TestGetVRRPSubnetResponse = &vrrpsubnets.VRRPSubnet{
	ID:     186,
	Status: "ACTIVE",
	Servers: []servers.Server{
		{
			ID:      "253b680c-89f6-4c85-afbf-c9a67c92d3fe",
			Name:    "Node02",
			Status:  "ACTIVE",
			Updated: vrrpSubnetServerTimeStamp,
		},
	},
	MasterRegion: "ru-2",
	SlaveRegion:  "ru-1",
	CIDR:         "203.0.113.0/24",
	Subnets: []subnets.Subnet{
		{
			Region:    "ru-1",
			NetworkID: "8233f12e-c47e-4f1c-953a-1ecd322a7119",
			SubnetID:  "94425a6e-19cd-412d-9710-ff40b34a78f4",
		},
		{
			Region:    "ru-2",
			NetworkID: "e53c5abe-8b64-4a49-83f2-a51949d9294e",
			SubnetID:  "649231cc-a17f-4c6b-8bf3-51a8871104c5",
		},
	},
	ProjectID: "49338ac045f448e294b25d013f890317",
}

TestGetVRRPSubnetResponse represents an unmarshalled TestGetSubnetResponseRaw.

View Source
var TestListVRRPSubnetsResponse = []*vrrpsubnets.VRRPSubnet{
	{
		ID:     186,
		Status: "ACTIVE",
		Servers: []servers.Server{
			{
				ID:      "253b680c-89f6-4c85-afbf-c9a67c92d3fe",
				Name:    "Node02",
				Status:  "ACTIVE",
				Updated: vrrpSubnetServerTimeStamp,
			},
		},
		CIDR:         "203.0.113.0/24",
		ProjectID:    "49338ac045f448e294b25d013f890317",
		MasterRegion: "ru-2",
		SlaveRegion:  "ru-1",
		Subnets: []subnets.Subnet{
			{
				Region:    "ru-1",
				NetworkID: "8233f12e-c47e-4f1c-953a-1ecd322a7119",
				SubnetID:  "94425a6e-19cd-412d-9710-ff40b34a78f4",
			},
			{
				Region:    "ru-2",
				NetworkID: "e53c5abe-8b64-4a49-83f2-a51949d9294e",
				SubnetID:  "649231cc-a17f-4c6b-8bf3-51a8871104c5",
			},
		},
	},
}

TestListVRRPSubnetsResponse represents an unmarshalled TestListVRRPSubnetsResponseRaw.

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