Exemplo n.º 1
0
 def get_completed_steps():
     is_any_exists = NodeService.is_any_monkey_exists()
     infection_done = NodeService.is_monkey_finished_running()
     if not infection_done:
         report_done = False
     else:
         if is_any_exists:
             ReportService.get_report()
         report_done = ReportService.is_report_generated()
     return dict(run_server=True,
                 run_monkey=is_any_exists,
                 infection_done=infection_done,
                 report_done=report_done)
Exemplo n.º 2
0
 def get(self):
     return ReportService.get_report()
Exemplo n.º 3
0
 def get(self):
     return ReportService.get_report()
Exemplo n.º 4
0
 def get_completed_steps():
     is_any_exists = NodeService.is_any_monkey_exists()
     infection_done = NodeService.is_monkey_finished_running()
     report_done = ReportService.is_report_generated()
     return dict(run_server=True, run_monkey=is_any_exists, infection_done=infection_done, report_done=report_done)