mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-10-30 18:17:55 +00:00
test: port test changes to oss (#8694)
This commit is contained in:
committed by
GitHub
parent
867218c119
commit
ba1871d48e
@@ -390,6 +390,7 @@ func TestPredict_Plugins(t *testing.T) {
|
||||
"redshift-database-plugin",
|
||||
"ssh",
|
||||
"totp",
|
||||
"transform",
|
||||
"transit",
|
||||
"userpass",
|
||||
},
|
||||
@@ -415,6 +416,14 @@ func TestPredict_Plugins(t *testing.T) {
|
||||
}
|
||||
}
|
||||
}
|
||||
if !strutil.StrListContains(act, "transform") {
|
||||
for i, v := range tc.exp {
|
||||
if v == "transform" {
|
||||
tc.exp = append(tc.exp[:i], tc.exp[i+1:]...)
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
if !reflect.DeepEqual(act, tc.exp) {
|
||||
t.Errorf("expected:%q, got: %q", tc.exp, act)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user