From 1d371547934137f7d80f4d33839ab4496c8c0363 Mon Sep 17 00:00:00 2001 From: Gyu-Ho Lee Date: Wed, 20 Jul 2016 16:24:33 -0700 Subject: [PATCH] v2http: test with 'ClientCertAuthEnabled' --- etcdserver/api/v2http/client_auth_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/etcdserver/api/v2http/client_auth_test.go b/etcdserver/api/v2http/client_auth_test.go index 8976148a9..b5e32c487 100644 --- a/etcdserver/api/v2http/client_auth_test.go +++ b/etcdserver/api/v2http/client_auth_test.go @@ -720,13 +720,13 @@ func TestPrefixAccess(t *testing.T) { } for i, tt := range table { - if tt.hasRoot != hasRootAccess(tt.store, tt.req) { + if tt.hasRoot != hasRootAccess(tt.store, tt.req, true) { t.Errorf("#%d: hasRoot doesn't match (expected %v)", i, tt.hasRoot) } - if tt.hasKeyPrefixAccess != hasKeyPrefixAccess(tt.store, tt.req, tt.key, false) { + if tt.hasKeyPrefixAccess != hasKeyPrefixAccess(tt.store, tt.req, tt.key, false, true) { t.Errorf("#%d: hasKeyPrefixAccess doesn't match (expected %v)", i, tt.hasRoot) } - if tt.hasRecursiveAccess != hasKeyPrefixAccess(tt.store, tt.req, tt.key, true) { + if tt.hasRecursiveAccess != hasKeyPrefixAccess(tt.store, tt.req, tt.key, true, true) { t.Errorf("#%d: hasRecursiveAccess doesn't match (expected %v)", i, tt.hasRoot) } }