blob: 3dc0b909d53c997beaec09b0fec5318eef849a99 [file] [log] [blame]
jrperritt3d966162016-06-06 14:08:54 -05001package testing
Jon Perritta6ce2c52014-10-06 16:56:18 -05002
3import (
4 "testing"
5
jrperritt3d966162016-06-06 14:08:54 -05006 "github.com/gophercloud/gophercloud"
Krzysztof Szukiełojć24a29ce2017-05-07 14:24:02 +02007 th "gerrit.mcp.mirantis.net/debian/gophercloud.git/testhelper"
Jon Perritta6ce2c52014-10-06 16:56:18 -05008)
9
10func TestServiceURL(t *testing.T) {
jrperritt3d966162016-06-06 14:08:54 -050011 c := &gophercloud.ServiceClient{Endpoint: "http://123.45.67.8/"}
Jon Perritta6ce2c52014-10-06 16:56:18 -050012 expected := "http://123.45.67.8/more/parts/here"
13 actual := c.ServiceURL("more", "parts", "here")
14 th.CheckEquals(t, expected, actual)
15}