testing

package
Version: 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

Overview

common extensions unit tests

Index

Constants

View Source
const ListOutput = `` /* 391-byte string literal not displayed */

ListOutput provides a single page of Extension results.

Variables

View Source
var ExpectedExtensions = []extensions.Extension{ListedExtension}

ExpectedExtensions is a slice containing the Extension that should be parsed from ListOutput.

View Source
var ListedExtension = extensions.Extension{
	Updated:     "2013-04-18T00:00:00+00:00",
	Name:        "SchedulerHints",
	Links:       []gophercloud.Link{},
	Namespace:   "http://docs.openstack.org/block-service/ext/scheduler-hints/api/v2",
	Alias:       "OS-SCH-HNT",
	Description: "Pass arbitrary key/value pairs to the scheduler.",
}

ListedExtension is the Extension that should be parsed from ListOutput.

Functions

func HandleListExtensionsSuccessfully

func HandleListExtensionsSuccessfully(t *testing.T)

HandleListExtensionsSuccessfully creates an HTTP handler at `/extensions` on the test handler mux that response with a list containing a single tenant.

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

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