package
0.0.0-20221205081027-fb1d94189521
Repository: https://github.com/ti-net2/apiserver.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
# Functions
ClockSteppingWebhookHandler given a fakeClock returns a request handler that moves time in given clock by an amount specified in the webhook request.
ConvertToMutatingTestCases converts a validating test case to a mutating one for test purposes.
ConvertToMutatingWebhooks converts a validating webhook to a mutating one for test purposes.
NewAttribute returns static admission Attributes for testing.
NewAttributeUnstructured returns static admission Attributes for testing with custom resources.
NewAuthenticationInfoResolver creates a fake AuthenticationInfoResolver that counts cache misses on every call to its methods.
NewCachedClientTestcases returns a set of client manager test cases.
NewFakeMutatingDataSource returns a mock client and informer returning the given webhooks.
NewFakeValidatingDataSource returns a mock client and informer returning the given webhooks.
NewMutatingTestCases returns test cases with a given base url.
NewNonMutatingTestCases returns test cases with a given base url.
NewObjectInterfacesForTest returns an ObjectInterfaces appropriate for test cases in this file.
NewServiceResolver returns a static service resolve that return the given URL or an error for the failResolve namespace.
NewTestServer returns a webhook test HTTPS server with fixed webhook test certs.
NewTestServerWithHandler returns a webhook test HTTPS server which uses given handler function to handle requests.
NewValidationDurationTestCases returns test cases for webhook duration test.
Wrapper turns an AuthenticationInfoResolver into a AuthenticationInfoResolverWrapper that unconditionally returns the given AuthenticationInfoResolver.
# Structs
CachedTest is a test case for the client manager.
DurationTest is webhook duration test case, used both in mutating and validating plugin test cases.
FakeAttributes decorate admission.Attributes.
MutatingTest is a mutating webhook test case.
ValidatingTest is a validating webhook test case.