sonic-mgmt icon indicating copy to clipboard operation
sonic-mgmt copied to clipboard

[202405] Stabilize test_cacl cases

Open JibinBao opened this issue 3 months ago • 1 comments

Description of PR

After rollback_or_reload the config, the case check if the current iptable rules equal to the original iptale rules directly. Sometimes, the iptable rules are not ready completely, so case will fail due to missing some iptable rules. Therefore, update the code to use retry mechanism to check if the current iptable rules are equal to the original ones.

Summary: Fixes # (issue)

Type of change

  • [x] Bug fix
  • [ ] Testbed and Framework(new/improvement)
  • [ ] Test case(new/improvement)

Back port request

  • [ ] 202012
  • [ ] 202205
  • [ ] 202305
  • [ ] 202311
  • [x] 202405

Approach

What is the motivation for this PR?

Stabilize test_cacl cases

How did you do it?

Update the code to use retry mechanism to check if the current iptable rules are equal to the original ones.

How did you verify/test it?

Run test_cacl 20 times

Any platform specific information?

Any

Supported testbed topology if it's a new test case?

Documentation

JibinBao avatar Oct 31 '24 06:10 JibinBao