tests

package
v1.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 29, 2025 License: MIT Imports: 11 Imported by: 0

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

func (*RemoteServer) Stop

func (rs *RemoteServer) Stop()

Stop stops and removes the container

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL