INNER CODE UNIT · Go

TestReportingURLRejectsCheckSuffix

kuberhealthy/kuberhealthy · cmd/kuberhealthy/config_test.go:143

func TestReportingURLRejectsCheckSuffix(t *testing.T) {
	if testing.Short() {
		t.Skip("skipping reporting URL suffix test in short mode")
	}

	cfg := New()
	t.Setenv("KH_CHECK_REPORT_URL", "https://example.com/check")
	err := cfg.LoadFromEnv()
	if err == nil {
		t.Fatalf("expected error when /check is included in KH_CHECK_REPORT_URL")
	}
}

// TestLoadTLSFiles reads TLS certificate and key paths from environment variables.
func TestLoadTLSFiles(t *testing.T) {
	if testing.Short() {
		t.Skip("skipping TLS file test in short mode")
	}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…