mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
v2http: test with 'ClientCertAuthEnabled'
This commit is contained in:
parent
092d069d3e
commit
1d37154793
@ -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)
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user