apiserverk8s.io/apiserver/pkg/server/statusz/testing Index | Files

package testing

import "k8s.io/apiserver/pkg/server/statusz/testing"

Index

Functions

func VerifyStructuredResponse

func VerifyStructuredResponse(t *testing.T, acceptHeader string, body []byte, warnings []string, want interface{}, wantDeprecationHeader bool)

VerifyStructuredResponse verifies that the response body matches the expected static fields and checks for the presence/absence of warnings.

Source Files

testing.go

Version
v0.36.0 (latest)
Published
Apr 22, 2026
Platform
linux/amd64
Imports
9 packages
Last checked
4 days ago

Tools for package owners.