Skip to content
This repository was archived by the owner on Nov 6, 2020. It is now read-only.

Commit cdc50e3

Browse files
author
Roland Hedberg
committed
Only one trace log
1 parent 8abe0a6 commit cdc50e3

File tree

2 files changed

+8
-183
lines changed

2 files changed

+8
-183
lines changed

src/oidctest/log.py

Lines changed: 0 additions & 176 deletions
This file was deleted.

test_tool/test_op/server/heart_mako/htdocs/logs.mako

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<%
22
import os
33
4-
def display_log(logs, issuer, profile):
4+
def display_log(base, logs, issuer, profile):
55
if issuer:
66
if profile:
77
el = "<h3>A list of tests that are saved on disk for this profile:</h3>"
@@ -14,15 +14,16 @@ def display_log(logs, issuer, profile):
1414
1515
if profile:
1616
for name, path in logs:
17-
el += '<li><a href="%s" download="%s.html">%s</a>' % (path, name, name)
17+
el += '<li><a href="{}{}" download="{}{}.html">{}</a>'.format(
18+
base, path, base, name, name)
1819
elif 'issuer':
1920
for name, path in logs:
20-
_tarfile = "/%s.tar" % path.replace("log", "tar")
21-
el += '<li><a href="/%s">%s</a> tar file:<a href="%s">Download logs</a>' % (
22-
path, name, _tarfile)
21+
_tarfile = "{}/%s.tar".format(base,path.replace("log", "tar"))
22+
el += '<li><a href="{}{}">{}</a> tar file:<a href="{}{}">Download logs</a>'.format(
23+
base, path, name, base,_tarfile)
2324
else:
2425
for name, path in logs:
25-
el += '<li><a href="%s">%s</a>' % (path, name)
26+
el += '<li><a href="{}{}">%s</a>' % (base, path, name)
2627
el += "</ul>"
2728
return el
2829
%>
@@ -78,7 +79,7 @@ def display_log(logs, issuer, profile):
7879
<!-- Main component for a primary marketing message or call to action -->
7980
<div class="jumbotron">
8081
<h1>HEART OIDC OP Test logs</h1>
81-
${display_log(logs, issuer, profile)}
82+
${display_log(basr, logs, issuer, profile)}
8283
</div>
8384

8485
</div> <!-- /container -->

0 commit comments

Comments
 (0)