blob: bf51f3427e905ada81c02a32a3e45877f0ebc6d9 [file] [log] [blame]
Daniel Speichert44e3b542015-08-26 20:55:58 -04001package roles
2
3import (
4 "testing"
5
Jon Perritt27249f42016-02-18 10:35:59 -06006 "github.com/gophercloud/gophercloud"
Daniel Speichert44e3b542015-08-26 20:55:58 -04007)
8
Daniel Speichert1cc1c842015-09-15 23:19:13 -04009func TestListAssignmentsURL(t *testing.T) {
Daniel Speichert44e3b542015-08-26 20:55:58 -040010 client := gophercloud.ServiceClient{Endpoint: "http://localhost:5000/v3/"}
Daniel Speichert1cc1c842015-09-15 23:19:13 -040011 url := listAssignmentsURL(&client)
Daniel Speichert44e3b542015-08-26 20:55:58 -040012 if url != "http://localhost:5000/v3/role_assignments" {
13 t.Errorf("Unexpected list URL generated: [%s]", url)
14 }
15}