diff --git a/tests/end_to_end/test_basic_cases/test_brute_force/test_brute_force_rdp/data/playbooks/generate_events.yaml b/tests/end_to_end/test_basic_cases/test_brute_force/test_brute_force_rdp/data/playbooks/generate_events.yaml index 61e176d6bd..58efbc98d7 100644 --- a/tests/end_to_end/test_basic_cases/test_brute_force/test_brute_force_rdp/data/playbooks/generate_events.yaml +++ b/tests/end_to_end/test_basic_cases/test_brute_force/test_brute_force_rdp/data/playbooks/generate_events.yaml @@ -32,8 +32,8 @@ name: manage_alerts tasks_from: search_alert.yaml vars: - ts: \d+-\d+-\d+T\d+:\d+:\d+\.\d+[+|-]\d+ - custom_regex: "{\"timestamp\":\"{{ ts }}\",\"rule\":{\"level\":{{ rule_level }},\ + timestamp: \d+-\d+-\d+T\d+:\d+:\d+\.\d+[+|-]\d+ + custom_regex: "{\"timestamp\":\"{{ timestamp }}\",\"rule\":{\"level\":{{ rule_level }},\ \"description\":\"{{ rule_description }}\",\"id\":\"{{ rule_id }}\".*" attempts: 15 time_btw_attempts: 2 diff --git a/tests/end_to_end/test_basic_cases/test_brute_force/test_brute_force_ssh/data/playbooks/generate_events.yaml b/tests/end_to_end/test_basic_cases/test_brute_force/test_brute_force_ssh/data/playbooks/generate_events.yaml index 9311246dc5..4906146562 100644 --- a/tests/end_to_end/test_basic_cases/test_brute_force/test_brute_force_ssh/data/playbooks/generate_events.yaml +++ b/tests/end_to_end/test_basic_cases/test_brute_force/test_brute_force_ssh/data/playbooks/generate_events.yaml @@ -35,8 +35,6 @@ - name: Get alerts file hosts: managers - vars: - ts: tasks: - name: Search alert in alerts log @@ -44,8 +42,8 @@ name: manage_alerts tasks_from: search_alert.yaml vars: - ts: \d+-\d+-\d+T\d+:\d+:\d+\.\d+[+|-]\d+ - custom_regex: "{\"timestamp\":\"{{ ts }}\",\"rule\":{\"level\":{{ rule_level }},\ + timestamp: \d+-\d+-\d+T\d+:\d+:\d+\.\d+[+|-]\d+ + custom_regex: "{\"timestamp\":\"{{ timestamp }}\",\"rule\":{\"level\":{{ rule_level }},\ \"description\":\"{{ rule_description }}\",\"id\":\"{{ rule_id }}\".*" attempts: 15 time_btw_attempts: 2