blob: 3eb9e12e97fae2da4ef052de7f2f9f68285546f9 [file] [log] [blame]
Jamie Hannafordf96c7c32014-10-06 10:11:47 +02001package client
2
3import (
4 "github.com/rackspace/gophercloud"
5 "github.com/rackspace/gophercloud/testhelper"
6)
7
8// Fake token to use.
9const TokenID = "cbc36478b0bd8e67e89469c7749d4127"
10
11// ServiceClient returns a generic service client for use in tests.
12func ServiceClient() *gophercloud.ServiceClient {
13 return &gophercloud.ServiceClient{
14 Provider: &gophercloud.ProviderClient{TokenID: TokenID},
15 Endpoint: testhelper.Endpoint(),
16 }
17}