testing

package
v0.6.23 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2024 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const CreateRequest = `` /* 135-byte string literal not displayed */
View Source
const DeviceResponse = `` /* 1737-byte string literal not displayed */
View Source
const GetResponse = `` /* 1118-byte string literal not displayed */
View Source
const ListResponse = `` /* 1375-byte string literal not displayed */
View Source
const PortsRequest = `
{
  "port_ids": [
    "351b0dd7-ca09-431c-be53-935db3785067",
    "bc688791-f1b0-44eb-97d4-07697294b1e1"
  ]
}
`
View Source
const SwitchVIPRequest = `
{
  "is_vip": true
}
`
View Source
const TaskResponse = `
{
  "tasks": [
    "50f53a35-42ed-40c4-82b2-5a37fb3e00bc"
  ]
}
`

Variables

View Source
var (
	ReservedFixedIP1 = reservedfixedips.ReservedFixedIP{
		PortID:         "817c8a3d-bb67-4b88-a0d1-aec980318ff1",
		Name:           "Reserved fixed ip 10.100.179.44",
		CreatedAt:      createdTime,
		UpdatedAt:      updatedTime,
		Status:         "DOWN",
		FixedIPAddress: net.ParseIP("10.100.179.44"),
		SubnetID:       "747db04a-2aac-4fda-9492-d9b85a798c09",
		CreatorTaskID:  "30378aea-9343-4ff6-be38-9756094e05da",
		TaskID:         nil,
		IsExternal:     false,
		IsVip:          false,
		Reservation: reservedfixedips.IPReservation{
			Status:       "available",
			ResourceType: nil,
			ResourceID:   nil,
		},
		Region:    "ED-10",
		RegionID:  3,
		ProjectID: 1,
		AllowedAddressPairs: []reservedfixedips.AllowedAddressPairs{
			{
				IPAddress:  "192.168.123.0/24",
				MacAddress: "00:16:3e:f2:87:16",
			},
		},
		NetworkID: "eed97610-708d-43a5-a9a5-caebd2b7b4ee",
		Network: networks.Network{
			Name:      "public",
			ID:        "eed97610-708d-43a5-a9a5-caebd2b7b4ee",
			Subnets:   []string{"747db04a-2aac-4fda-9492-d9b85a798c09"},
			MTU:       1500,
			CreatedAt: createdTime,
			UpdatedAt: &updatedTime,
			External:  true,
			Default:   true,
			TaskID:    &networkTaskID,
			ProjectID: 1,
			RegionID:  3,
		},
	}

	ExpectedIPsSlice = []reservedfixedips.ReservedFixedIP{ReservedFixedIP1}

	Tasks1 = tasks.TaskResults{
		Tasks: []tasks.TaskID{"50f53a35-42ed-40c4-82b2-5a37fb3e00bc"},
	}

	Device1 = reservedfixedips.Device{
		PortID: "351b0dd7-ca09-431c-be53-935db3785067",
		IPAssignments: []reservedfixedips.IPAssignment{
			{
				IPAddress: net.ParseIP("192.168.123.20"),
				SubnetID:  "b39792c3-3160-4356-912e-ba396c95cdcf",
				Subnet: subnets.Subnet{
					ID:            "b39792c3-3160-4356-912e-ba396c95cdcf",
					Name:          "subnet_3",
					IPVersion:     4,
					EnableDHCP:    true,
					CIDR:          *cidr,
					CreatedAt:     createdTime,
					UpdatedAt:     updatedTime,
					NetworkID:     "b30d0de7-bca2-4c83-9c57-9e645bd2cc92",
					TaskID:        "",
					CreatorTaskID: "5cc890da-d031-4a23-ac31-625edfa22812",
					Region:        "Luxembourg 1",
					ProjectID:     1,
					RegionID:      3,
					AvailableIps:  testing.IPDual("250"),
					TotalIps:      testing.IPDual("253"),
					HasRouter:     false,
					DNSNameservers: []net.IP{
						net.ParseIP("8.8.8.8"),
						net.ParseIP("8.8.4.4"),
					},
					HostRoutes: []subnets.HostRoute{},
					GatewayIP:  net.ParseIP("192.168.13.1"),
				},
			},
		},
		InstanceID:   "bc688791-f1b0-44eb-97d4-07697294b1e1",
		InstanceName: "Virtual Machine 1",
		Network: networks.Network{
			Name: "public",
			ID:   "eed97610-708d-43a5-a9a5-caebd2b7b4ee",
			Subnets: []string{
				"f00624ab-41bc-4d54-a723-1673ce32d997",
				"41e0f698-4d39-483b-b77a-18eb070e4c09",
			},
			MTU:       1500,
			CreatedAt: createdTime,
			UpdatedAt: &updatedTime,
			External:  true,
			Default:   true,
			TaskID:    &networkTaskID,
			ProjectID: 1,
			RegionID:  1,
		},
	}
	ExpectedDevicesSlice = []reservedfixedips.Device{Device1}
)

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