Jamie Hannaford | 1ce30f2 | 2014-09-16 11:23:34 +0200 | [diff] [blame^] | 1 | package networks |
| 2 | |
| 3 | import ( |
| 4 | "testing" |
| 5 | |
| 6 | "github.com/rackspace/gophercloud" |
| 7 | th "github.com/rackspace/gophercloud/testhelper" |
| 8 | ) |
| 9 | |
| 10 | const Endpoint = "http://localhost:57909/" |
| 11 | |
| 12 | func EndpointClient() *gophercloud.ServiceClient { |
| 13 | return &gophercloud.ServiceClient{Endpoint: Endpoint} |
| 14 | } |
| 15 | |
| 16 | func TestExtensionURL(t *testing.T) { |
| 17 | actual := ExtensionURL(EndpointClient(), "agent") |
| 18 | expected := Endpoint + "v2.0/extensions/agent" |
| 19 | th.AssertEquals(t, expected, actual) |
| 20 | } |