Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix flaky test in AR suite (excecd) #4360

Merged
merged 3 commits into from
Aug 3, 2023
Merged

Conversation

mauromalara
Copy link
Contributor

@mauromalara mauromalara commented Jul 25, 2023

Related issue
#4336

Description

There was a block of code checking IP tables but the problem was that it failed to get the IP on time. So, it was a ""race condition"" between AR and the test trying to get the output of a command just in time.

Updated

  • tests/integration/test_active_response/test_execd/test_execd_firewall_drop.py
  • tests/integration/test_active_response/test_execd/conftest.py

Testing performed

Tester Test path Jenkins Local OS Commit Notes
@user (Developer) test_active_response/ 🟢 🟢 🟢 🟢 🟢 🟢 CentOS cecd5f6 Nothing to highlight

@mauromalara mauromalara self-assigned this Jul 25, 2023
@mauromalara mauromalara linked an issue Jul 25, 2023 that may be closed by this pull request
2 tasks
@davidjiglesias
Copy link
Member

All commits need to be signed.

@davidjiglesias davidjiglesias merged commit c3b02b2 into 4.6.0 Aug 3, 2023
4 checks passed
@davidjiglesias davidjiglesias deleted the fix-ar-execd-flaky-test branch August 3, 2023 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Active response IP was not added to iptable
3 participants