testing

package
v1.0.12 Latest Latest
Warning

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

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

Documentation

Overview

orchestration_stacktemplates_v1

Index

Constants

View Source
const GetOutput = `` /* 462-byte string literal not displayed */

GetOutput represents the response body from a Get request.

View Source
const ValidateOutput = `` /* 210-byte string literal not displayed */

ValidateOutput represents the response body from a Validate request.

Variables

View Source
var GetExpected = "" /* 526-byte string literal not displayed */

GetExpected represents the expected object from a Get request.

View Source
var ValidateExpected = &stacktemplates.ValidatedTemplate{
	Description: "Simple template to test heat commands",
	Parameters: map[string]interface{}{
		"flavor": map[string]interface{}{
			"Default":     "m1.tiny",
			"Type":        "String",
			"NoEcho":      "false",
			"Description": "",
			"Label":       "flavor",
		},
	},
}

ValidateExpected represents the expected object from a Validate request.

Functions

func HandleGetSuccessfully

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

HandleGetSuccessfully creates an HTTP handler at `/stacks/postman_stack/16ef0584-4458-41eb-87c8-0dc8d5f66c87/template` on the test handler mux that responds with a `Get` response.

func HandleValidateSuccessfully

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

HandleValidateSuccessfully creates an HTTP handler at `/validate` on the test handler mux that responds with a `Validate` response.

Types

This section is empty.

Jump to

Keyboard shortcuts

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