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

networks unit tests

Index

Constants

View Source
const CreateOptionalFieldsRequest = `` /* 179-byte string literal not displayed */
View Source
const CreateRequest = `
{
    "network": {
        "name": "private",
        "admin_state_up": true
    }
}`
View Source
const CreateResponse = `` /* 482-byte string literal not displayed */
View Source
const GetResponse = `` /* 535-byte string literal not displayed */
View Source
const ListResponse = `` /* 1201-byte string literal not displayed */
View Source
const UpdateRequest = `
{
    "network": {
        "name": "new_network_name",
        "admin_state_up": false,
        "shared": true
    }
}`
View Source
const UpdateResponse = `` /* 453-byte string literal not displayed */

Variables

View Source
var ExpectedNetworkSlice = []networks.Network{Network1, Network2}
View Source
var Network1 = networks.Network{
	Status:                 "ACTIVE",
	Subnets:                []string{"54d6f61d-db07-451c-9ab3-b9609b6b6f0b"},
	Name:                   "public",
	AdminStateUp:           true,
	TenantID:               "4fd44f30292945e481c7b8a0c8908869",
	Shared:                 true,
	ID:                     "d32019d3-bc6e-4319-9c1d-6722fc136a22",
	ProviderSegmentationId: 9876543210,
	ProviderNetworkType:    "local",
	RouterExternal:         true,
	PortSecurityEnabled:    true,
}
View Source
var Network2 = networks.Network{
	Status:                 "ACTIVE",
	Subnets:                []string{"08eae331-0402-425a-923c-34f7cfe39c1b"},
	Name:                   "private",
	AdminStateUp:           true,
	TenantID:               "26a7980765d0414dbc1fc1f88cdb7e6e",
	Shared:                 false,
	ID:                     "db193ab3-96e3-4cb3-8fc5-05f4296d0324",
	ProviderSegmentationId: 1234567890,
	ProviderNetworkType:    "local",
	RouterExternal:         false,
	PortSecurityEnabled:    false,
}

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