e2e: add test cases for del all keys

This commit is contained in:
Gyu-Ho Lee 2016-10-17 09:34:21 -07:00
parent fac20b228d
commit 75a65e1a70

View File

@ -180,6 +180,16 @@ func delTest(cx ctlCtx) {
deletedNum int
}{
{ // delete all keys
[]kv{{"foo1", "bar"}, {"foo2", "bar"}, {"foo3", "bar"}},
[]string{"", "--prefix"},
3,
},
{ // delete all keys
[]kv{{"foo1", "bar"}, {"foo2", "bar"}, {"foo3", "bar"}},
[]string{"", "--from-key"},
3,
},
{
[]kv{{"this", "value"}},
[]string{"that"},