12345678910111213141516171819202122 |
- package testing
- import (
- "testing"
- "devel.mephi.ru/iacherepanov/openstack-gophercloud/openstack/orchestration/v1/buildinfo"
- th "devel.mephi.ru/iacherepanov/openstack-gophercloud/testhelper"
- fake "devel.mephi.ru/iacherepanov/openstack-gophercloud/testhelper/client"
- )
- func TestGetTemplate(t *testing.T) {
- th.SetupHTTP()
- defer th.TeardownHTTP()
- HandleGetSuccessfully(t, GetOutput)
- actual, err := buildinfo.Get(fake.ServiceClient()).Extract()
- th.AssertNoErr(t, err)
- expected := GetExpected
- th.AssertDeepEquals(t, expected, actual)
- }
|