Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions tests/cacl/test_cacl_application.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import json
import logging
import pytest
import re

from tests.common.config_reload import config_reload
from tests.common.utilities import wait_until
Expand Down Expand Up @@ -1307,5 +1308,6 @@ def test_caclmgrd_syslog(duthosts, enum_rand_one_per_hwsku_hostname,):
pytest_assert("iptables -P INPUT ACCEPT" in syslog_output,
"Syslog does not contain 'iptables -P INPUT ACCEPT' after restarting caclmgrd")
systemctl_output = duthost.command("sudo systemctl status caclmgrd")["stdout"]
pytest_assert("iptables -A INPUT" in systemctl_output,
"iptables rules are not applied after restarting caclmgrd")
match = re.search(r'(caclmgrd.*?iptables)', systemctl_output)
mux_match = re.search(r'(caclmgrd.*?mux)', systemctl_output)
pytest_assert(match or mux_match, "iptables rules are not applied after restarting caclmgrd")
Loading