]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
test: add test case for ping_monitor 3560/head
authorXinze Chi <xmdxcxz@gmail.com>
Tue, 24 Mar 2015 04:51:15 +0000 (12:51 +0800)
committerXinze Chi <xmdxcxz@gmail.com>
Tue, 24 Mar 2015 04:51:15 +0000 (12:51 +0800)
Signed-off-by: Xinze Chi <xmdxcxz@gmail.com>
qa/workunits/cephtool/test.sh

index 149b259bc289dd0520d5c3bcb74d97ebe3a9a13a..6175cfb33fe762883a5ca04ce2d0fea5507f48a7 100755 (executable)
@@ -1437,6 +1437,15 @@ EOF
   ceph osd setcrushmap -i $map
 }
 
+function test_mon_ping()
+{
+  ceph ping mon.a
+  ceph ping mon.b
+  expect_false ceph ping mon.foo
+
+  ceph ping mon.*
+}
+
 #
 # New tests should be added to the TESTS array below
 #
@@ -1472,6 +1481,7 @@ MON_TESTS+=" mon_osd_misc"
 MON_TESTS+=" mon_heap_profiler"
 MON_TESTS+=" mon_tell"
 MON_TESTS+=" mon_crushmap_validation"
+MON_TESTS+=" mon_ping"
 
 OSD_TESTS+=" osd_bench"