testing

package
v1.0.20 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const ServiceListBody = `` /* 1348-byte string literal not displayed */

ServiceListBody is sample response to the List call

Variables

View Source
var FirstFakeService = services.Service{
	Binary:         "nova-scheduler",
	DisabledReason: "test1",
	Host:           "host1",
	ID:             1,
	State:          "up",
	Status:         "disabled",
	UpdatedAt:      time.Date(2012, 10, 29, 13, 42, 2, 0, time.UTC),
	Zone:           "internal",
}

First service from the ServiceListBody

View Source
var FourthFakeService = services.Service{
	Binary:         "nova-compute",
	DisabledReason: "test4",
	Host:           "host2",
	ID:             4,
	State:          "down",
	Status:         "disabled",
	UpdatedAt:      time.Date(2012, 9, 18, 8, 3, 38, 0, time.UTC),
	Zone:           "nova",
}

Fourth service from the ServiceListBody

View Source
var SecondFakeService = services.Service{
	Binary:         "nova-compute",
	DisabledReason: "test2",
	Host:           "host1",
	ID:             2,
	State:          "up",
	Status:         "disabled",
	UpdatedAt:      time.Date(2012, 10, 29, 13, 42, 5, 0, time.UTC),
	Zone:           "nova",
}

Second service from the ServiceListBody

View Source
var ThirdFakeService = services.Service{
	Binary:         "nova-scheduler",
	DisabledReason: "",
	Host:           "host2",
	ID:             3,
	State:          "down",
	Status:         "enabled",
	UpdatedAt:      time.Date(2012, 9, 19, 6, 55, 34, 0, time.UTC),
	Zone:           "internal",
}

Third service from the ServiceListBody

Functions

func HandleListSuccessfully

func HandleListSuccessfully(t *testing.T)

HandleListSuccessfully configures the test server to respond to a List request.

Types

This section is empty.

Jump to

Keyboard shortcuts

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