Add system test to measure recovery after partition (#20902)

* Add system test to measure recovery after partition

* shellcheck

* increase partition length until failure

* adjust parameters and output

* different stopping condition
This commit is contained in:
Ashwin Sekar
2021-11-08 06:51:57 -08:00
committed by GitHub
parent 2df4e7eea3
commit c56fb0f014
4 changed files with 125 additions and 3 deletions

View File

@ -1,5 +1,9 @@
#!/usr/bin/env python3
import sys, json
import sys, json, argparse
parser = argparse.ArgumentParser()
parser.add_argument("--empty_error", action="store_true", help="If present, do not print error message")
args = parser.parse_args()
data=json.load(sys.stdin)
@ -7,7 +11,7 @@ if 'results' in data:
for result in data['results']:
if 'series' in result:
print(result['series'][0]['columns'][1] + ': ' + str(result['series'][0]['values'][0][1]))
else:
elif not args.empty_error:
print("An expected result from CURL request is missing")
else:
elif not args.empty_error:
print("No results returned from CURL request")