def supervisor_controlled_processes_running(self):
# Use the api to verify the processes controlled by supervisor are all in a RUNNING state
try:
response = self.chroma_manager.get('/api/system_status/')
except requests.ConnectionError:
logger.warning("Connection error trying to connect to the manager")
return False
self.assertEqual(response.successful, True, response.text)
system_status = response.json
non_running_processes = []
for process in system_status['supervisor']:
if not process['statename'] == 'RUNNING':
non_running_processes.append(process)
if non_running_processes:
logger.warning("Supervisor processes found not to be running: '%s'" % non_running_processes)
return False
else:
return True
api_testcase_with_test_reset.py 文件源码
python
阅读 19
收藏 0
点赞 0
评论 0
评论列表
文章目录