blob: aa5bfe68b29b50ea23e1e1b37b2fdc379bec309d [file] [log] [blame]
Jon Perrittb5c78122014-10-15 20:44:39 -05001package cdncontainers
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
Jon Perrittb5c78122014-10-15 20:44:39 -050016func TestEnableURL(t *testing.T) {
17 actual := enableURL(endpointClient(), "foo")
18 expected := endpoint + "foo"
19 th.CheckEquals(t, expected, actual)
20}