blob: c924ac6c0cdc1efe9ff472893f64f85b93f02abe [file] [log] [blame]
Ash Wilsondd7188d2014-09-05 14:02:42 -04001// +build acceptance
2
3package v3
4
5import (
6 "testing"
7
8 endpoints3 "github.com/rackspace/gophercloud/openstack/identity/v3/endpoints"
9)
10
11func TestListEndpoints(t *testing.T) {
12 // Create a service client.
13 serviceClient := createAuthenticatedClient(t)
14
15 // Use the service to list all available endpoints.
16 _, err := endpoints3.List(serviceClient, endpoints3.ListOpts{})
17 if err != nil {
18 t.Errorf("Unexpected error while listing endpoints: %v", err)
19 }
20}