From 58833978de41febbbc4e89fe10ee648fd90a03a2 Mon Sep 17 00:00:00 2001 From: Aliaksandr Nikitsin Date: Fri, 10 Oct 2025 15:50:29 +0200 Subject: [PATCH 1/2] change dns module styles --- .../test/dns/resources/report_template.jinja2 | 12 +++++----- resources/report/test_report_styles.css | 24 +++++++++++++------ 2 files changed, 23 insertions(+), 13 deletions(-) diff --git a/modules/test/dns/resources/report_template.jinja2 b/modules/test/dns/resources/report_template.jinja2 index 8e701a8e3..3a66f130d 100644 --- a/modules/test/dns/resources/report_template.jinja2 +++ b/modules/test/dns/resources/report_template.jinja2 @@ -12,12 +12,12 @@ {% for row in module_data %} -
{{ row['src'] }}
-
{{ row['dst'] }}
-
{{ row['res_ip'] }}
-
{{ row['typ'] }}
-
{{ row['dat'] }}
-
{{ row['count'] }}
+
{{ row['src'] }}
+
{{ row['dst'] }}
+
{{ row['res_ip'] }}
+
{{ row['typ'] }}
+
{{ row['dat'] }}
+
{{ row['count'] }}
{% endfor %} diff --git a/resources/report/test_report_styles.css b/resources/report/test_report_styles.css index 0a90803d1..e8f1e4ef1 100644 --- a/resources/report/test_report_styles.css +++ b/resources/report/test_report_styles.css @@ -231,20 +231,30 @@ .module-data.dns-module thead tr th, .module-data.dns-module tbody tr td { - padding: 12px 16px; + padding: 12px 6px; } - .module-data.dns-module tbody tr td { - max-width: 1px; + .module-data.dns-module tbody tr td.dns-ip { + max-width: 130px; } - .module-data.dns-module tbody tr td.count-row { - width: 1px; + .module-data.dns-module tbody tr td.dns-type { + max-width: 70px; + } + + .module-data.dns-module tbody tr td.dns-count { + width: 10px; + } + + .module-data.dns-module tbody tr td.dns-count div { + text-align: center; + } + .module-data.dns-module tbody tr td.dns-url { + max-width: 285px; } .module-data.dns-module tbody tr td div { - word-wrap: break-word; - overflow-wrap: break-word; + word-break: break-all; } div.steps-to-resolve { From 32ee9cf95b718f88a4b9e77e3ea38e75faea7380 Mon Sep 17 00:00:00 2001 From: Aliaksandr Nikitsin Date: Fri, 10 Oct 2025 17:56:50 +0200 Subject: [PATCH 2/2] unit tests --- .../unit/dns/reports/dns_report_local.html | 96 +++++++++---------- 1 file changed, 48 insertions(+), 48 deletions(-) diff --git a/testing/unit/dns/reports/dns_report_local.html b/testing/unit/dns/reports/dns_report_local.html index 6d4d80a88..95e2f7080 100644 --- a/testing/unit/dns/reports/dns_report_local.html +++ b/testing/unit/dns/reports/dns_report_local.html @@ -48,68 +48,68 @@

DNS Module

-
10.10.10.14
-
10.10.10.4
-
N/A
-
Query
-
mqtt.googleapis.com
-
64
+
10.10.10.14
+
10.10.10.4
+
N/A
+
Query
+
mqtt.googleapis.com
+
64
-
10.10.10.4
-
10.10.10.14
-
173.194.195.206
-
Response
-
mqtt.googleapis.com
-
38
+
10.10.10.4
+
10.10.10.14
+
173.194.195.206
+
Response
+
mqtt.googleapis.com
+
38
-
10.10.10.4
-
10.10.10.14
-
2607:f8b0:4001:c11::ce
-
Response
-
mqtt.googleapis.com
-
32
+
10.10.10.4
+
10.10.10.14
+
2607:f8b0:4001:c11::ce
+
Response
+
mqtt.googleapis.com
+
32
-
10.10.10.14
-
10.10.10.4
-
N/A
-
Query
-
pool.ntp.org
-
7
+
10.10.10.14
+
10.10.10.4
+
N/A
+
Query
+
pool.ntp.org
+
7
-
10.10.10.4
-
10.10.10.14
-
N/A
-
Response
-
pool.ntp.org
-
4
+
10.10.10.4
+
10.10.10.14
+
N/A
+
Response
+
pool.ntp.org
+
4
-
10.10.10.4
-
10.10.10.14
-
5.78.89.3
-
Response
-
pool.ntp.org
-
2
+
10.10.10.4
+
10.10.10.14
+
5.78.89.3
+
Response
+
pool.ntp.org
+
2
-
10.10.10.4
-
10.10.10.14
-
199.68.201.234
-
Response
-
pool.ntp.org
-
2
+
10.10.10.4
+
10.10.10.14
+
199.68.201.234
+
Response
+
pool.ntp.org
+
2
-
10.10.10.4
-
10.10.10.14
-
2607:f8b0:4001:c08::ce
-
Response
-
mqtt.googleapis.com
-
6
+
10.10.10.4
+
10.10.10.14
+
2607:f8b0:4001:c08::ce
+
Response
+
mqtt.googleapis.com
+
6