testing

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

availabilityzones unittests

Index

Constants

View Source
const GetDetailOutput = `` /* 2473-byte string literal not displayed */
View Source
const GetOutput = `` /* 195-byte string literal not displayed */

Variables

View Source
var AZDetailResult = []az.AvailabilityZone{
	{
		Hosts: az.Hosts{
			"localhost": az.Services{
				"nova-cert": az.ServiceState{
					Active:    true,
					Available: false,
					UpdatedAt: time.Date(2017, 10, 14, 17, 3, 39, 0, time.UTC),
				},
				"nova-conductor": az.ServiceState{
					Active:    true,
					Available: false,
					UpdatedAt: time.Date(2017, 10, 14, 17, 4, 9, 0, time.UTC),
				},
				"nova-consoleauth": az.ServiceState{
					Active:    true,
					Available: false,
					UpdatedAt: time.Date(2017, 10, 14, 17, 4, 18, 0, time.UTC),
				},
				"nova-scheduler": az.ServiceState{
					Active:    true,
					Available: false,
					UpdatedAt: time.Date(2017, 10, 14, 17, 4, 30, 0, time.UTC),
				},
			},
			"openstack-acc-tests.novalocal": az.Services{
				"nova-cert": az.ServiceState{
					Active:    true,
					Available: true,
					UpdatedAt: time.Date(2018, 1, 4, 4, 11, 19, 0, time.UTC),
				},
				"nova-conductor": az.ServiceState{
					Active:    true,
					Available: true,
					UpdatedAt: time.Date(2018, 1, 4, 4, 11, 22, 0, time.UTC),
				},
				"nova-consoleauth": az.ServiceState{
					Active:    true,
					Available: true,
					UpdatedAt: time.Date(2018, 1, 4, 4, 11, 20, 0, time.UTC),
				},
				"nova-scheduler": az.ServiceState{
					Active:    true,
					Available: true,
					UpdatedAt: time.Date(2018, 1, 4, 4, 11, 23, 0, time.UTC),
				},
			},
		},
		ZoneName:  "internal",
		ZoneState: az.ZoneState{Available: true},
	},
	{
		Hosts: az.Hosts{
			"openstack-acc-tests.novalocal": az.Services{
				"nova-compute": az.ServiceState{
					Active:    true,
					Available: true,
					UpdatedAt: time.Date(2018, 1, 4, 4, 11, 23, 0, time.UTC),
				},
			},
		},
		ZoneName:  "nova",
		ZoneState: az.ZoneState{Available: true},
	},
}
View Source
var AZResult = []az.AvailabilityZone{
	{
		Hosts:     nil,
		ZoneName:  "nova",
		ZoneState: az.ZoneState{Available: true},
	},
}

Functions

func HandleGetDetailSuccessfully

func HandleGetDetailSuccessfully(t *testing.T)

HandleGetDetailSuccessfully configures the test server to respond to a Get request for detailed availability zone information.

func HandleGetSuccessfully

func HandleGetSuccessfully(t *testing.T)

HandleGetSuccessfully configures the test server to respond to a Get request for availability zone information.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL