Jon Perritt | b682313 | 2015-01-21 15:03:58 -0700 | [diff] [blame] | 1 | // +build acceptance |
| 2 | |
| 3 | package v1 |
| 4 | |
| 5 | import ( |
| 6 | "testing" |
| 7 | |
| 8 | "github.com/rackspace/gophercloud" |
| 9 | "github.com/rackspace/gophercloud/rackspace" |
| 10 | th "github.com/rackspace/gophercloud/testhelper" |
| 11 | ) |
| 12 | |
| 13 | func newClient(t *testing.T) *gophercloud.ServiceClient { |
| 14 | ao, err := rackspace.AuthOptionsFromEnv() |
| 15 | th.AssertNoErr(t, err) |
| 16 | |
| 17 | client, err := rackspace.AuthenticatedClient(ao) |
| 18 | th.AssertNoErr(t, err) |
| 19 | |
| 20 | c, err := rackspace.NewCDNV1(client, gophercloud.EndpointOpts{}) |
| 21 | th.AssertNoErr(t, err) |
| 22 | return c |
| 23 | } |