diff options
| author | onefang | 2019-11-13 01:35:44 +1000 |
|---|---|---|
| committer | onefang | 2019-11-13 01:35:44 +1000 |
| commit | 0ca88dc140a504f123505438ead598d4e5f02025 (patch) | |
| tree | dc8d4c0772f22debfbe420642fd8d44c8612a595 /apt-panopticon-report-web.lua | |
| parent | Rewrite execute(), and also write a fork(). Now execute() properly returns t... (diff) | |
| download | apt-panopticon-0ca88dc140a504f123505438ead598d4e5f02025.zip apt-panopticon-0ca88dc140a504f123505438ead598d4e5f02025.tar.gz apt-panopticon-0ca88dc140a504f123505438ead598d4e5f02025.tar.bz2 apt-panopticon-0ca88dc140a504f123505438ead598d4e5f02025.tar.xz | |
Make the email and web reports similar, reporting the same tests.
Diffstat (limited to 'apt-panopticon-report-web.lua')
| -rwxr-xr-x | apt-panopticon-report-web.lua | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/apt-panopticon-report-web.lua b/apt-panopticon-report-web.lua index ca7ce4b..163d50f 100755 --- a/apt-panopticon-report-web.lua +++ b/apt-panopticon-report-web.lua | |||
| @@ -109,7 +109,7 @@ local status = function(host, results, typ) | |||
| 109 | end | 109 | end |
| 110 | end | 110 | end |
| 111 | 111 | ||
| 112 | if 0 < e then result = e .. " <font color='red'><b>error</b></font>" end | 112 | if 0 < e then result = e .. " <font color='red'><b>errors</b></font>" end |
| 113 | if 1 == e then result = e .. " <font color='red'><b>error</b></font>" end | 113 | if 1 == e then result = e .. " <font color='red'><b>error</b></font>" end |
| 114 | if 0 < w then | 114 | if 0 < w then |
| 115 | if 0 < e then result = result .. ", " end | 115 | if 0 < e then result = result .. ", " end |
| @@ -163,7 +163,6 @@ local collate = function(host, ip, results) | |||
| 163 | return results | 163 | return results |
| 164 | end | 164 | end |
| 165 | 165 | ||
| 166 | |||
| 167 | local mirrors = loadfile("results/mirrors.lua")() | 166 | local mirrors = loadfile("results/mirrors.lua")() |
| 168 | 167 | ||
| 169 | local file, e = io.open("results/Report-web.html", "w+") | 168 | local file, e = io.open("results/Report-web.html", "w+") |
| @@ -184,14 +183,14 @@ if nil == file then C("opening mirrors file - " .. e) else | |||
| 184 | results = collate(k, i, results) | 183 | results = collate(k, i, results) |
| 185 | end | 184 | end |
| 186 | end | 185 | end |
| 187 | -- local http = status(k, results, "http") | 186 | local http = status(k, results, "http") |
| 188 | -- local https = status(k, results, "https") | 187 | local https = status(k, results, "https") |
| 189 | local dns = "[<font color='yellow'><b>skip</b></font>]" | 188 | local dns = "[<font color='yellow'><b>skip</b></font>]" |
| 189 | local protocol = status(k, results, "Protocol") | ||
| 190 | local sanity = "[<font color='yellow'><b>skip</b></font>]" | ||
| 190 | local integrity = "[<font color='yellow'><b>skip</b></font>]" | 191 | local integrity = "[<font color='yellow'><b>skip</b></font>]" |
| 191 | local protocol = status(k, results, "Protocol") | ||
| 192 | local sanity = "[<font color='yellow'><b>skip</b></font>]" | ||
| 193 | local updated = "[<font color='yellow'><b>skip</b></font>]" | 192 | local updated = "[<font color='yellow'><b>skip</b></font>]" |
| 194 | file:write(" DNS-RR: " .. dns .. " Integrity: " .. integrity .. " Protocol: " .. protocol .. " URL-sanity: " .. sanity .. " Updated: " .. updated .. "\n<br>\n") | 193 | file:write(" http: " .. http .. " https: " .. https .. " DNS-RR: " .. dns .. " Protocol: " .. protocol .. " URL-sanity: " .. sanity .. " Integrity: " .. integrity .. " Updated: " .. updated .. "\n<br>\n") |
| 195 | end | 194 | end |
| 196 | file:write( "==== faulty mirrors: ====<br>\n<br>\n" .. faulty) | 195 | file:write( "==== faulty mirrors: ====<br>\n<br>\n" .. faulty) |
| 197 | file:write( "\n<br>\nLast Failure: NOT WRITTEN YET<br>\n<br>") | 196 | file:write( "\n<br>\nLast Failure: NOT WRITTEN YET<br>\n<br>") |
