Skip to content

Commit 73e657e

Browse files
committed
CI: adapt the workflows to the new dir structure
1 parent 0c90d8d commit 73e657e

File tree

3 files changed

+73
-70
lines changed

3 files changed

+73
-70
lines changed

.github/workflows/unit-tests.yml

Lines changed: 73 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -26,66 +26,79 @@ jobs:
2626
strategy:
2727
matrix:
2828
test_file:
29-
- test_input.py
30-
- test_main.py
31-
- test_conn.py
32-
- test_downloaded_file.py
33-
- test_ssl.py
34-
- test_tunnel.py
35-
- test_ssh.py
36-
- test_dns.py
37-
- test_notice.py
38-
- test_software.py
39-
- test_smtp.py
40-
- test_whitelist.py
41-
- test_arp.py
42-
- test_blocking.py
43-
- test_flow_handler.py
44-
- test_horizontal_portscans.py
45-
- test_http_analyzer.py
46-
- test_vertical_portscans.py
47-
- test_network_discovery.py
48-
- test_virustotal.py
49-
- test_update_file_manager.py
50-
- test_threat_intelligence.py
51-
- test_slips_utils.py
52-
- test_slips.py
53-
- test_profiler.py
54-
- test_leak_detector.py
55-
- test_ip_info.py
56-
- test_evidence.py
57-
- test_asn_info.py
58-
- test_urlhaus.py
59-
- test_markov_chain.py
60-
- test_daemon.py
61-
- test_go_director.py
62-
- test_notify.py
63-
- test_checker.py
64-
- test_base_model.py
65-
- test_set_evidence.py
66-
- test_trustdb.py
67-
- test_cesnet.py
68-
- test_output.py
69-
- test_riskiq.py
70-
- test_spamhaus.py
71-
- test_circllu.py
72-
- test_evidence_handler.py
73-
- test_evidence_formatter.py
74-
- test_alert_handler.py
75-
- test_redis_manager.py
76-
- test_ioc_handler.py
77-
- test_timeline.py
78-
- test_database.py
79-
- test_symbols_handler.py
80-
- test_profile_handler.py
81-
- test_process_manager.py
82-
- test_metadata_manager.py
83-
- test_host_ip_manager.py
84-
- test_host_ip_manager.py
85-
- test_rnn_cc_detection.py
86-
- test_idea_format.py
87-
- test_fides_sqlite_db.py
88-
- test_fides_module.py
29+
- modules/flowalerts/test_conn.py
30+
- modules/flowalerts/test_downloaded_file.py
31+
- modules/flowalerts/test_ssl.py
32+
- modules/flowalerts/test_tunnel.py
33+
- modules/flowalerts/test_ssh.py
34+
- modules/flowalerts/test_dns.py
35+
- modules/flowalerts/test_notice.py
36+
- modules/flowalerts/test_software.py
37+
- modules/flowalerts/test_smtp.py
38+
- modules/flowalerts/test_set_evidence.py
39+
40+
- modules/arp/test_arp.py
41+
- modules/blocking/test_blocking.py
42+
- modules/network_discovery/test_horizontal_portscans.py
43+
- modules/http_analyzer/test_http_analyzer.py
44+
- modules/network_discovery/test_vertical_portscans.py
45+
- modules/network_discovery/test_network_discovery.py
46+
- modules/virustotal/test_virustotal.py
47+
- modules/update_manager/test_update_file_manager.py
48+
49+
- modules/threat_intelligence/test_threat_intelligence.py
50+
- modules/threat_intelligence/test_urlhaus.py
51+
- modules/threat_intelligence/test_spamhaus.py
52+
- modules/threat_intelligence/test_circllu.py
53+
54+
- modules/leak_detector/test_leak_detector.py
55+
56+
- modules/ip_info/test_ip_info.py
57+
- modules/ip_info/test_asn_info.py
58+
59+
- modules/p2ptrust/test_go_director.py
60+
- modules/p2ptrust/test_base_model.py
61+
- modules/p2ptrust/test_trustdb.py
62+
63+
- modules/cesnet/test_cesnet.py
64+
- modules/riskiq/test_riskiq.py
65+
- modules/timeline/test_timeline.py
66+
67+
- modules/fidesModule/test_fides_sqlite_db.py
68+
- modules/fidesModule/test_fides_module.py
69+
70+
- modules/rnn_cc_detection/test_rnn_cc_detection.py
71+
72+
- slips_files/core/test_output.py
73+
- slips_files/core/test_evidence_handler.py
74+
- slips_files/core/text_formatters/test_evidence_formatter.py
75+
- slips_files/core/test_input.py
76+
- slips_files/core/test_profiler.py
77+
- slips_files/core/structures/test_evidence.py
78+
79+
- slips_files/core/helpers/whitelist/test_whitelist.py
80+
- slips_files/core/helpers/test_flow_handler.py
81+
- slips_files/core/helpers/test_notify.py
82+
- slips_files/core/helpers/test_checker.py
83+
- slips_files/core/helpers/test_symbols_handler.py
84+
85+
- slips_files/core/database/redis_db/test_alert_handler.py
86+
- slips_files/core/database/redis_db/test_redis_manager.py
87+
- slips_files/core/database/redis_db/test_ioc_handler.py
88+
- slips_files/core/database/redis_db/test_database.py
89+
- slips_files/core/database/redis_db/test_profile_handler.py
90+
91+
- slips_files/common/test_markov_chain.py
92+
- slips_files/common/test_slips_utils.py
93+
- slips_files/common/test_idea_format.py
94+
95+
- managers/test_process_manager.py
96+
- managers/test_metadata_manager.py
97+
- managers/test_host_ip_manager.py
98+
99+
- test_main.py
100+
- test_daemon.py
101+
- test_slips.py
89102

90103
steps:
91104
- uses: actions/checkout@v4

tests/e2e/test_config_files.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
test/test.yaml and tests/test2.yaml
66
"""
77

8-
from slips.main import Main
98
from tests.common_test_utils import (
109
is_evidence_present,
1110
create_output_dir,
@@ -21,15 +20,6 @@
2120
alerts_file = "alerts.log"
2221

2322

24-
def create_main_instance(input_information):
25-
"""returns an instance of Main() class in slips.py"""
26-
main = Main(testing=True)
27-
main.input_information = input_information
28-
main.input_type = "pcap"
29-
main.line_type = False
30-
return main
31-
32-
3323
@pytest.mark.parametrize(
3424
"pcap_path, expected_profiles, output_dir, redis_port",
3525
[

0 commit comments

Comments
 (0)