package
0.0.0-20241119232718-68198a487ae1
Repository: https://github.com/openshift-kni/oran-o2ims.git
Documentation: pkg.go.dev
# Functions
DefaultJWKS generates the JSON web key set used for tests.
JQ runs the given `jq` filter on the given object and returns the list of results.
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.
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.
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.
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.
RespondeWithContent responds with the given status code, content type and body.
RespondWithJSON responds with the given status code and JSON body.
RespondWithObject returns an HTTP handler that responds with a single object.
# Structs
MetricsServer is an HTTP server configured to return Prometheus metrics.