Skip to content

Commit b952f03

Browse files
committed
update unit tests
1 parent 0a0fb32 commit b952f03

1 file changed

Lines changed: 0 additions & 43 deletions

File tree

Lines changed: 0 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -333,49 +333,6 @@ def test_give_profiler(line, input_type, expected_line, expected_input_type):
333333
assert line_sent["input_type"] == expected_input_type
334334

335335

336-
@pytest.mark.parametrize(
337-
"filepath, expected_result",
338-
[ # Testcase 1: Supported file
339-
("path/to/conn.log", False),
340-
# Testcase 2: Supported file
341-
("path/to/dns.log", False),
342-
# Testcase 3: Supported file
343-
("path/to/http.log", False),
344-
# Testcase 4: Supported file
345-
("path/to/ssl.log", False),
346-
# Testcase 5: Supported file
347-
("path/to/ssh.log", False),
348-
# Testcase 6: Supported file
349-
("path/to/dhcp.log", False),
350-
# Testcase 7: Supported file
351-
("path/to/ftp.log", False),
352-
# Testcase 8: Supported file
353-
("path/to/smtp.log", False),
354-
# Testcase 9: Supported file
355-
("path/to/tunnel.log", False),
356-
# Testcase 10: Supported file
357-
("path/to/notice.log", False),
358-
# Testcase 11: Supported file
359-
("path/to/files.log", False),
360-
# Testcase 12: Supported file
361-
("path/to/arp.log", False),
362-
# Testcase 13: Supported file
363-
("path/to/software.log", False),
364-
# Testcase 14: Supported file
365-
("path/to/weird.log", False),
366-
# Testcase 15: Unsupported file
367-
("path/to/unsupported.log", True),
368-
],
369-
)
370-
def test_is_ignored_file(filepath, expected_result):
371-
"""
372-
Test that the is_ignored_file method correctly
373-
identifies ignored Zeek log files.
374-
"""
375-
input_process = ModuleFactory().create_input_obj("", "zeek_log_file")
376-
assert input_process.is_ignored_file(filepath) == expected_result
377-
378-
379336
def test_get_file_handle_existing_file():
380337
"""
381338
Test that the get_file_handle method correctly

0 commit comments

Comments
 (0)