You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Bug]: everflow/test_everflow_testbed.py::TestEverflowV4EgressAclEgressMirror::test_everflow_dscp_with_policer test cases failing dude to "TypeError: string argument without an encoding" while sending packets
#16745
when the traffic is being sent from the script there is a mismatch in type in the file "acstests/everflow_policer_test.py" when using the testutils.send_packet() function
changing this script from
testutils.send_packet(self, self.src_port, str(self.base_pkt), count=self.NUM_OF_TOTAL_PACKETS)
to this
testutils.send_packet(self, self.src_port, bytes(self.base_pkt), count=self.NUM_OF_TOTAL_PACKETS)
creates further more issues in the acstests/everflow_policer_test.py file.
Results you see
ERROR: everflow_policer_test.EverflowPolicerTest
E ----------------------------------------------------------------------
E Traceback (most recent call last):
E File "acstests/everflow_policer_test.py", line 324, in runTest
E count = self.checkOriginalFlow()
E File "acstests/everflow_policer_test.py", line 183, in checkOriginalFlow
E testutils.send_packet(self, self.src_port, str(self.base_pkt), count=self.NUM_OF_TOTAL_PACKETS)
E File "/root/env-python3/lib/python3.7/site-packages/ptf/testutils.py", line 3202, in send_packet
E pkt = bytes(pkt)
E TypeError: string argument without an encoding
E
E ----------------------------------------------------------------------
Results you expected to see
test case to send packets successfully
Is it platform specific
marvell
Relevant log output
Output of show version
show version
SONiC Software Version: SONiC.202411.0-dirty-20250127.162535
SONiC OS Version: 12
Distribution: Debian 12.9
Kernel: 6.1.0-22-2-arm64
Build commit: bed58c457
Build date: Mon Jan 27 16:52:07 UTC 2025
Built by: marvell@cpss-arm-vm04
Attach files (if any)
No response
The text was updated successfully, but these errors were encountered:
Issue Description
when the traffic is being sent from the script there is a mismatch in type in the file "acstests/everflow_policer_test.py" when using the testutils.send_packet() function
changing this script from
testutils.send_packet(self, self.src_port, str(self.base_pkt), count=self.NUM_OF_TOTAL_PACKETS)
to this
testutils.send_packet(self, self.src_port, bytes(self.base_pkt), count=self.NUM_OF_TOTAL_PACKETS)
creates further more issues in the acstests/everflow_policer_test.py file.
Results you see
ERROR: everflow_policer_test.EverflowPolicerTest
E ----------------------------------------------------------------------
E Traceback (most recent call last):
E File "acstests/everflow_policer_test.py", line 324, in runTest
E count = self.checkOriginalFlow()
E File "acstests/everflow_policer_test.py", line 183, in checkOriginalFlow
E testutils.send_packet(self, self.src_port, str(self.base_pkt), count=self.NUM_OF_TOTAL_PACKETS)
E File "/root/env-python3/lib/python3.7/site-packages/ptf/testutils.py", line 3202, in send_packet
E pkt = bytes(pkt)
E TypeError: string argument without an encoding
E
E ----------------------------------------------------------------------
Results you expected to see
test case to send packets successfully
Is it platform specific
marvell
Relevant log output
Output of
show version
Attach files (if any)
No response
The text was updated successfully, but these errors were encountered: