From 20db0ad0ab6646ef8018cb4f32338ef4c4f80c05 Mon Sep 17 00:00:00 2001 From: Jess Frazelle Date: Mon, 10 Oct 2016 11:33:08 -0700 Subject: [PATCH] fix unit test for TLS and linted packages Signed-off-by: Jess Frazelle --- hack/.linted_packages | 3 +++ pkg/util/metrics/util.go | 2 +- pkg/util/net/http_test.go | 2 ++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/hack/.linted_packages b/hack/.linted_packages index 053c7a6bc6..622b5cb75b 100644 --- a/hack/.linted_packages +++ b/hack/.linted_packages @@ -5,6 +5,7 @@ cmd/gendocs cmd/genkubedocs cmd/genman cmd/genswaggertypedocs +cmd/genyaml cmd/integration cmd/kube-apiserver cmd/kube-apiserver/app @@ -184,6 +185,7 @@ pkg/util/json pkg/util/limitwriter pkg/util/logs pkg/util/maps +pkg/util/metrics pkg/util/replicaset pkg/util/validation/field pkg/util/workqueue @@ -213,6 +215,7 @@ plugin/pkg/auth/authenticator/password plugin/pkg/auth/authenticator/password/allow plugin/pkg/auth/authenticator/request/basicauth plugin/pkg/auth/authenticator/request/union +plugin/pkg/auth/authenticator/request/x509 plugin/pkg/auth/authorizer plugin/pkg/auth/authorizer/rbac/bootstrappolicy plugin/pkg/client/auth diff --git a/pkg/util/metrics/util.go b/pkg/util/metrics/util.go index 0fbc3ae08c..1c8d090ea1 100644 --- a/pkg/util/metrics/util.go +++ b/pkg/util/metrics/util.go @@ -34,7 +34,7 @@ const ( var ( metricsLock sync.Mutex - rateLimiterMetrics map[string]prometheus.Gauge = make(map[string]prometheus.Gauge) + rateLimiterMetrics = make(map[string]prometheus.Gauge) ) func registerRateLimiterMetric(ownerName string) error { diff --git a/pkg/util/net/http_test.go b/pkg/util/net/http_test.go index cb25877290..d797bebf7d 100644 --- a/pkg/util/net/http_test.go +++ b/pkg/util/net/http_test.go @@ -52,6 +52,8 @@ func TestCloneTLSConfig(t *testing.T) { // These fields are not copied "SessionTicketsDisabled", "SessionTicketKey", + "DynamicRecordSizingDisabled", + "Renegotiation", // These fields are unexported "serverInitOnce",