# Functions
CombineTransports returns a transport that delegates to the given array of transports, in the given order.
DefaultJWKS generates the JSON web key set used for tests.
ErrorTransport creates a transport that always returns the given error.
EvaluateTemplate generates a string from the given templlate source and name value pairs.
JQ runs the given `jq` filter on the given object and returns the list of results.
JSONTransport creates a transport that always returns the given status code and JSON body.
LocalhostCertificate returns a self signed TLS certificate valid for the name `localhost` DNS name, for the `127.0.0.1` IPv4 address and for the `::1` IPv6 address.
MakeClaims generates a default set of claims to be used to issue a token.
MakeDatabaseServer creates a new database server.
MakeTCPH2CServer creates a test server that supports HTTP/2 without TLS, configured so that it sends log messages to the Ginkgo writer.
MakeTCPServer creates a test server that listens in a TCP socket and configured so that it sends log messages to the Ginkgo writer.
MakeTCPTLSServer creates a test server configured so that it sends log messages to the Ginkgo writer.
MakeTokenObject generates a token with the claims resulting from merging the default claims and the claims explicitly given.
MakeTokenString generates a token issued by the default OpenID server and with the given type and with the given life.
MakeUnixH2cServer creates a test server that listens in a Unix socket and supports HTTP/2 without TLS, configured so that it sends log messages to the Ginkgo writer.
MakeUnixServer creates a test server that listens in a Unix socket and configured so that it sends log messages to the Ginkgo writer.
MakeUnixTLSServer creates a test server that listens in a Unix socket and configured so that it sends log messages to the Ginkgo writer.
MatchJQ creates a matcher that checks that the all the results of applying a `jq` filter to the actual value is the given expected value.
MatchJSONTemplate succeeds if actual is a string or stringer of JSON that matches the result of evaluating the given template with the given arguments.
MatchLine succeeds if actual is an slice of strings that contains at least one items that matches the passed regular expression.
NewMetricsServer creates a metrics server.
RemoveLeadingTabs removes the leading tabs from the lines of the given string.
No description provided by the author
No description provided by the author
RespondeWithContent responds with the given status code, content type and body.
RespondWithCookie responds to the request adding a cookie with the given name and value.
RespondWithJSON responds with the given status code and JSON body.
RespondWithJSONTemplate responds with the given status code and with a JSON body that is generated from the given template and arguments.
RespondWithPatchedJSON responds with the given status code and the result of patching the given JSON with the given patch.
No description provided by the author
TextTransport creates a transport that always returns the given status code and plan text body.
VerifyCookie checks that the request contains a cookie with the given name and value.
VerifyJQ verifies that the result of applying the given `jq` filter to the request body matches the given expected value.
# Structs
Database is a PostgreSQL database.
DatabaseServer knows how to start a PostgreSQL database server inside a container, and how to create databases to be used for tests.
MetricsServer is an HTTP server configured to return Prometheus metrics.
# Type aliases
TransportFunc is a function that implements the http.RoundTripper interface.