testing

package
v1.0.23-3 Latest Latest
Warning

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

Go to latest
Published: May 9, 2020 License: Apache-2.0 Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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