fix unit test for TLS and linted packages

Signed-off-by: Jess Frazelle <acidburn@google.com>
pull/6/head
Jess Frazelle 2016-10-10 11:33:08 -07:00
parent 3193174142
commit 20db0ad0ab
No known key found for this signature in database
GPG Key ID: 18F3685C0022BFF3
3 changed files with 6 additions and 1 deletions

View File

@ -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

View File

@ -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 {

View File

@ -52,6 +52,8 @@ func TestCloneTLSConfig(t *testing.T) {
// These fields are not copied
"SessionTicketsDisabled",
"SessionTicketKey",
"DynamicRecordSizingDisabled",
"Renegotiation",
// These fields are unexported
"serverInitOnce",