Skip to content

Commit c52dbb0

Browse files
committed
Fix TCP test script naming
Change from test names to test case Ids.
1 parent 5f6f3f1 commit c52dbb0

File tree

1 file changed

+14
-7
lines changed

1 file changed

+14
-7
lines changed

src/python_testing/TCP_Tests.py

+14-7
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,9 @@
3232

3333
class TCP_Tests(MatterBaseTest):
3434

35+
# TCP Connection Establishment
3536
@async_test_body
36-
async def test_TCPConnectionEstablishment(self):
37+
async def test_TC_SC_8_1(self):
3738

3839
try:
3940
device = await self.default_controller.GetConnectedDevice(nodeid=self.dut_node_id, allowPASE=False, timeoutMs=1000,
@@ -43,8 +44,9 @@ async def test_TCPConnectionEstablishment(self):
4344
asserts.assert_equal(device.isSessionOverTCPConnection, True, "Session does not have associated TCP connection")
4445
asserts.assert_equal(device.isActiveSession, True, "Large Payload Session should be active over TCP connection")
4546

47+
# Large Payload Session Establishment
4648
@async_test_body
47-
async def test_LargePayloadSessionEstablishment(self):
49+
async def test_TC_SC_8_2(self):
4850

4951
try:
5052
device = await self.default_controller.GetConnectedDevice(nodeid=self.dut_node_id, allowPASE=False, timeoutMs=1000,
@@ -53,8 +55,9 @@ async def test_LargePayloadSessionEstablishment(self):
5355
asserts.fail("Unable to establish a CASE session over TCP to the device")
5456
asserts.assert_equal(device.sessionAllowsLargePayload, True, "Session does not have associated TCP connection")
5557

58+
# Session Inactive After TCP Disconnect
5659
@async_test_body
57-
async def test_SessionInactiveAfterTCPDisconnect(self):
60+
async def test_TC_SC_8_3(self):
5861

5962
try:
6063
device = await self.default_controller.GetConnectedDevice(nodeid=self.dut_node_id, allowPASE=False, timeoutMs=1000,
@@ -67,8 +70,9 @@ async def test_SessionInactiveAfterTCPDisconnect(self):
6770
asserts.assert_equal(device.isActiveSession, False,
6871
"Large Payload Session should not be active after TCP connection closure")
6972

73+
# TCP Connect, Disconnect, Then Connect Again
7074
@async_test_body
71-
async def test_TCPConnectDisconnectThenConnectAgain(self):
75+
async def test_TC_SC_8_4(self):
7276

7377
try:
7478
device = await self.default_controller.GetConnectedDevice(nodeid=self.dut_node_id, allowPASE=False, timeoutMs=1000,
@@ -90,8 +94,9 @@ async def test_TCPConnectDisconnectThenConnectAgain(self):
9094
asserts.assert_equal(device.isSessionOverTCPConnection, True, "Session does not have associated TCP connection")
9195
asserts.assert_equal(device.isActiveSession, True, "Large Payload Session should be active over TCP connection")
9296

97+
# OnOff Cluster Toggle Command Over TCP Session
9398
@async_test_body
94-
async def test_OnOffToggleCommandOverTCPSession(self):
99+
async def test_TC_SC_8_5(self):
95100

96101
try:
97102
device = await self.default_controller.GetConnectedDevice(nodeid=self.dut_node_id, allowPASE=False, timeoutMs=1000,
@@ -109,8 +114,9 @@ async def test_OnOffToggleCommandOverTCPSession(self):
109114
except InteractionModelError:
110115
asserts.fail("Unexpected error returned by DUT")
111116

117+
# WildCard Read Over TCP Session
112118
@async_test_body
113-
async def test_WildCardReadOverTCPSession(self):
119+
async def test_TC_SC_8_6(self):
114120

115121
try:
116122
device = await self.default_controller.GetConnectedDevice(nodeid=self.dut_node_id, allowPASE=False, timeoutMs=1000,
@@ -126,8 +132,9 @@ async def test_WildCardReadOverTCPSession(self):
126132
except InteractionModelError:
127133
asserts.fail("Unexpected error returned by DUT")
128134

135+
# Use TCP Session If Available For MRP Interaction
129136
@async_test_body
130-
async def test_UseTCPSessionIfAvailableForMRPInteraction(self):
137+
async def test_TC_SC_8_7(self):
131138

132139
try:
133140
device = await self.default_controller.GetConnectedDevice(nodeid=self.dut_node_id, allowPASE=False, timeoutMs=1000,

0 commit comments

Comments
 (0)