def __init__(self): self.broker = testUtil.MatahariBroker() self.broker.start() time.sleep(3) self.host_agent = testUtil.MatahariAgent("matahari-qmf-hostd") self.host_agent.start() time.sleep(3) self.connect_info = testUtil.connectToBroker('localhost', '49001') self.sess = self.connect_info[1] self.reQuery()
def __init__(self): self.broker = testUtil.MatahariBroker() self.broker.start() time.sleep(3) self.network_agent = testUtil.MatahariAgent("matahari-qmf-networkd") self.network_agent.start() time.sleep(3) self.expectedMethods = [ 'list()', 'start(iface)', 'stop(iface)', 'status(iface)', 'get_ip_address(iface)', 'get_mac_address(iface)' ] self.connect_info = testUtil.connectToBroker('localhost', '49001') self.sess = self.connect_info[1] self.reQuery()
def __init__(self): self.broker = testUtil.MatahariBroker() self.broker.start() time.sleep(3) self.service_agent = testUtil.MatahariAgent("matahari-qmf-serviced") self.service_agent.start() time.sleep(3) self.expectedMethods = [ 'list()', 'enable(name)', 'disable(name)', 'start(name, timeout)', 'stop(name, timeout)', 'status(name, timeout)', 'describe(name)' ] self.connect_info = testUtil.connectToBroker('localhost', '49001') self.sess = self.connect_info[1] self.reQuery()
def __init__(self): self.broker = testUtil.MatahariBroker() self.broker.start() time.sleep(3) self.service_agent = testUtil.MatahariAgent("matahari-qmf-serviced") self.service_agent.start() time.sleep(3) self.expectedMethods = [ 'list_standards()', 'list_providers(standard)', 'list(standard, provider)', 'describe(standard, provider, agent)', 'invoke(name, standard, provider, agent, action, interval, parameters, timeout, expected-rc, userdata)', 'cancel(name, action, interval, timeout)', 'fail(name, rc)' ] self.connect_info = testUtil.connectToBroker('localhost', '49001') self.sess = self.connect_info[1] self.reQuery()
def __init__(self): self.broker = testUtil.MatahariBroker() self.broker.start() time.sleep(3) self.sysconfig_agent = testUtil.MatahariAgent( "matahari-qmf-sysconfigd") self.sysconfig_agent.start() time.sleep(3) self.expectedMethods = [ 'run_uri(uri, flags, scheme, key)', 'run_string(text, flags, scheme, key)', 'query(text, flags, scheme)', 'is_configured(key)' ] self.connect_info = testUtil.connectToBroker('localhost', '49001') self.sess = self.connect_info[1] self.reQuery()