From a5f7bb13509f2d7f455d4e6c2247b96bb7bcaf52 Mon Sep 17 00:00:00 2001 From: Noah Watkins Date: Thu, 27 Nov 2014 15:43:35 -0800 Subject: [PATCH] test: check numeric osd id Signed-off-by: Noah Watkins --- rados_test.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/rados_test.go b/rados_test.go index 85e6e5f..be1b333 100644 --- a/rados_test.go +++ b/rados_test.go @@ -207,6 +207,13 @@ func TestPingMonitor(t *testing.T) { return } + // mon id that should work with micro-osd.sh + reply, err = conn.PingMonitor("0") + if err == nil { + assert.NotEqual(t, reply, "") + return + } + // try to use a hostname as the monitor id mon_addr, _ := conn.GetConfigOption("mon_host") hosts, _ := net.LookupAddr(mon_addr)