Documentation
¶
Overview ¶
Package servetest provides infrastructure for running loopback tests of "rclone serve backend:" against the backend integration tests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetEphemeralPort ¶ added in v1.70.0
GetEphemeralPort opens a listening port on localhost:0, closes it, and returns the address as "localhost:port".
func Run ¶
Run runs the server then runs the unit tests for the remote against it. The backing Fs is a fresh local directory.
func RunWithBackend ¶ added in v1.75.0
RunWithBackend behaves like Run but uses the supplied remote (e.g. "TestS3Minio:") as the backing Fs that the server wraps, instead of a fresh local directory. When backingRemote is empty it is equivalent to Run.
AuthProxy is only run when backingRemote is empty: the test proxy in proxy_code.go hardcodes type=local, so it cannot be used with a non-local backing.