Skip to content

Commit

Permalink
tests: Search for compute service
Browse files Browse the repository at this point in the history
It's more common than the object storage service.

Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
  • Loading branch information
stephenfin committed May 15, 2024
1 parent 13f65f0 commit 5de8acf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions internal/acceptance/openstack/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@ func TestAuthenticatedClient(t *testing.T) {

t.Logf("Client successfully acquired a token: %v", client.TokenID)

// Find the storage service in the service catalog.
storage, err := openstack.NewObjectStorageV1(client, gophercloud.EndpointOpts{
// Find the compute service in the service catalog.
compute, err := openstack.NewComputeV2(client, gophercloud.EndpointOpts{
Region: os.Getenv("OS_REGION_NAME"),
})
if err != nil {
t.Errorf("Unable to locate a storage service: %v", err)
t.Errorf("Unable to locate a compute service: %v", err)
} else {
t.Logf("Located a storage service at endpoint: [%s]", storage.Endpoint)
t.Logf("Located a compute service at endpoint: [%s]", compute.Endpoint)
}
}

Expand Down

0 comments on commit 5de8acf

Please sign in to comment.