Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
subbyte committed Apr 23, 2024
1 parent 3666240 commit fbf1e72
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -353,14 +353,14 @@ def test_match_operator_with_dialect(self):
stix_pattern = r"[process:command_line MATCHES 'cmd\\.exe .*']"
translated_query = translation.translate('elastic_ecs:beats', 'query', '{}', stix_pattern)
translated_query['queries'] = _remove_timestamp_from_query(translated_query['queries'])
test_query = ['(process.command_line.keyword : /cmd\\.exe .*/)']
test_query = ['process.command_line.keyword : /cmd\\.exe .*/']
_test_query_assertions(translated_query, test_query)

def test_like_operator(self):
stix_pattern = "[process:command_line LIKE 'cmd.exe /_ %']"
translated_query = translation.translate('elastic_ecs', 'query', '{}', stix_pattern)
translated_query['queries'] = _remove_timestamp_from_query(translated_query['queries'])
test_query = ['(process.command_line : "cmd.exe /? *")']
test_query = ['process.command_line : "cmd.exe /? *"']
_test_query_assertions(translated_query, test_query)

def test_like_operator_with_backslash(self):
Expand Down

0 comments on commit fbf1e72

Please sign in to comment.