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