Browse Source

e2e: add test cases for del all keys

Gyu-Ho Lee 9 years ago
parent
commit
75a65e1a70
1 changed files with 10 additions and 0 deletions
  1. 10 0
      e2e/ctl_v3_kv_test.go

+ 10 - 0
e2e/ctl_v3_kv_test.go

@@ -180,6 +180,16 @@ func delTest(cx ctlCtx) {
 
 
 		deletedNum int
 		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"}},
 			[]kv{{"this", "value"}},
 			[]string{"that"},
 			[]string{"that"},