[dts][PATCH V1] ice_advanced_rss_pppoe:add check result after deleting the rules

Zhimin Huang zhiminx.huang at intel.com
Thu Jun 23 22:01:50 CEST 2022


add test steps about after delete rule.

Signed-off-by: Zhimin Huang <zhiminx.huang at intel.com>
---
 test_plans/ice_advanced_rss_pppoe_test_plan.rst | 8 +++++---
 tests/TestSuite_ice_advanced_rss_pppoe.py       | 3 +++
 2 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/test_plans/ice_advanced_rss_pppoe_test_plan.rst b/test_plans/ice_advanced_rss_pppoe_test_plan.rst
index 400f3a71..0b64cc79 100644
--- a/test_plans/ice_advanced_rss_pppoe_test_plan.rst
+++ b/test_plans/ice_advanced_rss_pppoe_test_plan.rst
@@ -4621,12 +4621,14 @@ Subcase 3: two rules, scope smaller created first, and the larger one created la
      testpmd> flow destroy 0 rule 1
      testpmd> flow list 0
 
-   check the rule 1 not exists in the list.
+   check the rule 1 not exists in the list, and repeat step 2
    destroy the rule 0::
 
      testpmd> flow destroy 0 rule 0
      testpmd> flow list 0
 
+   check not rule in the list, and send all pkts have no hash values.
+
 Subcase 4: two rules, scope larger created first, and the smaller one created later
 -----------------------------------------------------------------------------------
 
@@ -4679,10 +4681,10 @@ Subcase 4: two rules, scope larger created first, and the smaller one created la
      testpmd> flow destroy 0 rule 1
      testpmd> flow list 0
 
-   check the rule 1 not exists in the list.
+   check the rule 1 not exists in the list, and repeat step 2
    destroy the rule 0::
 
      testpmd> flow destroy 0 rule 0
      testpmd> flow list 0
 
-
+   check not rule in the list, and send all pkts have no hash values.
\ No newline at end of file
diff --git a/tests/TestSuite_ice_advanced_rss_pppoe.py b/tests/TestSuite_ice_advanced_rss_pppoe.py
index 59e48988..ebb644f6 100644
--- a/tests/TestSuite_ice_advanced_rss_pppoe.py
+++ b/tests/TestSuite_ice_advanced_rss_pppoe.py
@@ -5166,9 +5166,12 @@ class Advanced_rss_pppoe(TestCase):
         # destory rule 1
         self.rsspro.destroy_rule(rule_id=1)
         self.rsspro.check_rule(rule_list=["1"], stats=False)
+        pkt_list[1], pkt_list[2] = pkt_list[2], pkt_list[1]
+        self._send_pkt_action(pkt_list)
         # destory rule 0
         self.rsspro.destroy_rule(rule_id=0)
         self.rsspro.check_rule(rule_list=["0"], stats=False)
+        self._send_pkt_action(pkt_list, action_list=["check_no_hash"] * 3)
 
     def test_two_rules_smaller_first_larger_later(
         self,
-- 
2.17.1



More information about the dts mailing list