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