testing

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

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

ListOutput provides a single page of ServiceCatalog results.

Variables

View Source
var ExpectedCatalogSlice = []tokens.CatalogEntry{{
	ID:   "4363ae44bdf34a3981fde3b823cb9aa2",
	Name: "keystone",
	Type: "identity",
	Endpoints: []tokens.Endpoint{
		{
			ID:        "39dc322ce86c4111b4f06c2eeae0841b",
			Interface: "public",
			Region:    "RegionOne",
			URL:       "http://localhost:5000",
		},
		{
			ID:        "ec642f27474842e78bf059f6c48f4e99",
			Interface: "internal",
			Region:    "RegionOne",
			URL:       "http://localhost:5000",
		},
		{
			ID:        "c609fc430175452290b62a4242e8a7e8",
			Region:    "RegionOne",
			Interface: "admin",
			URL:       "http://localhost:5000",
		},
	},
}}

ExpectedCatalogSlice is the slice of domains expected to be returned from ListOutput.

Functions

func HandleListCatalogSuccessfully

func HandleListCatalogSuccessfully(t *testing.T)

HandleListCatalogSuccessfully creates an HTTP handler at `/domains` on the test handler mux that responds with a list of two domains.

Types

This section is empty.

Jump to

Keyboard shortcuts

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