blob: 4c94cade1a5f4b25a8223c8dd5dc7d6d162cc32e [file] [log] [blame]
jrperritt3d966162016-06-06 14:08:54 -05001package testing
Jon Perritta6ce2c52014-10-06 16:56:18 -05002
3import (
4 "testing"
5
Krzysztof Szukiełojć3f41d082017-05-07 14:43:06 +02006 "gerrit.mcp.mirantis.net/debian/gophercloud.git"
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}