blob: 2333ca77bff3bc9c81e12600b411840a4ef0ed5f [file] [log] [blame]
Jon Perrittb6823132015-01-21 15:03:58 -07001// +build acceptance
2
3package v1
4
5import (
6 "testing"
7
8 "github.com/rackspace/gophercloud"
9 "github.com/rackspace/gophercloud/rackspace"
10 th "github.com/rackspace/gophercloud/testhelper"
11)
12
13func 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}