testing

package
v1.0.21 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2020 License: Apache-2.0 Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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