_testservice

command
v0.0.0-...-8dc4135 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

README

This file describes the testing tool in _testservice. It is only of interest to developers of the Relay Proxy.

This small application is used in CI testing of the Relay Proxy, for simple end-to-end integration tests that only require the LaunchDarkly streaming endpoint to be available on a very basic level, allowing these tests to be self-contained in CI rather than having to connect to the actual LaunchDarkly service.

To avoid having to manage background processes directly in a test script, this tool launches a background instance of itself when it is started and provides an option to shut down that process.

testservice start streamer <PORT>: Starts the simulated stream endpoint in a background process, listening on the specified port. Does not exit until the listener has started.

testservice stop streamer: Stops the background process if it is running.

The PID of the background process is written to ./.testservice-streamer.pid.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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