testing

package
v0.5.23 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const CreateOutput = `` /* 325-byte string literal not displayed */

CreateOutput represents the response body from a Create request.

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

GetOutput represents the response body from a Get request.

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

CreateOutput represents the response body from a Create request.

View Source
const UpdateOutput = `` /* 880-byte string literal not displayed */

GetOutput represents the response body from a Get request.

Variables

View Source
var CreateExpected = &softwaredeployment.Deployment{
	Id:           "43489279-7b12-4fc5-90ed-320f29e89419",
	ConfigId:     "69070672-d37d-4095-a19c-52ab1fde9a24",
	ServerId:     "a161a111-03a0-4204-b5c9-5df46587df5e",
	Status:       "IN_PROGRESS",
	Action:       "CREATE",
	StatusReason: "Deploy data available",
}

CreateExpected represents the expected object from a Create request.

View Source
var GetExpected = &softwaredeployment.Deployment{
	Id:           "43489279-7b12-4fc5-90ed-320f29e89419",
	ConfigId:     "69070672-d37d-4095-a19c-52ab1fde9a24",
	ServerId:     "a161a111-03a0-4204-b5c9-5df46587df5e",
	Status:       "IN_PROGRESS",
	Action:       "CREATE",
	StatusReason: "Deploy data available",
}

GetExpected represents the expected object from a Get request.

View Source
var ListExpected = []softwaredeployment.Deployment{
	{
		Id:           "b357fbe9-4af8-4d00-9499-a13f0d0150bb",
		ConfigId:     "a6ff3598-f2e0-4111-81b0-aa3e1cac2529",
		ServerId:     "e4b191b0-b80b-4782-994c-02abb094480e",
		Status:       "IN_PROGRESS",
		Action:       "CREATE",
		StatusReason: "Deploy data available",
	},
	{
		Id:           "43489279-7b12-4fc5-90ed-320f29e89419",
		ConfigId:     "69070672-d37d-4095-a19c-52ab1fde9a24",
		ServerId:     "a161a111-03a0-4204-b5c9-5df46587df5e",
		Status:       "IN_PROGRESS",
		Action:       "CREATE",
		StatusReason: "Deploy data available",
	},
}

CreateExpected represents the expected object from a Create request.

View Source
var UpdateExpected = &softwaredeployment.Deployment{
	Id:           "43489279-7b12-4fc5-90ed-320f29e89419",
	ConfigId:     "69070672-d37d-4095-a19c-52ab1fde9a24",
	ServerId:     "a161a111-03a0-4204-b5c9-5df46587df5e",
	Status:       "COMPLETE",
	Action:       "CREATE",
	StatusReason: "Outputs received",
	OutputValues: map[string]interface{}{"deploy_stdout": "Writing to /tmp/baaaaa\nWritten to /tmp/baaaaa\n", "deploy_stderr": "+ echo Writing to /tmp/baaaaa\n+ echo fooooo\n+ cat /tmp/baaaaa\n+ echo -n The file /tmp/baaaaa contains fooooo for server ec14c864-096e-4e27-bb8a-2c2b4dc6f3f5 during CREATE\n+ echo Written to /tmp/baaaaa\n+ echo Output to stderr\nOutput to stderr\n",
		"deploy_status_code": "0", "result": "The file /tmp/baaaaa contains fooooo for server ec14c864-096e-4e27-bb8a-2c2b4dc6f3f5 during CREATE"},
}

GetExpected represents the expected object from a Get request.

Functions

func HandleCreateSuccessfully

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

HandleCreateSuccessfully creates an HTTP handler at `/stacks` on the test handler mux that responds with a `Create` response.

func HandleDeleteSuccessfully

func HandleDeleteSuccessfully(t *testing.T)

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

func HandleGetSuccessfully

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

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

func HandleListSuccessfully

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

func HandleUpdateSuccessfully

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

HandleUpdateSuccessfully creates an HTTP handler at `/stacks/postman_stack/16ef0584-4458-41eb-87c8-0dc8d5f66c87` 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