testing

package
v1.0.26 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 28, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CreateOutput = `` /* 567-byte string literal not displayed */
View Source
var CreateResponse = subnets.Subnet{
	ID:               "c9aba52d-ec14-40cb-930f-c8153e93c2db",
	Name:             "subnet",
	Cidr:             "192.168.20.0/24",
	DNSList:          []string{"114.114.114.114", "114.114.115.115"},
	Status:           "UNKNOWN",
	VpcID:            "ea3b0efe-0d6a-4288-8b16-753504a994b9",
	GatewayIP:        "192.168.20.1",
	DhcpEnable:       enable,
	PrimaryDNS:       "114.114.114.114",
	SecondaryDNS:     "114.114.115.115",
	AvailabilityZone: "cn-north-1a",
	NeutronNetworkID: "c9aba52d-ec14-40cb-930f-c8153e93c2db",
	NeutronSubnetID:  "c557e272-dea4-40ee-931b-36c33fb192b2",
}
View Source
var GetOutput = `` /* 566-byte string literal not displayed */
View Source
var GetResponse = subnets.Subnet{
	ID:               "c9aba52d-ec14-40cb-930f-c8153e93c2db",
	Name:             "subnet",
	Cidr:             "192.168.20.0/24",
	DNSList:          []string{"114.114.114.114", "114.114.115.115"},
	Status:           "ACTIVE",
	VpcID:            "ea3b0efe-0d6a-4288-8b16-753504a994b9",
	GatewayIP:        "192.168.20.1",
	DhcpEnable:       enable,
	PrimaryDNS:       "114.114.114.114",
	SecondaryDNS:     "114.114.115.115",
	AvailabilityZone: "cn-north-1a",
	NeutronNetworkID: "c9aba52d-ec14-40cb-930f-c8153e93c2db",
	NeutronSubnetID:  "c557e272-dea4-40ee-931b-36c33fb192b2",
}
View Source
var ListOutput = `` /* 1118-byte string literal not displayed */
View Source
var ListResponse = []subnets.Subnet{
	{
		ID:               "9a78d8b5-4f00-4de9-b0d8-1228afb27726",
		Name:             "subnet-3d95",
		Cidr:             "192.168.0.0/24",
		DNSList:          []string{"100.125.1.250", "114.114.114.114"},
		Status:           "ACTIVE",
		VpcID:            "ea3b0efe-0d6a-4288-8b16-753504a994b9",
		GatewayIP:        "192.168.0.1",
		DhcpEnable:       enable,
		PrimaryDNS:       "100.125.1.250",
		SecondaryDNS:     "114.114.114.114",
		AvailabilityZone: "cn-north-1a",
		NeutronNetworkID: "9a78d8b5-4f00-4de9-b0d8-1228afb27726",
		NeutronSubnetID:  "4d1d4f45-6375-4821-822e-44c92d12a58c",
	},
	{
		ID:               "c9aba52d-ec14-40cb-930f-c8153e93c2db",
		Name:             "subnet",
		Cidr:             "192.168.20.0/24",
		DNSList:          []string{"114.114.114.114", "114.114.115.115"},
		Status:           "ACTIVE",
		VpcID:            "ea3b0efe-0d6a-4288-8b16-753504a994b9",
		GatewayIP:        "192.168.20.1",
		DhcpEnable:       enable,
		PrimaryDNS:       "114.114.114.114",
		SecondaryDNS:     "114.114.115.115",
		AvailabilityZone: "cn-north-1a",
		NeutronNetworkID: "c9aba52d-ec14-40cb-930f-c8153e93c2db",
		NeutronSubnetID:  "c557e272-dea4-40ee-931b-36c33fb192b2",
	},
}
View Source
var UpdateOutput = `
{
  "subnet": {
    "id": "c9aba52d-ec14-40cb-930f-c8153e93c2db",
    "status": "ACTIVE"
  }
}
`
View Source
var UpdateResponse = subnets.UpdateResp{
	ID:     "c9aba52d-ec14-40cb-930f-c8153e93c2db",
	Status: "ACTIVE",
}

Functions

func HandleCreateSuccessfully

func HandleCreateSuccessfully(t *testing.T)

func HandleDeleteSuccessfully

func HandleDeleteSuccessfully(t *testing.T)

func HandleGetSuccessfully

func HandleGetSuccessfully(t *testing.T)

func HandleListSuccessfully

func HandleListSuccessfully(t *testing.T)

func HandleUpdateSuccessfully

func HandleUpdateSuccessfully(t *testing.T)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL