test: check numeric osd id

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
This commit is contained in:
Noah Watkins 2014-11-27 15:43:35 -08:00
parent e2332ecd37
commit a5f7bb1350
1 changed files with 7 additions and 0 deletions

View File

@ -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)