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:
Calvin Leung Huang
2019-07-18 10:42:36 -07:00
committed by GitHub
parent 6c7822380d
commit 3e2cd485de
5 changed files with 74 additions and 32 deletions

View File

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