testing

package
v1.6.0-13 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

conductors unit tests

Index

Constants

View Source
const ConductorListBody = `` /* 781-byte string literal not displayed */

ConductorListBody contains the canned body of a conductor.List response, without detail.

View Source
const ConductorListDetailBody = `` /* 1061-byte string literal not displayed */

ConductorListDetailBody contains the canned body of a conductor.ListDetail response.

View Source
const SingleConductorBody = `` /* 437-byte string literal not displayed */

SingleConductorBody is the canned body of a Get request on an existing conductor.

Variables

View Source
var (
	ConductorFoo = conductors.Conductor{
		CreatedAt:      createdAtFoo,
		UpdatedAt:      updatedAt,
		Hostname:       "compute2.localdomain",
		ConductorGroup: "",
		Alive:          true,
		Drivers: []string{
			"ipmi",
		},
	}
)

Functions

func HandleConductorGetSuccessfully

func HandleConductorGetSuccessfully(t *testing.T)

func HandleConductorListDetailSuccessfully

func HandleConductorListDetailSuccessfully(t *testing.T)

HandleConductorListDetailSuccessfully sets up the test server to respond to a server List request.

func HandleConductorListSuccessfully

func HandleConductorListSuccessfully(t *testing.T)

HandleConductorListSuccessfully sets up the test server to respond to a server 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