#############################################################################
# Copyright (c) 2017 Rajesh Kudaka
#
# Author: Rajesh Kudaka 4k.rajesh@gmail.com
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distribution, and is available at
# http://www.apache.org/licenses/LICENSE-2.0
#############################################################################
# vnftest comment: this is a modified copy of
# yardstick/common/html_template.py
template = """
Vnftest Report
Task ID : {{result.task_id}}
Criteria :
{{result.criteria}}
Information
# |
key |
value |
{% for key, value in result.info.items() %}
{{ loop.index }} |
{{key}} |
{{value}} |
{% endfor %}
Test Cases
# |
key |
value |
{% for key, value in result.testcases.items() %}
{{ loop.index }} |
{{key}} |
{{value.criteria}} |
{% endfor %}
"""