mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-02 03:27:54 +00:00
logical: add support for passing data to delete (#7139)
* logical: add support for passing data to delete * add back raft bit * add back raft bit * update error message * fix command delete tests
This commit is contained in:
committed by
GitHub
parent
6c7822380d
commit
3e2cd485de
@@ -27,18 +27,24 @@ func TestDeleteCommand_Run(t *testing.T) {
|
||||
out string
|
||||
code int
|
||||
}{
|
||||
{
|
||||
"default",
|
||||
[]string{"secret/foo"},
|
||||
"",
|
||||
0,
|
||||
},
|
||||
{
|
||||
"optional_args",
|
||||
[]string{"secret/foo", "bar=baz"},
|
||||
"",
|
||||
0,
|
||||
},
|
||||
{
|
||||
"not_enough_args",
|
||||
[]string{},
|
||||
"Not enough arguments",
|
||||
1,
|
||||
},
|
||||
{
|
||||
"too_many_args",
|
||||
[]string{"foo", "bar"},
|
||||
"Too many arguments",
|
||||
1,
|
||||
},
|
||||
}
|
||||
|
||||
t.Run("validations", func(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user