Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RemoteServer ¶
type RemoteServer struct {
// contains filtered or unexported fields
}
RemoteServer manages a testcontainer that serves the JSON Schema Test Suite remote files
func (*RemoteServer) GetActualURL ¶
func (rs *RemoteServer) GetActualURL(path string) string
GetActualURL returns the actual URL where the file is served
func (*RemoteServer) GetBaseURL ¶
func (rs *RemoteServer) GetBaseURL() string
GetBaseURL returns the base URL where the remote files are served
func (*RemoteServer) GetExpectedURL ¶
func (rs *RemoteServer) GetExpectedURL(path string) string
GetExpectedURL returns the URL that the test suite expects for a given path Since we're binding to localhost:1234, this is the same as GetActualURL
func (*RemoteServer) GetHTTPClient ¶
func (rs *RemoteServer) GetHTTPClient() *http.Client
GetHTTPClient returns an HTTP client that redirects localhost:1234 requests to the actual container
Click to show internal directories.
Click to hide internal directories.