fake.go 484 B

123456789101112131415161718
  1. package client
  2. import (
  3. "devel.mephi.ru/iacherepanov/openstack-gophercloud"
  4. "devel.mephi.ru/iacherepanov/openstack-gophercloud/testhelper"
  5. )
  6. // Fake token to use.
  7. const TokenID = "cbc36478b0bd8e67e89469c7749d4127"
  8. // ServiceClient returns a generic service client for use in tests.
  9. func ServiceClient() *gophercloud.ServiceClient {
  10. return &gophercloud.ServiceClient{
  11. ProviderClient: &gophercloud.ProviderClient{TokenID: TokenID},
  12. Endpoint: testhelper.Endpoint(),
  13. }
  14. }