Discover Packages
knative.dev/security-guard
pkg
test-gate
package
Version:
v0.6.1
Opens a new window with list of versions in this module.
Published: Oct 23, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: ? modules, 0 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
README
README
¶
TestGate
This plug includes 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
The gate will log: hehe, <SENDER> noticed me!
The gate will add the following response header x-testgate-bye: <RESPONSE>
This plug is not meant to be used in production.
Using Plugs
Using this plug depends on the system where your service runs. When using Knative, use qpoption to attache a plug to Queue Proxy.
Expand ▾
Collapse ▴
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.