Jamie Hannaford | f96c7c3 | 2014-10-06 10:11:47 +0200 | [diff] [blame] | 1 | package client |
| 2 | |
| 3 | import ( |
| 4 | "github.com/rackspace/gophercloud" |
| 5 | "github.com/rackspace/gophercloud/testhelper" |
| 6 | ) |
| 7 | |
| 8 | // Fake token to use. |
| 9 | const TokenID = "cbc36478b0bd8e67e89469c7749d4127" |
| 10 | |
| 11 | // ServiceClient returns a generic service client for use in tests. |
| 12 | func ServiceClient() *gophercloud.ServiceClient { |
| 13 | return &gophercloud.ServiceClient{ |
Ash Wilson | d7f73e9 | 2014-10-22 09:11:49 -0400 | [diff] [blame] | 14 | ProviderClient: &gophercloud.ProviderClient{TokenID: TokenID}, |
| 15 | Endpoint: testhelper.Endpoint(), |
Jamie Hannaford | f96c7c3 | 2014-10-06 10:11:47 +0200 | [diff] [blame] | 16 | } |
| 17 | } |