Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
850 commits
Select commit Hold shift + click to select a range
3f8ea7c
Adds button action on space click
sofyakurilova Sep 23, 2024
7049707
Adds focus trap
sofyakurilova Sep 23, 2024
727f1ea
Fix tests
sofyakurilova Sep 23, 2024
f43519a
369106935: (fix) [a11y] make focused element announced (#807)
OlgaMardvilko Sep 24, 2024
7b8bf72
Focus with delay to allow screen reader detect changes
sofyakurilova Sep 24, 2024
6b31410
Focus risk assessment link when appears
sofyakurilova Sep 24, 2024
d85e792
369314564: (fix) set focus after callout dismissed (#812)
OlgaMardvilko Sep 25, 2024
9df0cd7
369312866: (fix) set focus after welcome modal is closed (#813)
OlgaMardvilko Sep 25, 2024
9e22f0d
Fix profiles page style to fit the screen
sofyakurilova Sep 24, 2024
3fa26ad
Improve style for buttons
sofyakurilova Sep 25, 2024
b689291
Improve style for buttons
sofyakurilova Sep 25, 2024
3753427
358071738: (feat) prevent listening mgtt internet connect event in si…
OlgaMardvilko Sep 25, 2024
b10a023
remove singl_intf parameter from start_ui
hitnik Sep 20, 2024
81b759e
single_intf config parameter
hitnik Sep 20, 2024
9f39f1d
added test_get_devices_format (#809)
MariusBaldovin Sep 25, 2024
1acb918
Fix condition to show dialog on name change
sofyakurilova Sep 25, 2024
bf12aa7
Fix tests
sofyakurilova Sep 25, 2024
4b4cd37
365978129: (feat) add PDF report templates (#801)
OlgaMardvilko Sep 26, 2024
957ba71
369538601: (fix) set focus to first interactive elem after stop test …
OlgaMardvilko Sep 26, 2024
aa570c2
Remove steps to resolve from information tests (#817)
jboddey Sep 26, 2024
5ee5374
369327155: (fix) set focus to selected risk profile if no changes on …
OlgaMardvilko Sep 27, 2024
de3cec8
Prevent default event
sofyakurilova Sep 26, 2024
5a49438
Adds simple dialog announcement
sofyakurilova Sep 27, 2024
291e603
Fix tests
sofyakurilova Sep 27, 2024
eccfb23
Return focus on previous active element
sofyakurilova Sep 27, 2024
e028128
remove vsa tag (#823)
jhughesoti Sep 27, 2024
1846b16
Fix baseline tests (#821)
MariusBaldovin Sep 30, 2024
c65f0a1
Active delete button on space and enter
sofyakurilova Sep 30, 2024
f226d78
369779748: (fix) add field name to validation rule for announce by Sc…
OlgaMardvilko Sep 30, 2024
7490c60
Add delay and fix dialog open configuration
sofyakurilova Sep 30, 2024
ccb8cea
Fix tests
sofyakurilova Sep 30, 2024
326b810
367979183: (fix) announce the result and description on completed tes…
OlgaMardvilko Sep 30, 2024
8087d14
Add optional recommendations for informational tests on pilot devices…
jboddey Sep 30, 2024
4a02251
select row on enter and space
sofyakurilova Sep 30, 2024
a2b7631
369542969: (fix) announce completed test modal (#832)
OlgaMardvilko Sep 30, 2024
464c6e8
fixed _ load_version (#828)
MariusBaldovin Sep 30, 2024
9fa3290
Feature/tls 1.0 (#783)
jhughesoti Oct 1, 2024
70d9f16
fix device disconnected whilst monitoring (#830)
hitnik Oct 1, 2024
d968d27
369538601: (fix) focus first interactive elem on start or stop testru…
OlgaMardvilko Oct 1, 2024
ac769d5
Adds deactivate guard for devices page
sofyakurilova Oct 1, 2024
3dd014b
Fix audit
sofyakurilova Oct 1, 2024
25df584
369788198: (fix) validation message alignment on create device (#842)
OlgaMardvilko Oct 2, 2024
11d61b1
370729271: (fix) remove asterisks on the questions in the device flow…
OlgaMardvilko Oct 2, 2024
b1c4f7b
framework/unit_tests (#841)
jhughesoti Oct 2, 2024
01b6601
370711565: (fix) changes for informational test result (#844)
OlgaMardvilko Oct 2, 2024
ebf87b7
Add role and aria-live for screen reader
sofyakurilova Oct 2, 2024
5fbacca
370923173: (fix) remove close button from the certificates panel (#847)
OlgaMardvilko Oct 2, 2024
a69409a
Change text in risk dialog
sofyakurilova Oct 2, 2024
780d3c4
Revised device qualification PDF report and Pilot PDF report. The rep…
hitnik Oct 2, 2024
416e288
Switch test modules base image to pytho:3.10-slim image (#833)
jhughesoti Oct 2, 2024
6b487b8
Change description for NTP test failure (#835)
jboddey Oct 2, 2024
76d8256
370012527: (feat) update PDF reports styles (#850)
OlgaMardvilko Oct 3, 2024
2f63319
Update docs (#839)
jboddey Oct 3, 2024
39e176d
Perform some refactoring (#846)
jboddey Oct 3, 2024
139f03f
Fix report_test.py tests (#848)
MariusBaldovin Oct 4, 2024
3471b1b
369538601: (fix) set focus to first interactive elem after stop test …
OlgaMardvilko Oct 7, 2024
4943253
371506031: (fix) make the welcome modal be on top completed test moda…
OlgaMardvilko Oct 7, 2024
6371363
366151318: (fix) add communicate steps on create device (#851)
OlgaMardvilko Oct 7, 2024
c8ab340
370941517: (fix) return focus to initial btn after cancel download zi…
OlgaMardvilko Oct 7, 2024
61a1ef8
371177676: (fix) set focus to the initial device if cancel on edit de…
OlgaMardvilko Oct 7, 2024
e2972b6
371525395: (fix) exclude error status from count of completed test re…
OlgaMardvilko Oct 8, 2024
29e65d9
371948760: (fix) set focus to first interactive elem after start test…
OlgaMardvilko Oct 8, 2024
b7b3944
feature/dns_module_resolved_ips (#862)
jhughesoti Oct 8, 2024
cc3ef21
stop monitoring when test run is cancelled (#855)
hitnik Oct 8, 2024
d52b29b
session/remove_invalid_questions (#834)
MariusBaldovin Oct 8, 2024
2b01d51
API tests (#766)
MariusBaldovin Oct 8, 2024
d0c31fd
371525174: (fix) update ui on PDF report (#866)
OlgaMardvilko Oct 8, 2024
e46a9c0
Fix navigation structure in PDF report (#867)
jboddey Oct 9, 2024
65c74ed
copy a device profile questionnaire to risk profile
hitnik Oct 7, 2024
57fada4
device risk to risk_profile risk
hitnik Oct 8, 2024
9800a1c
page counter
hitnik Oct 9, 2024
94a3a9d
bold table headers
hitnik Oct 9, 2024
a9e35b9
test report duration format
hitnik Oct 9, 2024
01222a5
372610099: (fix) update the text for Risk assessment complete modal (…
OlgaMardvilko Oct 10, 2024
35358b2
fix sensitive info risk
hitnik Oct 10, 2024
7a4b88f
Remove global app component store
sofyakurilova Oct 15, 2024
0ea6aaa
372804973: (fix) make risk profile names not case sensitive (#882)
OlgaMardvilko Oct 15, 2024
9daa9d3
370942396: (fix) change create device errors and program styles for i…
OlgaMardvilko Oct 15, 2024
49df261
Adds action value instead of null, undefined, string; move common fun…
sofyakurilova Oct 16, 2024
a682b9a
369806347: (fix) improve unit tests (#887)
OlgaMardvilko Oct 16, 2024
547a41e
Send event to GA when test run is completed for Pilot program
sofyakurilova Oct 16, 2024
6181a72
373617780: (fix) change to allow MAC address error text move on to ne…
OlgaMardvilko Oct 16, 2024
1c9bb38
Answers per page calculation refactor (#884)
hitnik Oct 17, 2024
50fef24
Send event to GA when Pilot zip is downloaded
sofyakurilova Oct 16, 2024
a3a238a
Fix tests
sofyakurilova Oct 17, 2024
71c7581
373855404: (fix) allow to change case of letters for existing profile…
OlgaMardvilko Oct 17, 2024
58d52ef
Device endpoints (#872)
MariusBaldovin Oct 17, 2024
d3206dd
Profiles endpoint (#870)
MariusBaldovin Oct 17, 2024
0c14365
Reports endpoint (#868)
MariusBaldovin Oct 17, 2024
515aa7d
Certificates endpoint (#861)
MariusBaldovin Oct 17, 2024
a81d9b1
Remove v from firmware version in UI (#897)
jboddey Oct 18, 2024
fa0de21
372768360: (feat) [Settings] only device port is enabled in no intern…
OlgaMardvilko Oct 18, 2024
fc46050
Change error message
sofyakurilova Oct 18, 2024
5a0ac68
Fix tests
sofyakurilova Oct 18, 2024
46c39ea
Update statuses.md (#894)
jboddey Oct 18, 2024
e3e6e1a
Add release 2.0 fixes to dev (#879)
jboddey Oct 18, 2024
85244da
Fix spelling mistake in report (#902)
jboddey Oct 18, 2024
0715cef
Hide complete dialog if test run is missing in reports
sofyakurilova Oct 21, 2024
5ee001b
374055268: (fix) prevent overwrite copied profile (#909)
OlgaMardvilko Oct 21, 2024
7247ac4
Update dependencies (#903)
jboddey Oct 21, 2024
9a99c45
Merge hotfix into dev (#911)
jboddey Oct 22, 2024
0d9f64a
The link provided in the risk profile answers is not clickable (#908)
sofyakurilova Oct 22, 2024
c5a2a04
Catch invalid device config nicely (#912)
jboddey Oct 22, 2024
1589978
Check if dhcp-1.pcap exists (#913)
jboddey Oct 22, 2024
f86804d
Skip first default values to display error correctly
sofyakurilova Oct 23, 2024
ccddc4d
updated package.yml to start testrun and check if successfully starte…
MariusBaldovin Oct 23, 2024
837be6a
Add better error handling to port stat tests (#914)
jboddey Oct 23, 2024
fccc586
374258745: (fix) [PDF report] wrap long words into the next line to p…
OlgaMardvilko Oct 24, 2024
5b021df
Adds separate method for value
sofyakurilova Oct 24, 2024
ce95c24
375367968: (fix) [Setting panel] remove callout about two ports warni…
OlgaMardvilko Oct 25, 2024
30d0ac9
374084009: Fix error on restoring DHCP server configuration if device…
jboddey Oct 28, 2024
aadb7a0
updated readme.md (#926)
MariusBaldovin Oct 29, 2024
851981c
Upload cert - error handling (#924)
MariusBaldovin Oct 29, 2024
3c0e8d4
Feature/cli no UI (#916)
jhughesoti Oct 29, 2024
ab785be
Connection/README.md (#937)
MariusBaldovin Oct 31, 2024
e8a8593
Disable MQTT log (#930)
jboddey Oct 31, 2024
1fe91e4
corrected mistake on vnc (#940)
MariusBaldovin Oct 31, 2024
2dac94e
remove dublicate tests from the TLS test module (#942)
hitnik Oct 31, 2024
dbece93
tls/README.md (#941)
MariusBaldovin Oct 31, 2024
c048531
updated protocol/README.md (#939)
MariusBaldovin Oct 31, 2024
bcf35c7
update readme.mf for dns module (#938)
MariusBaldovin Oct 31, 2024
64c8fc9
updated postman file (#865)
MariusBaldovin Oct 31, 2024
c56adac
Scapy update to 2.6.0 (#943)
MariusBaldovin Oct 31, 2024
20974d9
added procps package in base container (#945)
MariusBaldovin Nov 4, 2024
23a3201
remove the mqtt debug line (#944)
MariusBaldovin Nov 4, 2024
eb7f292
Unit tests (#946)
MariusBaldovin Nov 4, 2024
f66cd75
Fix security.services.vnc test (#921)
MariusBaldovin Nov 4, 2024
84c354b
Change test in Delete Report Dialog
sofyakurilova Nov 4, 2024
4ac264e
Fix style
sofyakurilova Nov 4, 2024
bc8a1fe
added error handling if 200~dhcp-1.pcap is empty (#949)
MariusBaldovin Nov 4, 2024
bc986de
Add communication network type test (#950)
jhughesoti Nov 4, 2024
f60af44
Adds tooltip for title
sofyakurilova Nov 6, 2024
ee105a3
Fix is based on console error
sofyakurilova Nov 6, 2024
7af5b42
Feature/sys test timeout (#951)
jhughesoti Nov 6, 2024
8b98a5f
374289627: (fix) change the report url from static to dynamic (#954)
OlgaMardvilko Nov 7, 2024
bb9c98a
Pin python requirements (#764)
jhughesoti Nov 7, 2024
18c9752
typo error (#961)
MariusBaldovin Nov 12, 2024
f163711
Conn/module_config typo errors (#959)
MariusBaldovin Nov 12, 2024
33db0a9
conn/ipv6_slaac (#962)
MariusBaldovin Nov 12, 2024
c22457e
Fix tls error result (#963)
jhughesoti Nov 13, 2024
a42de22
Add BACnet test and extend port scan (#957)
jboddey Nov 13, 2024
de942c2
Error handling for connection module (#960)
MariusBaldovin Nov 13, 2024
755c717
Adds coverage check
sofyakurilova Nov 18, 2024
dba5024
Adds coverage check
sofyakurilova Nov 18, 2024
5bb6bb0
Adds coverage check
sofyakurilova Nov 18, 2024
015270a
Fix floating test issue
sofyakurilova Nov 19, 2024
a5ff62a
Fix permissions of resources folder during install (#974)
jboddey Nov 20, 2024
a9a1420
Only run tests if they are included in the device's test pack (#956)
jboddey Nov 21, 2024
de47f2d
changed the logic to display the description when test is non complia…
MariusBaldovin Nov 21, 2024
1c209d5
fix chrony install error (#979)
hitnik Nov 21, 2024
8ac041d
Error handling when lease is None (#981)
MariusBaldovin Nov 22, 2024
9af06af
Bacnet traceback error (#989)
MariusBaldovin Nov 25, 2024
561ddc1
Feature/tls module report (#871)
jhughesoti Nov 29, 2024
1a45400
Initialize listener every time (#990)
jhughesoti Nov 29, 2024
fc6738c
Merge release changes into dev (#1030)
jboddey Dec 20, 2024
3248a64
Update Crypto and Jinja libraries (#1038)
jboddey Jan 2, 2025
cadb6bf
Added debug message in case users enters an incorrect device mac addr…
MariusBaldovin Jan 3, 2025
cca00ab
Allow NTPv3 packets (#1048)
jboddey Jan 6, 2025
d6b5231
Re-render device profile (#1050)
MariusBaldovin Jan 8, 2025
421e52d
Handling error if profile name contains special characters (#1043)
MariusBaldovin Jan 8, 2025
390b572
389661817: (feat) change profile name validation (#1057)
OlgaMardvilko Jan 14, 2025
3365ab3
Add column; change pilot text; change order of columns
sofyakurilova Jan 14, 2025
2d9d145
389657377: (feat) add status Starting to UI (#1062)
OlgaMardvilko Jan 15, 2025
95011c0
Add full port scan to determine any HTTPS/TLS server running on non-s…
jhughesoti Jan 16, 2025
7d050aa
Remove 'v' from testing complete modal (#1063)
jboddey Jan 16, 2025
237223a
384421113: Add starting status (#1032)
jboddey Jan 17, 2025
0b36aa2
Pin download artifact actions (#1065)
jboddey Jan 17, 2025
d3ff78e
Adds statuses for Testing complete modal
sofyakurilova Jan 21, 2025
472f253
Profile export endpoint (#1052)
MariusBaldovin Jan 27, 2025
c251c99
Fix protocol.services.bacnet (#1082)
MariusBaldovin Jan 28, 2025
0285f49
tr-ws/tr-ui containers (#1089)
MariusBaldovin Jan 30, 2025
5055ac1
Generating module reports using Jinja2 (#1073)
hitnik Jan 31, 2025
9bbc3a9
Update dependencies; increase budget
sofyakurilova Jan 31, 2025
eec9cfd
Add a disclaimer about tests affected by single interface mode (#1056)
jboddey Jan 31, 2025
4df99ec
Update TLS client description (#1097)
jboddey Feb 2, 2025
6868082
Set test description for module timeout (#1098)
jboddey Feb 3, 2025
86aade5
Fix services resolving wrong ip (#1096)
jhughesoti Feb 7, 2025
270eadd
384032243: Rename test result to pilot recommendation (#1031)
jboddey Feb 11, 2025
fae4954
fixed reports unittest (#1110)
MariusBaldovin Feb 12, 2025
030ad4c
prevent mqtt sending messages when test is not running
hitnik Feb 12, 2025
a0977f7
Fix bacnet version for devices that do not report IP address in their…
jhughesoti Feb 20, 2025
5f020c6
added logger if no bacnet packets are found for the object_id (#1152)
MariusBaldovin Feb 20, 2025
c652654
Merge release changes into dev (#1154)
jboddey Feb 21, 2025
f89449a
fix pilot report steps to resolve
hitnik Feb 25, 2025
f67c816
fix presence of empty steps to resolve
hitnik Feb 25, 2025
6d834ae
fix no type attribute error (#1164)
MariusBaldovin Feb 28, 2025
7556560
Add the "export" field to the MQTT message
hitnik Feb 19, 2025
8129096
"export" field to the /reports api endpoint
hitnik Feb 19, 2025
28418ae
fix API unit tests
hitnik Feb 19, 2025
4219b44
handle the dns.pcap missing (#1166)
MariusBaldovin Feb 28, 2025
8d80ffb
DNS module bug (#1165)
MariusBaldovin Feb 28, 2025
9cad994
fix the duration in pilot and qualification (#1167)
MariusBaldovin Mar 2, 2025
a10d8a2
Use field "export" for zip download, or make url from "report" field …
sofyakurilova Mar 3, 2025
6ccff43
Change host for "export" field
sofyakurilova Mar 3, 2025
1a16056
Fix test
sofyakurilova Mar 3, 2025
a80989d
Fix spelling of occurred (#1170)
jboddey Mar 5, 2025
b686ca3
Catch OS error in TLS server protocol test (#1171)
jboddey Mar 5, 2025
daeec25
Increase timeout value for /export request
sofyakurilova Mar 11, 2025
f8061fa
Use base64 icons instead of font for proper rendering without interne…
sofyakurilova Mar 19, 2025
fee256b
Fix html to not display font icons
sofyakurilova Mar 20, 2025
0d81b7d
Update DNS from DHCP test description (#1192)
jboddey Mar 26, 2025
90e4ef7
fix key service not found error (#1194)
MariusBaldovin Mar 26, 2025
3515281
Test tests (#1177)
MariusBaldovin Mar 26, 2025
2e24937
Resolve and use device address for reads (#1215)
jhughesoti Apr 4, 2025
44ee015
Fix missing bracket (#1217)
jboddey Apr 4, 2025
3a48fdb
Removed Ubuntu 20.04 runner (#1243)
MariusBaldovin Apr 16, 2025
6dd43a2
bug/ethtool (#1242)
jhughesoti Apr 16, 2025
57650ae
feature/allow_monitor_disconnect (#1249)
jhughesoti Apr 17, 2025
e8f5e33
Merge google material 3 changes into dev
sofyakurilova Apr 25, 2025
187037e
fix the tcp/udp scans to target the correct ip address (#1269)
MariusBaldovin Apr 25, 2025
2abc889
PDF report bug on device profile update (#1267)
MariusBaldovin Apr 25, 2025
cb1302c
Feature/module logging (#1135)
jhughesoti Apr 25, 2025
ba9a8f2
Add disable option to network modules (#1275)
jhughesoti Apr 29, 2025
caccd5e
Test tests (NTP) (#1284)
MariusBaldovin May 6, 2025
15dc480
Release/v2.2 (#1281)
jboddey May 6, 2025
f34a012
Regenerate the pdf on donwload if device profile is updated (#1283)
MariusBaldovin May 6, 2025
950a60e
413365465: (fix) [v2.2.1] add validation to disallow forward slashes …
OlgaMardvilko May 6, 2025
507710b
Do not show Welcome modal when opening TR in another tab (#1274)
sofyakurilova May 6, 2025
5b15d56
416198286: (fix) fix compliant status replaced with no-compliant resu…
OlgaMardvilko May 7, 2025
8d0dfb2
416187964: (fix) update dependences for fixing security issues (#1288)
OlgaMardvilko May 7, 2025
d09cce6
remove any kind of IP multicast from mdns test (#1294)
MariusBaldovin May 13, 2025
d0fc5e3
Testing/modbus (#1295)
MariusBaldovin May 13, 2025
ccc4147
feature/ntp_report_packets (#1296)
jhughesoti May 13, 2025
4bcebc3
show outbound connections when no tls connections are found (#1297)
jhughesoti May 14, 2025
ab57ea4
Change stop method to async (#1292)
jboddey May 14, 2025
b486af0
Fix bugs in _security_tls_v1_2_server (#1248)
MariusBaldovin May 15, 2025
2977c01
Fix Outbound connections table format (#1298)
hitnik May 15, 2025
074c7f6
Show loader for stopping status (#1299)
sofyakurilova May 16, 2025
0fa11f7
Fix settings update (#1300)
sofyakurilova May 16, 2025
e526ed6
Highlight Required if possible and Required with Non-Compliant result…
sofyakurilova May 21, 2025
a733cb2
409766621: (feat) add clear search button (#1307)
OlgaMardvilko May 22, 2025
7901002
Calculate tests count for first page (#1306)
sofyakurilova May 22, 2025
5173246
418729718: (fix) change error message view for the same port selected…
OlgaMardvilko May 22, 2025
65a5898
Add details feild to the test case result
hitnik May 16, 2025
9f2e9f3
pylint
hitnik May 19, 2025
8b02c8f
fix "details" key error
hitnik May 20, 2025
ee0a407
416241072: (feat) provide further context in test results (#1309)
OlgaMardvilko May 23, 2025
c2c5666
413638736: (fix) change design for discard popup (#1310)
OlgaMardvilko May 26, 2025
6f132de
410565507: (fix) changes to close form when creating via actions butt…
OlgaMardvilko May 29, 2025
a577134
410583302: (fix) changes for prevent RA disappeared after copy (#1315)
OlgaMardvilko Jun 2, 2025
51bbdcf
421374390: (fix) change save risk profile popup design (#1316)
OlgaMardvilko Jun 2, 2025
032cfdf
As create date does not contain time, the validator change to compare…
sofyakurilova Jun 2, 2025
648fb44
Change menu for outdated device (#1318)
sofyakurilova Jun 5, 2025
fc83330
410583302: (fix) changes for prevent profile disappeared after copy (…
OlgaMardvilko Jun 5, 2025
42e49e6
Align the details by center (#1320)
sofyakurilova Jun 5, 2025
3c9aebc
421375877: (fix) remove actions menu for copy profile (#1322)
OlgaMardvilko Jun 10, 2025
9876c25
Change order of inputs (#1324)
sofyakurilova Jun 10, 2025
f12021d
Adds new status for easier profile management (#1325)
sofyakurilova Jun 11, 2025
b0092f0
added time to risk profile creation date
hitnik Jun 16, 2025
4bca569
device created_at, modified_at field
hitnik Jun 17, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
78 changes: 75 additions & 3 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,17 @@ on:
push:
branches:
- 'dev'
- 'release/*'

permissions:
contents: read

jobs:
testrun_package:
create_package:
permissions: {}
name: Package
runs-on: ubuntu-22.04
timeout-minutes: 5
timeout-minutes: 10
steps:
- name: Checkout source
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
Expand All @@ -24,4 +28,72 @@ jobs:
uses: actions/upload-artifact@694cdabd8bdb0f10b2cea11669e1bf5453eed0a6 # v4.2.0
with:
name: testrun_package
path: testrun*.deb
path: testrun*.deb

install_package_22:
permissions: {}
needs: create_package
name: Install on Ubuntu 22.04
runs-on: ubuntu-22.04
timeout-minutes: 15
steps:
- name: Checkout source
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Download package
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
with:
name: testrun_package
- name: Install dependencies
shell: bash {0}
run: sudo cmd/prepare
- name: Install package
shell: bash {0}
run: sudo apt install ./testrun*.deb
- name: Start testrun
shell: bash {0}
run: sudo testrun > >(tee testrun_output.log) 2>&1 &
- name: Verify testrun started
shell: bash {0}
run: |
sleep 5
if grep -q "API waiting for requests" testrun_output.log; then
echo "Testrun started successfully."
else
echo "Testrun did not start correctly."
cat testrun_output.log
exit 1
fi

install_package_24:
permissions: {}
needs: create_package
name: Install on Ubuntu 24.04
runs-on: ubuntu-24.04
timeout-minutes: 15
steps:
- name: Checkout source
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Download package
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
with:
name: testrun_package
- name: Install dependencies
shell: bash {0}
run: sudo cmd/prepare
- name: Install package
shell: bash {0}
run: sudo apt install ./testrun*.deb
- name: Start testrun
shell: bash {0}
run: sudo testrun > >(tee testrun_output.log) 2>&1 &
- name: Verify testrun started
shell: bash {0}
run: |
sleep 5
if grep -q "API waiting for requests" testrun_output.log; then
echo "Testrun started successfully."
else
echo "Testrun did not start correctly."
cat testrun_output.log
exit 1
fi
6 changes: 1 addition & 5 deletions .github/workflows/scorecard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ on:
# For Branch-Protection check. Only the default branch is supported. See
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#branch-protection
branch_protection_rule:
# To guarantee Maintained check is occasionally updated. See
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#maintained
schedule:
- cron: '20 6 * * 4'
push:
branches: [ "main" ]

Expand Down Expand Up @@ -70,4 +66,4 @@ jobs:
- name: "Upload to code-scanning"
uses: github/codeql-action/upload-sarif@1b1aada464948af03b950897e5eb522f92603cc2 # v3.24.9
with:
sarif_file: results.sarif
sarif_file: results.sarif
77 changes: 71 additions & 6 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,29 @@ on:
- cron: '0 13 * * *'

jobs:
testrun_tests:
permissions: {}
name: Tests
runs-on: ubuntu-22.04
timeout-minutes: 60
steps:
- name: Checkout source
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Install dependencies
shell: bash {0}
run: cmd/prepare
- name: Install Testrun
shell: bash {0}
run: TESTRUN_DIR=. cmd/install
timeout-minutes: 30
- name: Run tests
shell: bash {0}
run: testing/tests/test_tests

testrun_baseline:
permissions: {}
name: Baseline
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
timeout-minutes: 20
steps:
- name: Checkout source
Expand All @@ -29,7 +48,7 @@ jobs:
testrun_api:
permissions: {}
name: API
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
timeout-minutes: 60
steps:
- name: Checkout source
Expand All @@ -39,7 +58,7 @@ jobs:
run: cmd/prepare
- name: Install Testrun
shell: bash {0}
run: TESTRUN_DIR=. cmd/install
run: cmd/install -l
timeout-minutes: 30
- name: Run tests
shell: bash {0}
Expand All @@ -55,6 +74,52 @@ jobs:
name: runtime_api_${{ github.run_id }}
path: runtime.tgz

testrun_unit:
permissions: {}
name: Unit
runs-on: ubuntu-22.04
timeout-minutes: 15
steps:
- name: Checkout source
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Install dependencies
shell: bash {0}
run: cmd/prepare
- name: Install Testrun
shell: bash {0}
run: cmd/install -l
- name: Run tests for conn module
shell: bash {0}
run: bash testing/unit/run_test_module.sh conn captures ethtool ifconfig output
- name: Run tests for dns module
shell: bash {0}
run: bash testing/unit/run_test_module.sh dns captures reports output
- name: Run tests for ntp module
shell: bash {0}
run: bash testing/unit/run_test_module.sh ntp captures reports output
- name: Run tests for protocol module
shell: bash {0}
run: bash testing/unit/run_test_module.sh protocol captures output
- name: Run tests for services module
shell: bash {0}
run: bash testing/unit/run_test_module.sh services reports results output
- name: Run tests for tls module
shell: bash {0}
run: bash testing/unit/run_test_module.sh tls captures certAuth certs reports root_certs output
- name: Run tests for risk profiles
shell: bash {0}
run: bash testing/unit/run_report_test.sh testing/unit/risk_profile/risk_profile_test.py
- name: Run tests for reports
shell: bash {0}
run: bash testing/unit/run_report_test.sh testing/unit/report/report_test.py
- name: Upload reports
uses: actions/upload-artifact@694cdabd8bdb0f10b2cea11669e1bf5453eed0a6 # v4.2.0
if: ${{ always() }}
with:
if-no-files-found: error
name: unit_reports_${{ github.run_id }}
path: testing/unit/report/output

pylint:
permissions: {}
name: Pylint
Expand All @@ -76,7 +141,7 @@ jobs:
- name: Install Node
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1
with:
node-version: 18.18.0
node-version: 18.19.0
- name: Install Chromium Browser
run: sudo apt install chromium-browser
- name: Install dependencies
Expand All @@ -85,7 +150,7 @@ jobs:
- name: Run tests
run: |
export CHROME_BIN=/usr/bin/chromium-browser
CI=true npm run test-headless
CI=true npm run test-ci
env:
CI: true
working-directory: ./modules/ui
Expand All @@ -99,7 +164,7 @@ jobs:
- name: Install Node
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1
with:
node-version: 18.18.0
node-version: 18.19.0
- name: Install dependencies
run: npm install && npm ci
working-directory: ./modules/ui
Expand Down
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,20 @@ build/

# Ignore generated files from unit tests
testing/unit_test/temp/
testing/unit/conn/output/
testing/unit/dns/output/
testing/unit/nmap/output/
testing/unit/ntp/output/
testing/unit/tls/output/
testing/unit/tls/tmp/
testing/unit/report/output/
testing/unit/risk_profile/output/
testing/unit/services/output/

# Ignore generated files from requirements generation
*requirements_freeze.txt
*unique_freeze.txt
*requirements_gen.txt

*.deb
make/DEBIAN/postinst
Expand Down
Loading
Loading