32
32
33
33
class TCP_Tests (MatterBaseTest ):
34
34
35
+ #TCP Connection Establishment
35
36
@async_test_body
36
- async def test_TCPConnectionEstablishment (self ):
37
+ async def test_TC_SC_8_1 (self ):
37
38
38
39
try :
39
40
device = await self .default_controller .GetConnectedDevice (nodeid = self .dut_node_id , allowPASE = False , timeoutMs = 1000 ,
@@ -43,8 +44,9 @@ async def test_TCPConnectionEstablishment(self):
43
44
asserts .assert_equal (device .isSessionOverTCPConnection , True , "Session does not have associated TCP connection" )
44
45
asserts .assert_equal (device .isActiveSession , True , "Large Payload Session should be active over TCP connection" )
45
46
47
+ # Large Payload Session Establishment
46
48
@async_test_body
47
- async def test_LargePayloadSessionEstablishment (self ):
49
+ async def test_TC_SC_8_2 (self ):
48
50
49
51
try :
50
52
device = await self .default_controller .GetConnectedDevice (nodeid = self .dut_node_id , allowPASE = False , timeoutMs = 1000 ,
@@ -53,8 +55,9 @@ async def test_LargePayloadSessionEstablishment(self):
53
55
asserts .fail ("Unable to establish a CASE session over TCP to the device" )
54
56
asserts .assert_equal (device .sessionAllowsLargePayload , True , "Session does not have associated TCP connection" )
55
57
58
+ # Session Inactive After TCP Disconnect
56
59
@async_test_body
57
- async def test_SessionInactiveAfterTCPDisconnect (self ):
60
+ async def test_TC_SC_8_3 (self ):
58
61
59
62
try :
60
63
device = await self .default_controller .GetConnectedDevice (nodeid = self .dut_node_id , allowPASE = False , timeoutMs = 1000 ,
@@ -67,8 +70,9 @@ async def test_SessionInactiveAfterTCPDisconnect(self):
67
70
asserts .assert_equal (device .isActiveSession , False ,
68
71
"Large Payload Session should not be active after TCP connection closure" )
69
72
73
+ #TCP Connect Disconnect Then Connect Again
70
74
@async_test_body
71
- async def test_TCPConnectDisconnectThenConnectAgain (self ):
75
+ async def test_TC_SC_8_4 (self ):
72
76
73
77
try :
74
78
device = await self .default_controller .GetConnectedDevice (nodeid = self .dut_node_id , allowPASE = False , timeoutMs = 1000 ,
@@ -90,8 +94,9 @@ async def test_TCPConnectDisconnectThenConnectAgain(self):
90
94
asserts .assert_equal (device .isSessionOverTCPConnection , True , "Session does not have associated TCP connection" )
91
95
asserts .assert_equal (device .isActiveSession , True , "Large Payload Session should be active over TCP connection" )
92
96
97
+ #OnOff Cluster Toggle Command Over TCP Session
93
98
@async_test_body
94
- async def test_OnOffToggleCommandOverTCPSession (self ):
99
+ async def test_TC_SC_8_5 (self ):
95
100
96
101
try :
97
102
device = await self .default_controller .GetConnectedDevice (nodeid = self .dut_node_id , allowPASE = False , timeoutMs = 1000 ,
@@ -109,8 +114,9 @@ async def test_OnOffToggleCommandOverTCPSession(self):
109
114
except InteractionModelError :
110
115
asserts .fail ("Unexpected error returned by DUT" )
111
116
117
+ # WildCard Read Over TCP Session
112
118
@async_test_body
113
- async def test_WildCardReadOverTCPSession (self ):
119
+ async def test_TC_SC_8_6 (self ):
114
120
115
121
try :
116
122
device = await self .default_controller .GetConnectedDevice (nodeid = self .dut_node_id , allowPASE = False , timeoutMs = 1000 ,
@@ -126,8 +132,9 @@ async def test_WildCardReadOverTCPSession(self):
126
132
except InteractionModelError :
127
133
asserts .fail ("Unexpected error returned by DUT" )
128
134
135
+ # Use TCP Session If Available For MRP Interaction
129
136
@async_test_body
130
- async def test_UseTCPSessionIfAvailableForMRPInteraction (self ):
137
+ async def test_TC_SC_8_7 (self ):
131
138
132
139
try :
133
140
device = await self .default_controller .GetConnectedDevice (nodeid = self .dut_node_id , allowPASE = False , timeoutMs = 1000 ,
0 commit comments