command/kv: remove error case in put and edit error message for delete
This commit is contained in:
parent
369a92c71f
commit
b47fcf7282
|
@ -32,7 +32,7 @@ func TestKVDeleteCommand_Validation(t *testing.T) {
|
||||||
},
|
},
|
||||||
"-cas no -modify-index": {
|
"-cas no -modify-index": {
|
||||||
[]string{"-cas", "foo"},
|
[]string{"-cas", "foo"},
|
||||||
"Must specify -modify-index",
|
"Cannot delete a key that does not exist",
|
||||||
},
|
},
|
||||||
"-modify-index no -cas": {
|
"-modify-index no -cas": {
|
||||||
[]string{"-modify-index", "2", "foo"},
|
[]string{"-modify-index", "2", "foo"},
|
||||||
|
|
|
@ -39,10 +39,6 @@ func TestKVPutCommand_Validation(t *testing.T) {
|
||||||
[]string{"-release", "foo"},
|
[]string{"-release", "foo"},
|
||||||
"Missing -session",
|
"Missing -session",
|
||||||
},
|
},
|
||||||
"-cas no -modify-index": {
|
|
||||||
[]string{"-cas", "foo"},
|
|
||||||
"Must specify -modify-index",
|
|
||||||
},
|
|
||||||
"no key": {
|
"no key": {
|
||||||
[]string{},
|
[]string{},
|
||||||
"Missing KEY argument",
|
"Missing KEY argument",
|
||||||
|
|
Loading…
Reference in New Issue