Ash Wilson | dd7188d | 2014-09-05 14:02:42 -0400 | [diff] [blame] | 1 | // +build acceptance |
| 2 | |
| 3 | package v3 |
| 4 | |
| 5 | import ( |
| 6 | "testing" |
| 7 | |
| 8 | endpoints3 "github.com/rackspace/gophercloud/openstack/identity/v3/endpoints" |
| 9 | ) |
| 10 | |
| 11 | func 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 | } |