github.com/opentelekomcloud/gophertelekomcloud@v0.9.3/testing/service_client_test.go (about)

     1  package testing
     2  
     3  import (
     4  	"testing"
     5  
     6  	golangsdk "github.com/opentelekomcloud/gophertelekomcloud"
     7  	th "github.com/opentelekomcloud/gophertelekomcloud/testhelper"
     8  )
     9  
    10  func TestServiceURL(t *testing.T) {
    11  	c := &golangsdk.ServiceClient{Endpoint: "http://123.45.67.8/"}
    12  	expected := "http://123.45.67.8/more/parts/here"
    13  	actual := c.ServiceURL("more", "parts", "here")
    14  	th.CheckEquals(t, expected, actual)
    15  }