remove bad debug message

This commit is contained in:
AleaJactaEst 2018-02-13 22:33:40 +01:00
parent 279c4cd9a2
commit eddcac1f19

View file

@ -79,7 +79,6 @@ class TestManager(unittest.TestCase):
config.add_section('command:test') config.add_section('command:test')
config.set('command:test', 'path', workdir) config.set('command:test', 'path', workdir)
config.set('command:test', 'command', self.program) config.set('command:test', 'command', self.program)
print("-"*10, 'A1')
try: try:
client = Client.Client(None, None, None) client = Client.Client(None, None, None)
client._load_config(config) client._load_config(config)
@ -87,8 +86,6 @@ class TestManager(unittest.TestCase):
except: except:
self.fail('Error detected on load config') self.fail('Error detected on load config')
print("-"*10, 'A2')
manage = Manager.Manager(False) manage = Manager.Manager(False)
manage._load_config(config) manage._load_config(config)
manage.initialize_http() manage.initialize_http()
@ -105,13 +102,11 @@ class TestManager(unittest.TestCase):
msgjson = client.send_json({'name': 'command:test', 'action': 'test'}, 'POST', "/STDIN", show_result=False) msgjson = client.send_json({'name': 'command:test', 'action': 'test'}, 'POST', "/STDIN", show_result=False)
print(msgjson) print(msgjson)
assert msgjson == {'state' : 'ok'} assert msgjson == {'state' : 'ok'}
print("-"*80)
msgjson = client.send_json({'name': 'command:test'}, 'POST', "/STOP", show_result=False) msgjson = client.send_json({'name': 'command:test'}, 'POST', "/STOP", show_result=False)
assert msgjson == {'state' : 'stopped'} assert msgjson == {'state' : 'stopped'}
msgjson = client.send_json({'name': 'command:test'}, 'GET', "/STATUS", show_result=False) msgjson = client.send_json({'name': 'command:test'}, 'GET', "/STATUS", show_result=False)
assert msgjson == {'state' : 'stopped'} assert msgjson == {'state' : 'stopped'}
print("-"*10, 'A3')
manage.receive_signal(15, 1) manage.receive_signal(15, 1)
manage.wait_children_commands() manage.wait_children_commands()
#Disable timeout #Disable timeout