Help us shape the future of Go! Take the 2026 Go Developer Survey

testing

package
v0.27.0 Latest Latest
Warning

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

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

Documentation

Overview

quotas unit tests

Index

Constants

View Source
const GetDetailedResponseRaw = `` /* 1018-byte string literal not displayed */

GetDetailedResponseRaw is a sample response to a Get call with the detailed option.

One "reserved" property is returned as a string to reflect a buggy behaviour of Neutron.

cf. https://bugs.launchpad.net/neutron/+bug/1918565

View Source
const GetResponseRaw = `` /* 277-byte string literal not displayed */
View Source
const UpdateRequestResponseRaw = `` /* 273-byte string literal not displayed */

Variables

View Source
var GetDetailResponse = quotas.QuotaDetailSet{
	FloatingIP:        quotas.QuotaDetail{Used: 0, Reserved: 0, Limit: 15},
	Network:           quotas.QuotaDetail{Used: 0, Reserved: 0, Limit: 20},
	Port:              quotas.QuotaDetail{Used: 0, Reserved: 0, Limit: 25},
	RBACPolicy:        quotas.QuotaDetail{Used: 0, Reserved: 0, Limit: -1},
	Router:            quotas.QuotaDetail{Used: 0, Reserved: 0, Limit: 30},
	SecurityGroup:     quotas.QuotaDetail{Used: 0, Reserved: 0, Limit: 35},
	SecurityGroupRule: quotas.QuotaDetail{Used: 0, Reserved: 0, Limit: 40},
	Subnet:            quotas.QuotaDetail{Used: 0, Reserved: 0, Limit: 45},
	SubnetPool:        quotas.QuotaDetail{Used: 0, Reserved: 0, Limit: -1},
	Trunk:             quotas.QuotaDetail{Used: 0, Reserved: 0, Limit: 50},
}

GetDetailResponse is the first result in ListOutput.

View Source
var GetResponse = quotas.Quota{
	FloatingIP:        15,
	Network:           20,
	Port:              25,
	RBACPolicy:        -1,
	Router:            30,
	SecurityGroup:     35,
	SecurityGroupRule: 40,
	Subnet:            45,
	SubnetPool:        -1,
	Trunk:             50,
}
View Source
var UpdateResponse = quotas.Quota{
	FloatingIP:        0,
	Network:           -1,
	Port:              5,
	RBACPolicy:        10,
	Router:            15,
	SecurityGroup:     20,
	SecurityGroupRule: -1,
	Subnet:            25,
	SubnetPool:        0,
	Trunk:             5,
}

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