INNER CODE UNIT · Go

TestCheckReportHandler

kuberhealthy/kuberhealthy · cmd/kuberhealthy/check_report_handler_test.go:22

func TestCheckReportHandler(t *testing.T) {
	if testing.Short() {
		t.Skip("skipping check report handler test in short mode")
	}
	// preserve original function implementations
	origValidateHeader := validateUsingRequestHeaderFunc
	origStore := storeCheckStateFunc
	origClient := Globals.khClient
	origKH := Globals.kh
	defer func() {
		validateUsingRequestHeaderFunc = origValidateHeader
		storeCheckStateFunc = origStore
		Globals.khClient = origClient
		Globals.kh = origKH
	}()
	Globals.khClient = nil
	Globals.kh = nil

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…