testing

package
v0.5.11 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2022 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const CreateRequest = `` /* 239-byte string literal not displayed */
View Source
const CreateResponse = `` /* 1204-byte string literal not displayed */
View Source
const CreateRuleRequest = `
{
  "description": "Default security group",
  "direction": "egress",
  "ethertype": "IPv4",
  "protocol": "tcp"
}
`
View Source
const CreateRuleResponse = `` /* 413-byte string literal not displayed */
View Source
const GetResponse = `` /* 1204-byte string literal not displayed */
View Source
const ListResponse = `` /* 1503-byte string literal not displayed */
View Source
const MetadataCreateRequest = `
{
"test1": "test1", 
"test2": "test2"
}
`
View Source
const MetadataListResponse = `` /* 215-byte string literal not displayed */
View Source
const MetadataResponse = `
{
  "key": "cost-center",
  "value": "Atlanta",
  "read_only": false
}
`
View Source
const UpdateRequest = `
{
  "name": "default"
}
`

Variables

View Source
var (
	SecurityGroup1 = securitygroups.SecurityGroup{
		Name:           groupName,
		Description:    groupDescription,
		ID:             groupID,
		CreatedAt:      groupCreatedTime,
		UpdatedAt:      &groupUpdatedTime,
		RevisionNumber: 4,
		SecurityGroupRules: []securitygroups.SecurityGroupRule{
			{
				ID:              groupRuleID,
				SecurityGroupID: groupID,
				Direction:       direction,
				RemoteGroupID:   nil,
				EtherType:       &eitherType,
				Protocol:        &sgProto,
				PortRangeMax:    nil,
				PortRangeMin:    nil,
				Description:     nil,
				RemoteIPPrefix:  nil,
				CreatedAt:       groupCreatedTime,
				UpdatedAt:       &groupUpdatedTime,
				RevisionNumber:  0,
			},
			{
				ID:              groupRuleID,
				SecurityGroupID: groupID,
				Direction:       direction,
				RemoteGroupID:   nil,
				EtherType:       &eitherType,
				Protocol:        &sgProto2,
				PortRangeMax:    nil,
				PortRangeMin:    nil,
				Description:     nil,
				RemoteIPPrefix:  nil,
				CreatedAt:       groupCreatedTime,
				UpdatedAt:       &groupUpdatedTime,
				RevisionNumber:  0,
			},
		},
		ProjectID: fake.ProjectID,
		RegionID:  fake.RegionID,
		Region:    "Luxembourg 1",
	}

	ExpectedSecurityGroupSlice = []securitygroups.SecurityGroup{SecurityGroup1}

	Metadata1 = securitygroups.Metadata{
		Key:      "cost-center",
		Value:    "Atlanta",
		ReadOnly: false,
	}
	Metadata2 = securitygroups.Metadata{
		Key:      "data-center",
		Value:    "A",
		ReadOnly: false,
	}
	ExpectedMetadataList = []securitygroups.Metadata{Metadata1, Metadata2}
)

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