Rename ServiceClient to ProviderClient.
Rather than store state within service-level Clients, we really want that
at the provider level. Service-level clients should be stateless.
diff --git a/openstack/identity/v3/tokens/requests_test.go b/openstack/identity/v3/tokens/requests_test.go
index 77b49f3..e1b845f 100644
--- a/openstack/identity/v3/tokens/requests_test.go
+++ b/openstack/identity/v3/tokens/requests_test.go
@@ -15,7 +15,7 @@
testhelper.SetupHTTP()
defer testhelper.TeardownHTTP()
- client := gophercloud.ServiceClient{
+ client := gophercloud.ProviderClient{
Endpoint: testhelper.Endpoint(),
Options: options,
TokenID: "12345abcdef",
@@ -41,7 +41,7 @@
testhelper.SetupHTTP()
defer testhelper.TeardownHTTP()
- client := gophercloud.ServiceClient{
+ client := gophercloud.ProviderClient{
Endpoint: testhelper.Endpoint(),
Options: options,
}
@@ -240,7 +240,7 @@
testhelper.SetupHTTP()
defer testhelper.TeardownHTTP()
- client := gophercloud.ServiceClient{
+ client := gophercloud.ProviderClient{
Endpoint: testhelper.Endpoint(),
Options: gophercloud.AuthOptions{UserID: "me", Password: "shhh"},
}
@@ -391,7 +391,7 @@
testhelper.SetupHTTP()
defer testhelper.TeardownHTTP()
- client := gophercloud.ServiceClient{
+ client := gophercloud.ProviderClient{
Endpoint: testhelper.Endpoint(),
TokenID: "12345abcdef",
}
@@ -425,8 +425,8 @@
}
}
-func prepareAuthTokenHandler(t *testing.T, expectedMethod string, status int) gophercloud.ServiceClient {
- client := gophercloud.ServiceClient{
+func prepareAuthTokenHandler(t *testing.T, expectedMethod string, status int) gophercloud.ProviderClient {
+ client := gophercloud.ProviderClient{
Endpoint: testhelper.Endpoint(),
TokenID: "12345abcdef",
}