testing

package
v0.0.0-...-1fd1e9e Latest Latest
Warning

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

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

Documentation

Overview

orchestration_buildinfo_v1

Index

Constants

View Source
const GetOutput = `
{
  "api": {
    "revision": "2.4.5"
  },
  "engine": {
    "revision": "1.2.1"
  }
}`

GetOutput represents the response body from a Get request.

Variables

View Source
var GetExpected = &buildinfo.BuildInfo{
	API: buildinfo.Revision{
		Revision: "2.4.5",
	},
	Engine: buildinfo.Revision{
		Revision: "1.2.1",
	},
}

GetExpected represents the expected object from a Get request.

Functions

func HandleGetSuccessfully

func HandleGetSuccessfully(t *testing.T, output string)

HandleGetSuccessfully creates an HTTP handler at `/build_info` on the test handler mux that responds with a `Get` response.

Types

This section is empty.

Jump to

Keyboard shortcuts

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