def __init__(self): cmd.getoutput("service matahari-broker start") cmd.getoutput("service matahari-network 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','49000') self.sess = self.connect_info[1] self.reQuery() self.nic_ut = self.select_nic_for_test()
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.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.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): cmd.getoutput("service matahari-broker start") cmd.getoutput("service matahari-service start") self.expectedMethods = [ 'list()', 'enable(name)', 'disable(name)', 'start(name, timeout)', 'stop(name, timeout)', 'status(name, timeout)', 'describe(name)' ] self.connect_info = testUtil.connectToBroker('localhost','49000') self.sess = self.connect_info[1] self.reQuery() # prepatory cleanup if os.path.isfile("/etc/init.d/"+test_svc+"-slow"): cmd.getoutput("rm -rf /etc/init.d/"+test_svc+"-slow") if not os.path.isfile("/etc/init.d/"+test_svc): cmd.getoutput("mv /etc/init.d/"+test_svc+".orig /etc/init.d/"+test_svc)
def __init__(self): cmd.getoutput("service matahari-broker start") cmd.getoutput("service matahari-network 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', '49000') self.sess = self.connect_info[1] self.reQuery() self.nic_ut = self.select_nic_for_test()
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.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.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()
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()