Documentation ¶
Index ¶
Constants ¶
const CreateOutput = `` /* 325-byte string literal not displayed */
CreateOutput represents the response body from a Create request.
const GetOutput = `` /* 325-byte string literal not displayed */
GetOutput represents the response body from a Get request.
const ListOutput = `` /* 661-byte string literal not displayed */
CreateOutput represents the response body from a Create request.
const UpdateOutput = `` /* 880-byte string literal not displayed */
GetOutput represents the response body from a Get request.
Variables ¶
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.
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.
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.
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 ¶
HandleCreateSuccessfully creates an HTTP handler at `/stacks` on the test handler mux that responds with a `Create` response.
func HandleDeleteSuccessfully ¶
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 ¶
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 HandleUpdateSuccessfully ¶
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.