(config router.Config)
| 44 | } |
| 45 | |
| 46 | func NewTestRouterClient(config router.Config) *router.Client { |
| 47 | resource, err := url.Parse("/routing") |
| 48 | Expect(err).ToNot(HaveOccurred()) |
| 49 | baseURL, err := url.Parse(server.URL()) |
| 50 | Expect(err).ToNot(HaveOccurred()) |
| 51 | |
| 52 | config.RoutingEndpoint = baseURL.ResolveReference(resource).String() |
| 53 | config.SkipSSLValidation = true |
| 54 | client := router.NewClient(config) |
| 55 | |
| 56 | return client |
| 57 | } |
no test coverage detected