blob: c79c2a69488eafe63a871bc7528b7627dd531b45 [file] [log] [blame]
Keith Byrnebda48592016-03-23 11:37:08 +00001// +build fixtures
2
Jon Perritt034ef072015-02-03 13:14:44 -07003package stacks
4
5import (
6 "github.com/rackspace/gophercloud"
7 os "github.com/rackspace/gophercloud/openstack/orchestration/v1/stacks"
8)
9
10// CreateExpected represents the expected object from a Create request.
11var CreateExpected = &os.CreatedStack{
12 ID: "b663e18a-4767-4cdf-9db5-9c8cc13cc38a",
13 Links: []gophercloud.Link{
14 gophercloud.Link{
Jon Perritt9b81b8c2015-02-05 12:55:53 -070015 Href: "https://ord.orchestration.api.rackspacecloud.com/v1/864477/stacks/stackcreated/b663e18a-4767-4cdf-9db5-9c8cc13cc38a",
Jon Perritt034ef072015-02-03 13:14:44 -070016 Rel: "self",
17 },
18 },
19}
20
21// CreateOutput represents the response body from a Create request.
22const CreateOutput = `
23{
24 "stack": {
25 "id": "b663e18a-4767-4cdf-9db5-9c8cc13cc38a",
26 "links": [
27 {
Jon Perritt9b81b8c2015-02-05 12:55:53 -070028 "href": "https://ord.orchestration.api.rackspacecloud.com/v1/864477/stacks/stackcreated/b663e18a-4767-4cdf-9db5-9c8cc13cc38a",
Jon Perritt034ef072015-02-03 13:14:44 -070029 "rel": "self"
30 }
31 ]
32 }
33}
34`