Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[uss_qualifier/report] Fix report generation with html strings #251

Merged
merged 2 commits into from
Oct 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions monitoring/uss_qualifier/configurations/dev/uspace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ v1:
tested_roles:
report_path: output/tested_roles_uspace
report:
report_path: output/report_uspace.json
report_path: output/report_uspace.json
templated_reports:
- template_url: https://github.com/Orbitalize/reports/releases/download/v0.0.17/app-v0.0.17.zip
- template_url: https://github.com/Orbitalize/reports/releases/download/v0.0.18/app-v0.0.18.zip
output_path: output/capabilities_uspace.html
tested_requirements:
output_path: output/tested_requirements_uspace
Expand Down
4 changes: 3 additions & 1 deletion monitoring/uss_qualifier/reports/templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ def render(self):
# Configure application
rendered_configuration = json.dumps(
InjectedConfiguration(self._template.configuration, report=self._report)
)
).replace(
"</", "<\/"
) # Replace closing html tags in json strings
injected_configuration = f"""
<script id="interuss_report_json" type="application/json">
{rendered_configuration}
Expand Down
Loading