syslog2cef 0.4.1__tar.gz → 0.4.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. {syslog2cef-0.4.1/syslog2cef.egg-info → syslog2cef-0.4.2}/PKG-INFO +2 -2
  2. {syslog2cef-0.4.1 → syslog2cef-0.4.2}/README.md +1 -1
  3. {syslog2cef-0.4.1 → syslog2cef-0.4.2}/pyproject.toml +1 -1
  4. {syslog2cef-0.4.1 → syslog2cef-0.4.2/syslog2cef.egg-info}/PKG-INFO +2 -2
  5. {syslog2cef-0.4.1 → syslog2cef-0.4.2}/syslogcef/_version.py +1 -1
  6. {syslog2cef-0.4.1 → syslog2cef-0.4.2}/tests/test_cli.py +24 -14
  7. {syslog2cef-0.4.1 → syslog2cef-0.4.2}/LICENSE +0 -0
  8. {syslog2cef-0.4.1 → syslog2cef-0.4.2}/setup.cfg +0 -0
  9. {syslog2cef-0.4.1 → syslog2cef-0.4.2}/syslog2cef.egg-info/SOURCES.txt +0 -0
  10. {syslog2cef-0.4.1 → syslog2cef-0.4.2}/syslog2cef.egg-info/dependency_links.txt +0 -0
  11. {syslog2cef-0.4.1 → syslog2cef-0.4.2}/syslog2cef.egg-info/entry_points.txt +0 -0
  12. {syslog2cef-0.4.1 → syslog2cef-0.4.2}/syslog2cef.egg-info/requires.txt +0 -0
  13. {syslog2cef-0.4.1 → syslog2cef-0.4.2}/syslog2cef.egg-info/top_level.txt +0 -0
  14. {syslog2cef-0.4.1 → syslog2cef-0.4.2}/syslogcef/__init__.py +0 -0
  15. {syslog2cef-0.4.1 → syslog2cef-0.4.2}/syslogcef/__main__.py +0 -0
  16. {syslog2cef-0.4.1 → syslog2cef-0.4.2}/syslogcef/adaptive.py +0 -0
  17. {syslog2cef-0.4.1 → syslog2cef-0.4.2}/syslogcef/api.py +0 -0
  18. {syslog2cef-0.4.1 → syslog2cef-0.4.2}/syslogcef/cef.py +0 -0
  19. {syslog2cef-0.4.1 → syslog2cef-0.4.2}/syslogcef/cli.py +0 -0
  20. {syslog2cef-0.4.1 → syslog2cef-0.4.2}/syslogcef/custom.py +0 -0
  21. {syslog2cef-0.4.1 → syslog2cef-0.4.2}/syslogcef/dictionary.json +0 -0
  22. {syslog2cef-0.4.1 → syslog2cef-0.4.2}/syslogcef/dictionary.py +0 -0
  23. {syslog2cef-0.4.1 → syslog2cef-0.4.2}/syslogcef/mappings/__init__.py +0 -0
  24. {syslog2cef-0.4.1 → syslog2cef-0.4.2}/syslogcef/mappings/cisco_asa.json +0 -0
  25. {syslog2cef-0.4.1 → syslog2cef-0.4.2}/syslogcef/mappings/cisco_ios.json +0 -0
  26. {syslog2cef-0.4.1 → syslog2cef-0.4.2}/syslogcef/mappings/f5.json +0 -0
  27. {syslog2cef-0.4.1 → syslog2cef-0.4.2}/syslogcef/mappings/fortinet.json +0 -0
  28. {syslog2cef-0.4.1 → syslog2cef-0.4.2}/syslogcef/mappings/linux.json +0 -0
  29. {syslog2cef-0.4.1 → syslog2cef-0.4.2}/syslogcef/mappings/sophos.json +0 -0
  30. {syslog2cef-0.4.1 → syslog2cef-0.4.2}/syslogcef/mappings/vmware.json +0 -0
  31. {syslog2cef-0.4.1 → syslog2cef-0.4.2}/syslogcef/net.py +0 -0
  32. {syslog2cef-0.4.1 → syslog2cef-0.4.2}/syslogcef/normalizer.py +0 -0
  33. {syslog2cef-0.4.1 → syslog2cef-0.4.2}/syslogcef/parsers.py +0 -0
  34. {syslog2cef-0.4.1 → syslog2cef-0.4.2}/syslogcef/utils.py +0 -0
  35. {syslog2cef-0.4.1 → syslog2cef-0.4.2}/syslogcef/validation.py +0 -0
  36. {syslog2cef-0.4.1 → syslog2cef-0.4.2}/tests/test_adaptive.py +0 -0
  37. {syslog2cef-0.4.1 → syslog2cef-0.4.2}/tests/test_cef.py +0 -0
  38. {syslog2cef-0.4.1 → syslog2cef-0.4.2}/tests/test_cli_validation.py +0 -0
  39. {syslog2cef-0.4.1 → syslog2cef-0.4.2}/tests/test_custom_parsers.py +0 -0
  40. {syslog2cef-0.4.1 → syslog2cef-0.4.2}/tests/test_dictionary.py +0 -0
  41. {syslog2cef-0.4.1 → syslog2cef-0.4.2}/tests/test_fuzz_grammar.py +0 -0
  42. {syslog2cef-0.4.1 → syslog2cef-0.4.2}/tests/test_fuzz_properties.py +0 -0
  43. {syslog2cef-0.4.1 → syslog2cef-0.4.2}/tests/test_macos_logs.py +0 -0
  44. {syslog2cef-0.4.1 → syslog2cef-0.4.2}/tests/test_net.py +0 -0
  45. {syslog2cef-0.4.1 → syslog2cef-0.4.2}/tests/test_normalizer.py +0 -0
  46. {syslog2cef-0.4.1 → syslog2cef-0.4.2}/tests/test_parsers.py +0 -0
  47. {syslog2cef-0.4.1 → syslog2cef-0.4.2}/tests/test_parsers_extra.py +0 -0
  48. {syslog2cef-0.4.1 → syslog2cef-0.4.2}/tests/test_pipeline.py +0 -0
  49. {syslog2cef-0.4.1 → syslog2cef-0.4.2}/tests/test_real_world.py +0 -0
  50. {syslog2cef-0.4.1 → syslog2cef-0.4.2}/tests/test_rfc5424_epoch.py +0 -0
  51. {syslog2cef-0.4.1 → syslog2cef-0.4.2}/tests/test_security_hardening.py +0 -0
  52. {syslog2cef-0.4.1 → syslog2cef-0.4.2}/tests/test_tail_rotation.py +0 -0
  53. {syslog2cef-0.4.1 → syslog2cef-0.4.2}/tests/test_utils.py +0 -0
  54. {syslog2cef-0.4.1 → syslog2cef-0.4.2}/tests/test_validation.py +0 -0
  55. {syslog2cef-0.4.1 → syslog2cef-0.4.2}/tests/test_zipapp_safe.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: syslog2cef
