27 lines
789 B
Python
27 lines
789 B
Python
import logging
|
|
|
|
import xmlrpclib
|
|
|
|
from test.integration.base import Base
|
|
from test.helpers import SSHClient
|
|
|
|
|
|
class TestNailyd(Base):
|
|
def __init__(self, *args, **kwargs):
|
|
super(TestNailyd, self).__init__(*args, **kwargs)
|
|
self.remote = SSHClient()
|
|
|
|
def setUp(self):
|
|
logging.info('Admin node ip: %s' % self.get_admin_node_ip())
|
|
self.ip = self.get_admin_node_ip()
|
|
|
|
def tearDown(self):
|
|
pass
|
|
|
|
def test_nailyd_alive(self):
|
|
self.remote.connect_ssh(self.ip, 'root', 'r00tme')
|
|
ps_output = self.remote.execute('ps ax')['stdout']
|
|
naily_processes = filter(lambda x: '/usr/bin/nailyd' in x, ps_output)
|
|
logging.debug("Found naily processes: %s" % naily_processes)
|
|
self.assertEquals(len(naily_processes), 1)
|