testing

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

ports unit tests

Index

Constants

View Source
const CreateRequest = `` /* 429-byte string literal not displayed */
View Source
const CreateResponse = `` /* 664-byte string literal not displayed */
View Source
const GetResponse = `` /* 697-byte string literal not displayed */
View Source
const ListResponse = `` /* 1352-byte string literal not displayed */
View Source
const RemoveAllowedAddressPairsRequest = `
{
	"port": {
		"allowed_address_pairs": [],
		"name": "new_port_name"
	}
  }
`
View Source
const RemoveAllowedAddressPairsResponse = `` /* 594-byte string literal not displayed */
View Source
const UpdateRequest = `` /* 650-byte string literal not displayed */
View Source
const UpdateResponse = `` /* 912-byte string literal not displayed */

Variables

View Source
var ExpectedPortSlice = []ports.Port{Port1, Port2}
View Source
var Port1 = ports.Port{
	AdminStateUp:        true,
	AllowedAddressPairs: []ports.AddressPair{},
	Description:         "DHCP Server Port",
	DeviceID:            "ab49eb24-667f-4a4e-9421-b4d915bff416",
	DeviceOwner:         "network:dhcp",
	FixedIPs: []ports.IP{{
		IPAddress: "192.168.2.2",
		SubnetID:  "ab49eb24-667f-4a4e-9421-b4d915bff416",
	}},
	ID:               "8db1ba30-be40-4943-a7be-ed5b98f053b3",
	MACAddress:       "00:00:5e:00:01:00",
	ManagedByService: false,
	Name:             "dhcp-server-port",
	NetworkID:        "8f36b88a-443f-4d97-9751-34d34af9e782",
	Status:           "ACTIVE",
	Tags:             map[string]string{},
	TenantID:         "dcb2d589c0c646d0bad45c0cf9f90cf1",
}
View Source
var Port2 = ports.Port{
	AdminStateUp: true,
	AllowedAddressPairs: []ports.AddressPair{{
		IPAddress:  "192.168.2.100",
		MACAddress: "00:00:5e:00:01:01",
	}},
	Description: "",
	DeviceID:    "",
	DeviceOwner: "",
	FixedIPs: []ports.IP{{
		IPAddress: "192.168.2.30",
		SubnetID:  "ab49eb24-667f-4a4e-9421-b4d915bff416",
	}},
	ID:               "ac57c5c9-aaf4-4ffc-b8b8-f1ef84656730",
	MACAddress:       "fa:16:3e:b0:ca:f1",
	ManagedByService: false,
	Name:             "port_12",
	NetworkID:        "8f36b88a-443f-4d97-9751-34d34af9e782",
	SegmentationID:   0,
	SegmentationType: "flat",
	Status:           "PENDING_CREATE",
	Tags:             map[string]string{},
	TenantID:         "dcb2d589c0c646d0bad45c0cf9f90cf1",
}

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