diff options
Diffstat (limited to 'elastic')
-rwxr-xr-x | elastic/generate-config.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/elastic/generate-config.py b/elastic/generate-config.py index abb8d7c..9d5358c 100755 --- a/elastic/generate-config.py +++ b/elastic/generate-config.py @@ -23,6 +23,13 @@ def generate_visualizations(): rendered = pystache.render(template, context) + # verify we generated valid JSON visualizations + content = json.loads(rendered) + visState = content['visState'] + searchSourceJSON = content['kibanaSavedObjectMeta']['searchSourceJSON'] + assert json.loads(visState) + assert json.loads(searchSourceJSON) + out = open(out_file, 'w') out.write(rendered) out.flush() |