Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wagga40 authored Dec 29, 2023
1 parent ad1d662 commit 9f714f1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/test_backend_sqlite.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,8 @@ def test_sqlite_fts_keywords_num(sqlite_backend : sqliteBackend):
assert str(e.value) == "Value-only number expressions (i.e Full Text Search or 'keywords' search) are not supported by the backend."

def test_sqlite_zircolite_output(sqlite_backend : sqliteBackend):
rule = list(SigmaCollection.from_yaml("""
rule = SigmaCollection.from_yaml(
r"""
title: Test
status: test
logsource:
Expand All @@ -252,7 +253,7 @@ def test_sqlite_zircolite_output(sqlite_backend : sqliteBackend):
sel:
fieldA: value
condition: sel
"""))[0]
""")
assert sqlite_backend.convert(rule, "zircolite") == '[{"title": "Test", "id": "", "status": "test", "description": "", "author": "", "tags": [], "falsepositives": [], "level": "", "rule": ["SELECT * FROM logs WHERE fieldA=\'value\'"], "filename": ""}]'

# TODO: implement tests for all backend features that don't belong to the base class defaults, e.g. features that were
Expand Down

0 comments on commit 9f714f1

Please sign in to comment.