Fix up more of the acceptance tests.
diff --git a/acceptance/openstack/compute/tools_test.go b/acceptance/openstack/compute/tools_test.go
index 5140caf..b5d3909 100644
--- a/acceptance/openstack/compute/tools_test.go
+++ b/acceptance/openstack/compute/tools_test.go
@@ -5,18 +5,20 @@
import (
"crypto/rand"
"fmt"
- "github.com/rackspace/gophercloud/openstack/compute/servers"
- identity "github.com/rackspace/gophercloud/openstack/identity/v2"
- "github.com/rackspace/gophercloud/openstack/utils"
"os"
"text/tabwriter"
"time"
+
+ "github.com/rackspace/gophercloud"
+ "github.com/rackspace/gophercloud/openstack/compute/servers"
+ identity "github.com/rackspace/gophercloud/openstack/identity/v2"
+ "github.com/rackspace/gophercloud/openstack/utils"
)
var errTimeout = fmt.Errorf("Timeout.")
type testState struct {
- o identity.AuthOptions
+ o gophercloud.AuthOptions
a identity.AuthResults
sc *identity.ServiceCatalog
eps []identity.Endpoint
@@ -44,7 +46,8 @@
return ts, err
}
- ts.a, err = identity.Authenticate(ts.o)
+ client := &gophercloud.ServiceClient{Endpoint: ts.o.IdentityEndpoint}
+ ts.a, err = identity.Authenticate(client, ts.o)
if err != nil {
return ts, err
}