diff options
Diffstat (limited to 'dashboard/dashboard/mongo2elastic/format.py')
-rw-r--r-- | dashboard/dashboard/mongo2elastic/format.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/dashboard/dashboard/mongo2elastic/format.py b/dashboard/dashboard/mongo2elastic/format.py index ef485ba..0bbde17 100644 --- a/dashboard/dashboard/mongo2elastic/format.py +++ b/dashboard/dashboard/mongo2elastic/format.py @@ -184,3 +184,21 @@ def format_vims(testcase): } } return True + + +def format_qpi(testcase): + """ + Look for these and leave any of those: + details.index + + If none are present, then return False + """ + details = testcase['details'] + if 'index' not in details: + return False + + for key, value in details.items(): + if key != 'index': + del details[key] + + return True |