Daniel Speichert | 44e3b54 | 2015-08-26 20:55:58 -0400 | [diff] [blame] | 1 | package roles |
| 2 | |
| 3 | import ( |
| 4 | "testing" |
| 5 | |
| 6 | "github.com/rackspace/gophercloud" |
| 7 | ) |
| 8 | |
Daniel Speichert | 1cc1c84 | 2015-09-15 23:19:13 -0400 | [diff] [blame] | 9 | func TestListAssignmentsURL(t *testing.T) { |
Daniel Speichert | 44e3b54 | 2015-08-26 20:55:58 -0400 | [diff] [blame] | 10 | client := gophercloud.ServiceClient{Endpoint: "http://localhost:5000/v3/"} |
Daniel Speichert | 1cc1c84 | 2015-09-15 23:19:13 -0400 | [diff] [blame] | 11 | url := listAssignmentsURL(&client) |
Daniel Speichert | 44e3b54 | 2015-08-26 20:55:58 -0400 | [diff] [blame] | 12 | if url != "http://localhost:5000/v3/role_assignments" { |
| 13 | t.Errorf("Unexpected list URL generated: [%s]", url) |
| 14 | } |
| 15 | } |