3
- Version: 0.4.1
3
+ Version: 0.4.2
4
4
  Summary: Convert RFC3164/RFC5424 syslog lines into ArcSight CEF
5
5
  Author-email: Tamir Suliman <allamiro@gmail.com>
6
6
  Project-URL: Homepage, https://github.com/allamiro/syslog2cef
@@ -456,7 +456,7 @@ repository" button produces APA and BibTeX from it.
456
456
  @software{suliman_syslog2cef,
457
457
  author = {Suliman, Tamir},
458
458
  title = {syslog2cef: Convert syslog to ArcSight Common Event Format (CEF)},
459
- version = {0.4.1},
459
+ version = {0.4.2},
460
460
  year = {2026},
461
461
  url = {https://github.com/allamiro/syslog2cef},
462
462
  license = {MIT}
@@ -427,7 +427,7 @@ repository" button produces APA and BibTeX from it.
427
427
  @software{suliman_syslog2cef,
428
428
  author = {Suliman, Tamir},
429
429
  title = {syslog2cef: Convert syslog to ArcSight Common Event Format (CEF)},
430
- version = {0.4.1},
430
+ version = {0.4.2},
431
431
  year = {2026},
432
432
  url = {https://github.com/allamiro/syslog2cef},
433
433
  license = {MIT}
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "syslog2cef"
7
- version = "0.4.1"
7
+ version = "0.4.2"
8
8
  description = "Convert RFC3164/RFC5424 syslog lines into ArcSight CEF"
9
9
  authors = [{name = "Tamir Suliman", email = "allamiro@gmail.com"}]
10
10
  readme = "README.md"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: syslog2cef
3
- Version: 0.4.1
3
+ Version: 0.4.2
4
4
  Summary: Convert RFC3164/RFC5424 syslog lines into ArcSight CEF
5
5
  Author-email: Tamir Suliman <allamiro@gmail.com>
6
6
  Project-URL: Homepage, https://github.com/allamiro/syslog2cef
@@ -456,7 +456,7 @@ repository" button produces APA and BibTeX from it.
456
456
  @software{suliman_syslog2cef,
457
457
  author = {Suliman, Tamir},
458
458
  title = {syslog2cef: Convert syslog to ArcSight Common Event Format (CEF)},
459
- version = {0.4.1},
459
+ version = {0.4.2},
460
460
  year = {2026},
461
461
  url = {https://github.com/allamiro/syslog2cef},
462
462
  license = {MIT}
@@ -5,7 +5,7 @@ suite). A module constant rather than importlib.metadata, because the
5
5
  standalone .pyz has no installed distribution metadata to read.
6
6
  """
7
7
 
8
- __version__ = "0.4.1"
8
+ __version__ = "0.4.2"
9
9
  __author__ = "Tamir Suliman"
10
10
  __email__ = "allamiro@gmail.com"
11
11
  __copyright__ = "Copyright (c) 2023 Tamir Suliman"
@@ -4,6 +4,23 @@ import subprocess
4
4
  import sys
5
5
  from pathlib import Path
6
6
 
7
+ import pytest
8
+
9
+ REPO_ROOT = Path(__file__).resolve().parent.parent
10
+
11
+
12
+ def _checkout_file(relpath: str) -> Path:
13
+ """Return a repository file, skipping when it is not in this tree.
14
+
15
+ The RPM %check runs the suite from the PyPI sdist, which ships the
16
+ package and tests but not the CHANGELOG, packaging files or keys.
17
+ Tests about those files only make sense in a git checkout.
18
+ """
19
+ path = REPO_ROOT / relpath
20
+ if not path.exists():
21
+ pytest.skip(f"{relpath} is not in this source tree")
22
+ return path
23
+
7
24
 
8
25
  def test_cli_stdout(tmp_path: Path):
9
26
  sample = "<166>Jan 1 12:34:56 router1 %ASA-6-302013: Built inbound TCP connection src=10.0.0.1 dst=10.0.0.2\n"
@@ -194,11 +211,7 @@ def test_cli_reports_the_command_name_not_the_module_file():
194
211
  def test_man_page_source_field_names_the_project():
195
212
  # The third .TH field is the source package, which is syslog2cef; the
196
213
  # page name stays SYSLOGCEF because that is the command.
197
- from pathlib import Path
198
-
199
- first = Path(__file__).resolve().parent.parent.joinpath(
200
- "packaging/rpm/syslogcef.1"
201
- ).read_text().splitlines()[0]
214
+ first = _checkout_file("packaging/rpm/syslogcef.1").read_text().splitlines()[0]
202
215
  assert first.startswith(".TH SYSLOGCEF 1 ")
203
216
  assert '"syslog2cef ' in first
204
217
 
@@ -210,24 +223,21 @@ def test_external_resource_names_are_not_renamed():
210
223
  signing keys, and a blanket search-and-replace across the docs silently
211
224
  turns those into dead references.
212
225
  """
213
- from pathlib import Path
214
-
215
- root = Path(__file__).resolve().parent.parent
216
- readme = root.joinpath("README.md").read_text()
226
+ rpm_key = _checkout_file("packaging/rpm/RPM-GPG-KEY-syslogcef")
227
+ apk_key = _checkout_file("packaging/apk/syslogcef.rsa.pub")
228
+ readme = _checkout_file("README.md").read_text()
217
229
  assert "copr.fedorainfracloud.org/coprs/allamiro/syslogcef/" in readme
218
230
  assert "dnf copr enable allamiro/syslogcef" in readme
219
231
  # No COPR reference may point at the non-existent renamed project.
220
232
  assert "coprs/allamiro/syslog2cef" not in readme
221
233
  assert "copr enable allamiro/syslog2cef" not in readme
222
- assert root.joinpath("packaging/rpm/RPM-GPG-KEY-syslogcef").exists()
223
- assert root.joinpath("packaging/apk/syslogcef.rsa.pub").exists()
234
+ assert rpm_key.is_file()
235
+ assert apk_key.is_file()
224
236
 
225
237
 
226
238
  def test_changelog_history_is_not_rewritten():
227
239
  # Entries predating 0.4.1 must keep the names that were true then.
228
- from pathlib import Path
229
-
230
- text = Path(__file__).resolve().parent.parent.joinpath("CHANGELOG.md").read_text()
240
+ text = _checkout_file("CHANGELOG.md").read_text()
231
241
  history = text.split("## [0.4.0]", 1)[1]
232
242
  assert "ghcr.io/allamiro/syslogcef" in history
233
243
  assert "`allamiro/syslogcef`" in history
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes