Skip to content

Commit

Permalink
Fixed test_basic_usage_dir_with_commas to use the function check_appl…
Browse files Browse the repository at this point in the history
…y_test
  • Loading branch information
jotacarma90 committed Jan 27, 2021
1 parent 9aff8a7 commit e3bec54
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from wazuh_testing.tools import PREFIX
from wazuh_testing.tools.monitoring import FileMonitor
from wazuh_testing.fim import LOG_FILE_PATH, generate_params, regular_file_cud
from wazuh_testing.tools.configuration import load_wazuh_configurations
from wazuh_testing.tools.configuration import load_wazuh_configurations, check_apply_test

# Marks
pytestmark = pytest.mark.tier(level=2)
Expand Down Expand Up @@ -52,6 +52,8 @@ def test_directories_with_commas(directory, get_configuration, put_env_variables
"""
Test alerts are generated when monitor environment variables
"""
check_apply_test('ossec_conf', get_configuration['tags'])

regular_file_cud(directory, wazuh_log_monitor, file_list=["testing_env_variables"],
min_timeout=global_parameters.default_timeout,
time_travel=get_configuration['metadata']['fim_mode'] == 'scheduled')

0 comments on commit e3bec54

Please sign in to comment.