Documentation ¶
Index ¶
Constants ¶
const CreateOutput = `` /* 261-byte string literal not displayed */
CreateOutput represents the response body from a Create request.
const FullListOutput = `` /* 1145-byte string literal not displayed */
FullListOutput represents the response body from a List request without a marker.
const GetOutput = `` /* 919-byte string literal not displayed */
GetOutput represents the response body from a Get request.
Variables ¶
var CreateExpected = &stacks.CreatedStack{
ID: "16ef0584-4458-41eb-87c8-0dc8d5f66c87",
Links: []golangsdk.Link{
{
Href: "http://168.28.170.117:8004/v1/98606384f58drad0bhdb7d02779549ac/stacks/stackcreated/16ef0584-4458-41eb-87c8-0dc8d5f66c87",
Rel: "self",
},
},
}
CreateExpected represents the expected object from a Create request.
var GetExpected = &stacks.RetrievedStack{ DisableRollback: true, Description: "Simple template to test heat commands", Parameters: map[string]string{ "flavor": "m1.tiny", "OS::stack_name": "postman_stack", "OS::stack_id": "16ef0584-4458-41eb-87c8-0dc8d5f66c87", }, StatusReason: "Stack CREATE completed successfully", Name: "postman_stack", Outputs: []*stacks.Output{}, CreationTime: time.Date(2015, 2, 3, 20, 7, 39, 0, time.UTC), Links: []golangsdk.Link{ { Href: "http://166.76.160.117:8004/v1/98606384f58d4ad0b3db7d0d779549ac/stacks/postman_stack/16ef0584-4458-41eb-87c8-0dc8d5f66c87", Rel: "self", }, }, Capabilities: []interface{}{}, NotificationTopics: []interface{}{}, Status: "CREATE_COMPLETE", ID: "16ef0584-4458-41eb-87c8-0dc8d5f66c87", TemplateDescription: "Simple template to test heat commands", Tags: []string{"rackspace", "atx"}, }
GetExpected represents the expected object from a Get request.
var ListExpected = []stacks.ListedStack{ { Description: "Simple template to test heat commands", Links: []golangsdk.Link{ { Href: "http://166.76.160.117:8004/v1/98606384f58d4ad0b3db7d0d779549ac/stacks/postman_stack/16ef0584-4458-41eb-87c8-0dc8d5f66c87", Rel: "self", }, }, StatusReason: "Stack CREATE completed successfully", Name: "postman_stack", CreationTime: time.Date(2015, 2, 3, 20, 7, 39, 0, time.UTC), Status: "CREATE_COMPLETE", ID: "16ef0584-4458-41eb-87c8-0dc8d5f66c87", }, { Description: "Simple template to test heat commands", Links: []golangsdk.Link{ { Href: "http://166.76.160.117:8004/v1/98606384f58d4ad0b3db7d0d779549ac/stacks/golangsdk-test-stack-2/db6977b2-27aa-4775-9ae7-6213212d4ada", Rel: "self", }, }, StatusReason: "Stack successfully updated", Name: "golangsdk-test-stack-2", CreationTime: time.Date(2014, 12, 11, 17, 39, 16, 0, time.UTC), UpdatedTime: time.Date(2014, 12, 11, 17, 40, 37, 0, time.UTC), Status: "UPDATE_COMPLETE", ID: "db6977b2-27aa-4775-9ae7-6213212d4ada", }, }
ListExpected represents the expected object from a List 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 ¶
HandleListSuccessfully creates an HTTP handler at `/stacks` on the test handler mux that responds with a `List` response.
func HandleUpdateSuccessfully ¶
HandleUpdateSuccessfully creates an HTTP handler at `/stacks/postman_stack/16ef0584-4458-41eb-87c8-0dc8d5f66c87` on the test handler mux that responds with an `Update` response.
Types ¶
This section is empty.