blob: 5b69b058f1fe7a7e6019c8bedc71a77c9ac05454 [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{
Ash Wilsond7f73e92014-10-22 09:11:49 -040014 ProviderClient: &gophercloud.ProviderClient{TokenID: TokenID},
15 Endpoint: testhelper.Endpoint(),
Jamie Hannafordf96c7c32014-10-06 10:11:47 +020016 }
17}