testgate

package
v0.0.61 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

README

TestGate

This plug include a minimal RoundTripper gate that can be used for E2E testing

The plug accepts two configuration parameters:

  • SENDER a string indicating a sender name (default is "someone")
  • RESPONSE a string indicating the response to send (default is "CU")

If the gate sees a request header of "X-Testgate-Hi":

  1. The gate will log: "hehe, noticed me!"
  2. The gate will add the following response header "X-Testgate-Bye: "

This plug is not meant to be used in production.

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