package client | |
import ( | |
"github.com/gophercloud/gophercloud" | |
"github.com/gophercloud/gophercloud/testhelper" | |
) | |
// Fake token to use. | |
const TokenID = "cbc36478b0bd8e67e89469c7749d4127" | |
// ServiceClient returns a generic service client for use in tests. | |
func ServiceClient() *gophercloud.ServiceClient { | |
return &gophercloud.ServiceClient{ | |
ProviderClient: &gophercloud.ProviderClient{TokenID: TokenID}, | |
Endpoint: testhelper.Endpoint(), | |
} | |
} |