testing

package
v1.0.17 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

subnets unit tests

Index

Constants

View Source
const SubnetCreateRequest = `` /* 438-byte string literal not displayed */
View Source
const SubnetCreateResult = `` /* 558-byte string literal not displayed */
View Source
const SubnetCreateWithDefaultGatewayRequest = `` /* 295-byte string literal not displayed */
View Source
const SubnetCreateWithDefaultGatewayResponse = `` /* 519-byte string literal not displayed */
View Source
const SubnetCreateWithIPv6RaAddressModeRequest = `` /* 268-byte string literal not displayed */
View Source
const SubnetCreateWithIPv6RaAddressModeResponse = `` /* 486-byte string literal not displayed */
View Source
const SubnetCreateWithNoGatewayRequest = `` /* 323-byte string literal not displayed */
View Source
const SubnetCreateWithNoGatewayResponse = `` /* 510-byte string literal not displayed */
View Source
const SubnetGetResult = `` /* 554-byte string literal not displayed */
View Source
const SubnetListResult = `` /* 1869-byte string literal not displayed */
View Source
const SubnetUpdateAllocationPoolRequest = `` /* 201-byte string literal not displayed */
View Source
const SubnetUpdateAllocationPoolResponse = `` /* 551-byte string literal not displayed */
View Source
const SubnetUpdateGatewayRequest = `
{
    "subnet": {
        "name": "my_new_subnet",
        "gateway_ip": "10.0.0.1"
    }
}
`
View Source
const SubnetUpdateGatewayResponse = `` /* 551-byte string literal not displayed */
View Source
const SubnetUpdateRemoveGatewayRequest = `
{
    "subnet": {
        "name": "my_new_subnet",
        "gateway_ip": null
    }
}
`
View Source
const SubnetUpdateRemoveGatewayResponse = `` /* 545-byte string literal not displayed */
View Source
const SubnetUpdateRequest = `` /* 157-byte string literal not displayed */
View Source
const SubnetUpdateResponse = `` /* 551-byte string literal not displayed */

Variables

View Source
var Subnet1 = subnets.Subnet{
	Name:           "private-subnet",
	EnableDHCP:     true,
	NetworkID:      "db193ab3-96e3-4cb3-8fc5-05f4296d0324",
	TenantID:       "26a7980765d0414dbc1fc1f88cdb7e6e",
	DNSNameservers: []string{},
	AllocationPools: []subnets.AllocationPool{
		{
			Start: "10.0.0.2",
			End:   "10.0.0.254",
		},
	},
	HostRoutes: []subnets.HostRoute{},
	IPVersion:  4,
	GatewayIP:  "10.0.0.1",
	CIDR:       "10.0.0.0/24",
	ID:         "08eae331-0402-425a-923c-34f7cfe39c1b",
}
View Source
var Subnet2 = subnets.Subnet{
	Name:           "my_subnet",
	EnableDHCP:     true,
	NetworkID:      "d32019d3-bc6e-4319-9c1d-6722fc136a22",
	TenantID:       "4fd44f30292945e481c7b8a0c8908869",
	DNSNameservers: []string{},
	AllocationPools: []subnets.AllocationPool{
		{
			Start: "192.0.0.2",
			End:   "192.255.255.254",
		},
	},
	HostRoutes: []subnets.HostRoute{},
	IPVersion:  4,
	GatewayIP:  "192.0.0.1",
	CIDR:       "192.0.0.0/8",
	ID:         "54d6f61d-db07-451c-9ab3-b9609b6b6f0b",
}
View Source
var Subnet3 = subnets.Subnet{
	Name:           "my_gatewayless_subnet",
	EnableDHCP:     true,
	NetworkID:      "d32019d3-bc6e-4319-9c1d-6722fc136a23",
	TenantID:       "4fd44f30292945e481c7b8a0c8908869",
	DNSNameservers: []string{},
	AllocationPools: []subnets.AllocationPool{
		{
			Start: "192.168.1.2",
			End:   "192.168.1.254",
		},
	},
	HostRoutes: []subnets.HostRoute{},
	IPVersion:  4,
	GatewayIP:  "",
	CIDR:       "192.168.1.0/24",
	ID:         "54d6f61d-db07-451c-9ab3-b9609b6b6f0c",
}

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