Skip to content

Commit

Permalink
macos_utils.py moved
Browse files Browse the repository at this point in the history
  • Loading branch information
nmkoremblum committed Jun 24, 2021
1 parent 9b97fee commit 80ddbc8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion deps/wazuh_testing/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
'data/winevt.py',
'data/sslmanager.key',
'data/sslmanager.cert',
'tools/macos_log/log_generator.m'
'tools/macos_log/log_generator.m',
'tools/macos_log/macos_utils.py'
]
},
entry_points={
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,15 @@
# This program is free software; you can redistribute it and/or modify it under the terms of GPLv2

def compose_settings(__type="", __level="", __predicate="", __is_sierra=False):
"""
This function replicates how the command 'log' will be called from the Wazuh agent given the query parameters
"""

settings_str = ""

if (__is_sierra):
settings_str = "/usr/bin/script -q /dev/null "

settings_str = settings_str + "/usr/bin/log stream --style syslog "

if (__type):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
# This program is free software; you can redistribute it and/or modify it under the terms of GPLv2

import os
import pytest
import re
# import macos_utils
import pytest
import wazuh_testing.logcollector as logcollector
import wazuh_testing.tools.macos_log.macos_utils as macos_utils

from wazuh_testing.tools.configuration import load_wazuh_configurations
from wazuh_testing.remote import check_agent_received_message
Expand Down

0 comments on commit 80ddbc8

Please sign in to comment.