juju_epc.py 文件源码

python
阅读 36 收藏 0 点赞 0 评论 0

项目:functest 作者: opnfv 项目源码 文件源码
def process_abot_test_result(file_path):
    """ Process ABoT Result """
    with open(file_path) as test_result:
        data = json.load(test_result)
        res = []
        for tests in data:
            tests = update_data(tests)
            try:
                flatten_steps = tests['elements'][0].pop('flatten_steps')
                for steps in flatten_steps:
                    steps['result'] = steps['step_status']
                    res.append(steps)
            except:
                logging.error("Could not post data to ElasticSearch host")
                raise
        return res
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号