blob: b25a690c8dfd1d8c132502c409e5b8f49337ae42 [file] [log] [blame]
Jon Perrittefe6d1f2015-02-09 12:04:06 -07001package buildinfo
2
3import (
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
11func 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}