Jon Perritt | efe6d1f | 2015-02-09 12:04:06 -0700 | [diff] [blame] | 1 | package buildinfo |
| 2 | |
| 3 | import ( |
| 4 | "testing" |
| 5 | |
| 6 | os "github.com/rackspace/gophercloud/openstack/orchestration/v1/buildinfo" |
| 7 | th "github.com/rackspace/gophercloud/testhelper" |
| 8 | fake "github.com/rackspace/gophercloud/testhelper/client" |
| 9 | ) |
| 10 | |
| 11 | func TestGetTemplate(t *testing.T) { |
| 12 | th.SetupHTTP() |
| 13 | defer th.TeardownHTTP() |
| 14 | os.HandleGetSuccessfully(t, os.GetOutput) |
| 15 | |
| 16 | actual, err := Get(fake.ServiceClient()).Extract() |
| 17 | th.AssertNoErr(t, err) |
| 18 | |
| 19 | expected := os.GetExpected |
| 20 | th.AssertDeepEquals(t, expected, actual) |
| 21 | } |