Skip to content

Commit 4373a69

Browse files
committed
autopep8
1 parent 928fe76 commit 4373a69

File tree

1 file changed

+28
-14
lines changed

1 file changed

+28
-14
lines changed

src/python_testing/TC_ACE_1_3.py

+28-14
Original file line numberDiff line numberDiff line change
@@ -53,72 +53,86 @@ def steps_TC_ACE_1_3(self) -> list[TestStep]:
5353
steps = [
5454
TestStep(1, "Precondition: TH0 commissions DUT using admin node ID `N0`", "DUT is commissioned on TH0 fabric", is_commissioning=True),
5555
# Subjects: wildcard
56-
TestStep(2, "TH0 writes DUT Endpoint 0 AccessControl cluster ACL attribute,\nvalue is list of AccessControlEntryStruct containing 2 elements\n\n. struct\n- Privilege field: Administer (5)\n- AuthMode field: CASE (2)\n- Subjects field: [`N0`]\n- Targets field: [{Cluster: AccessControl (0x001f), Endpoint: 0}]\n. struct\n- Privilege field: View (1)\n- AuthMode field: CASE (2)\n- Subjects field: null\n- Targets field: [{Endpoint: 0}]", "Result is SUCCESS"),
56+
TestStep(
57+
2, "TH0 writes DUT Endpoint 0 AccessControl cluster ACL attribute,\nvalue is list of AccessControlEntryStruct containing 2 elements\n\n. struct\n- Privilege field: Administer (5)\n- AuthMode field: CASE (2)\n- Subjects field: [`N0`]\n- Targets field: [{Cluster: AccessControl (0x001f), Endpoint: 0}]\n. struct\n- Privilege field: View (1)\n- AuthMode field: CASE (2)\n- Subjects field: null\n- Targets field: [{Endpoint: 0}]", "Result is SUCCESS"),
5758
TestStep(3, "TH1 reads DUT Endpoint 0 Descriptor cluster DeviceTypeList attribute", "Result is SUCCESS"),
5859
TestStep(4, "TH2 reads DUT Endpoint 0 Descriptor cluster DeviceTypeList attribute", "Result is SUCCESS"),
5960
TestStep(5, "TH3 reads DUT Endpoint 0 Descriptor cluster DeviceTypeList attribute", "Result is SUCCESS"),
6061
# Subjects: N1
61-
TestStep(6, "TH0 writes DUT Endpoint 0 AccessControl cluster ACL attribute,\nvalue is list of AccessControlEntryStruct containing 2 elements\n\n. struct\n- Privilege field: Administer (5)\n- AuthMode field: CASE (2)\n- Subjects field: [`N0`]\n- Targets field: [{Cluster: AccessControl (0x001f), Endpoint: 0}]\n. struct\n- Privilege field: View (1)\n- AuthMode field: CASE (2)\n- Subjects field: [`N1`]\n- Targets field: [{Endpoint: 0}]", "Result is SUCCESS"),
62+
TestStep(
63+
6, "TH0 writes DUT Endpoint 0 AccessControl cluster ACL attribute,\nvalue is list of AccessControlEntryStruct containing 2 elements\n\n. struct\n- Privilege field: Administer (5)\n- AuthMode field: CASE (2)\n- Subjects field: [`N0`]\n- Targets field: [{Cluster: AccessControl (0x001f), Endpoint: 0}]\n. struct\n- Privilege field: View (1)\n- AuthMode field: CASE (2)\n- Subjects field: [`N1`]\n- Targets field: [{Endpoint: 0}]", "Result is SUCCESS"),
6264
TestStep(7, "TH1 reads DUT Endpoint 0 Descriptor cluster DeviceTypeList attribute", "Result is SUCCESS"),
6365
TestStep(8, "TH2 reads DUT Endpoint 0 Descriptor cluster DeviceTypeList attribute", "Result is UNSUPPORTED_ACCESS (0x7e)"),
6466
TestStep(9, "TH3 reads DUT Endpoint 0 Descriptor cluster DeviceTypeList attribute", "Result is UNSUPPORTED_ACCESS (0x7e)"),
6567
# Subjects: N2
66-
TestStep(10, "TH0 writes DUT Endpoint 0 AccessControl cluster ACL attribute,\nvalue is list of AccessControlEntryStruct containing 2 elements\n\n. struct\n- Privilege field: Administer (5)\n- AuthMode field: CASE (2)\n- Subjects field: [`N0`]\n- Targets field: [{Cluster: AccessControl (0x001f), Endpoint: 0}]\n. struct\n- Privilege field: View (1)\n- AuthMode field: CASE (2)\n- Subjects field: [`N2`]\n- Targets field: [{Endpoint: 0}]", "Result is SUCCESS"),
68+
TestStep(
69+
10, "TH0 writes DUT Endpoint 0 AccessControl cluster ACL attribute,\nvalue is list of AccessControlEntryStruct containing 2 elements\n\n. struct\n- Privilege field: Administer (5)\n- AuthMode field: CASE (2)\n- Subjects field: [`N0`]\n- Targets field: [{Cluster: AccessControl (0x001f), Endpoint: 0}]\n. struct\n- Privilege field: View (1)\n- AuthMode field: CASE (2)\n- Subjects field: [`N2`]\n- Targets field: [{Endpoint: 0}]", "Result is SUCCESS"),
6770
TestStep(11, "TH1 reads DUT Endpoint 1 Descriptor cluster DeviceTypeList attribute", "Result is UNSUPPORTED_ACCESS (0x7e)"),
6871
TestStep(12, "TH2 reads DUT Endpoint 1 Descriptor cluster DeviceTypeList attribute", "Result is SUCCESS"),
6972
TestStep(13, "TH3 reads DUT Endpoint 1 Descriptor cluster DeviceTypeList attribute", "Result is UNSUPPORTED_ACCESS (0x7e)"),
7073
# Subjects: N3
71-
TestStep(14, "TH0 writes DUT Endpoint 0 AccessControl cluster ACL attribute,\nvalue is list of AccessControlEntryStruct containing 2 elements\n\n. struct\n- Privilege field: Administer (5)\n- AuthMode field: CASE (2)\n- Subjects field: [`N0`]\n- Targets field: [{Cluster: AccessControl (0x001f), Endpoint: 0}]\n. struct\n- Privilege field: View (1)\n- AuthMode field: CASE (2)\n- Subjects field: [`N3`]\n- Targets field: [{Endpoint: 0}]", "Result is SUCCESS"),
74+
TestStep(
75+
14, "TH0 writes DUT Endpoint 0 AccessControl cluster ACL attribute,\nvalue is list of AccessControlEntryStruct containing 2 elements\n\n. struct\n- Privilege field: Administer (5)\n- AuthMode field: CASE (2)\n- Subjects field: [`N0`]\n- Targets field: [{Cluster: AccessControl (0x001f), Endpoint: 0}]\n. struct\n- Privilege field: View (1)\n- AuthMode field: CASE (2)\n- Subjects field: [`N3`]\n- Targets field: [{Endpoint: 0}]", "Result is SUCCESS"),
7276
TestStep(15, "TH1 reads DUT Endpoint 0 Descriptor cluster DeviceTypeList attribute", "Result is UNSUPPORTED_ACCESS (0x7e)"),
7377
TestStep(16, "TH2 reads DUT Endpoint 0 Descriptor cluster DeviceTypeList attribute", "Result is UNSUPPORTED_ACCESS (0x7e)"),
7478
TestStep(17, "TH3 reads DUT Endpoint 0 Descriptor cluster DeviceTypeList attribute", "Result is SUCCESS"),
7579
# Subjects: N1, N2
76-
TestStep(18, "TH0 writes DUT Endpoint 0 AccessControl cluster ACL attribute,\nvalue is list of AccessControlEntryStruct containing 2 elements\n\n. struct\n- Privilege field: Administer (5)\n- AuthMode field: CASE (2)\n- Subjects field: [`N0`]\n- Targets field: [{Cluster: AccessControl (0x001f), Endpoint: 0}]\n. struct\n- Privilege field: View (1)\n- AuthMode field: CASE (2)\n- Subjects field: [`N1`, `N2`]\n- Targets field: [{Endpoint: 0}]", "Result is SUCCESS"),
80+
TestStep(
81+
18, "TH0 writes DUT Endpoint 0 AccessControl cluster ACL attribute,\nvalue is list of AccessControlEntryStruct containing 2 elements\n\n. struct\n- Privilege field: Administer (5)\n- AuthMode field: CASE (2)\n- Subjects field: [`N0`]\n- Targets field: [{Cluster: AccessControl (0x001f), Endpoint: 0}]\n. struct\n- Privilege field: View (1)\n- AuthMode field: CASE (2)\n- Subjects field: [`N1`, `N2`]\n- Targets field: [{Endpoint: 0}]", "Result is SUCCESS"),
7782
TestStep(19, "TH1 reads DUT Endpoint 0 Descriptor cluster DeviceTypeList attribute", "Result is SUCCESS"),
7883
TestStep(20, "TH2 reads DUT Endpoint 0 Descriptor cluster DeviceTypeList attribute", "Result is SUCCESS"),
7984
TestStep(21, "TH3 reads DUT Endpoint 0 Descriptor cluster DeviceTypeList attribute", "Result is UNSUPPORTED_ACCESS (0x7e)"),
8085
# Subjects: N1, N3
81-
TestStep(22, "TH0 writes DUT Endpoint 0 AccessControl cluster ACL attribute,\nvalue is list of AccessControlEntryStruct containing 2 elements\n\n. struct\n- Privilege field: Administer (5)\n- AuthMode field: CASE (2)\n- Subjects field: [`N0`]\n- Targets field: [{Cluster: AccessControl (0x001f), Endpoint: 0}]\n. struct\n- Privilege field: View (1)\n- AuthMode field: CASE (2)\n- Subjects field: [`N1`, `N3`]\n- Targets field: [{Endpoint: 0}]", "Result is SUCCESS"),
86+
TestStep(
87+
22, "TH0 writes DUT Endpoint 0 AccessControl cluster ACL attribute,\nvalue is list of AccessControlEntryStruct containing 2 elements\n\n. struct\n- Privilege field: Administer (5)\n- AuthMode field: CASE (2)\n- Subjects field: [`N0`]\n- Targets field: [{Cluster: AccessControl (0x001f), Endpoint: 0}]\n. struct\n- Privilege field: View (1)\n- AuthMode field: CASE (2)\n- Subjects field: [`N1`, `N3`]\n- Targets field: [{Endpoint: 0}]", "Result is SUCCESS"),
8288
TestStep(23, "TH1 reads DUT Endpoint 0 Descriptor cluster DeviceTypeList attribute", "Result is SUCCESS"),
8389
TestStep(24, "TH2 reads DUT Endpoint 0 Descriptor cluster DeviceTypeList attribute", "Result is UNSUPPORTED_ACCESS (0x7e)"),
8490
TestStep(25, "TH3 reads DUT Endpoint 0 Descriptor cluster DeviceTypeList attribute", "Result is SUCCESS"),
8591
# Subjects: N2, N3
86-
TestStep(26, "TH0 writes DUT Endpoint 0 AccessControl cluster ACL attribute,\nvalue is list of AccessControlEntryStruct containing 2 elements\n\n. struct\n- Privilege field: Administer (5)\n- AuthMode field: CASE (2)\n- Subjects field: [`N0`]\n- Targets field: [{Cluster: AccessControl (0x001f), Endpoint: 0}]\n. struct\n- Privilege field: View (1)\n- AuthMode field: CASE (2)\n- Subjects field: [`N2`, `N3`]\n- Targets field: [{Endpoint: 0}]", "Result is SUCCESS"),
92+
TestStep(
93+
26, "TH0 writes DUT Endpoint 0 AccessControl cluster ACL attribute,\nvalue is list of AccessControlEntryStruct containing 2 elements\n\n. struct\n- Privilege field: Administer (5)\n- AuthMode field: CASE (2)\n- Subjects field: [`N0`]\n- Targets field: [{Cluster: AccessControl (0x001f), Endpoint: 0}]\n. struct\n- Privilege field: View (1)\n- AuthMode field: CASE (2)\n- Subjects field: [`N2`, `N3`]\n- Targets field: [{Endpoint: 0}]", "Result is SUCCESS"),
8794
TestStep(27, "TH1 reads DUT Endpoint 0 Descriptor cluster DeviceTypeList attribute", "Result is UNSUPPORTED_ACCESS (0x7e)"),
8895
TestStep(28, "TH2 reads DUT Endpoint 0 Descriptor cluster DeviceTypeList attribute", "Result is SUCCESS"),
8996
TestStep(29, "TH3 reads DUT Endpoint 0 Descriptor cluster DeviceTypeList attribute", "Result is SUCCESS"),
9097
# Subjects: N1, N2, N3
91-
TestStep(30, "TH0 writes DUT Endpoint 0 AccessControl cluster ACL attribute,\nvalue is list of AccessControlEntryStruct containing 2 elements\n\n. struct\n- Privilege field: Administer (5)\n- AuthMode field: CASE (2)\n- Subjects field: [`N0`]\n- Targets field: [{Cluster: AccessControl (0x001f), Endpoint: 0}]\n. struct\n- Privilege field: View (1)\n- AuthMode field: CASE (2)\n- Subjects field: [`N1`, `N2`, `N3`]\n- Targets field: [{Endpoint: 0}]", "Result is SUCCESS"),
98+
TestStep(
99+
30, "TH0 writes DUT Endpoint 0 AccessControl cluster ACL attribute,\nvalue is list of AccessControlEntryStruct containing 2 elements\n\n. struct\n- Privilege field: Administer (5)\n- AuthMode field: CASE (2)\n- Subjects field: [`N0`]\n- Targets field: [{Cluster: AccessControl (0x001f), Endpoint: 0}]\n. struct\n- Privilege field: View (1)\n- AuthMode field: CASE (2)\n- Subjects field: [`N1`, `N2`, `N3`]\n- Targets field: [{Endpoint: 0}]", "Result is SUCCESS"),
92100
TestStep(31, "TH1 reads DUT Endpoint 0 Descriptor cluster DeviceTypeList attribute", "Result is SUCCESS"),
93101
TestStep(32, "TH2 reads DUT Endpoint 0 Descriptor cluster DeviceTypeList attribute", "Result is SUCCESS"),
94102
TestStep(33, "TH3 reads DUT Endpoint 0 Descriptor cluster DeviceTypeList attribute", "Result is SUCCESS"),
95103
# Subjects: CAT1v1
96-
TestStep(34, "TH0 writes DUT Endpoint 0 AccessControl cluster ACL attribute,\nvalue is list of AccessControlEntryStruct containing 2 elements\n\n. struct\n- Privilege field: Administer (5)\n- AuthMode field: CASE (2)\n- Subjects field: [`N0`]\n- Targets field: [{Cluster: AccessControl (0x001f), Endpoint: 0}]\n. struct\n- Privilege field: View (1)\n- AuthMode field: CASE (2)\n- Subjects field: [`CAT1v1_subject`]\n- Targets field: [{Endpoint: 0}]", "Result is SUCCESS"),
104+
TestStep(
105+
34, "TH0 writes DUT Endpoint 0 AccessControl cluster ACL attribute,\nvalue is list of AccessControlEntryStruct containing 2 elements\n\n. struct\n- Privilege field: Administer (5)\n- AuthMode field: CASE (2)\n- Subjects field: [`N0`]\n- Targets field: [{Cluster: AccessControl (0x001f), Endpoint: 0}]\n. struct\n- Privilege field: View (1)\n- AuthMode field: CASE (2)\n- Subjects field: [`CAT1v1_subject`]\n- Targets field: [{Endpoint: 0}]", "Result is SUCCESS"),
97106
TestStep(35, "TH1 reads DUT Endpoint 0 Descriptor cluster DeviceTypeList attribute", "Result is SUCCESS"),
98107
TestStep(36, "TH2 reads DUT Endpoint 0 Descriptor cluster DeviceTypeList attribute", "Result is SUCCESS"),
99108
TestStep(37, "TH3 reads DUT Endpoint 0 Descriptor cluster DeviceTypeList attribute", "Result is SUCCESS"),
100109
# Subjects: CAT1v2
101-
TestStep(38, "TH0 writes DUT Endpoint 0 AccessControl cluster ACL attribute,\nvalue is list of AccessControlEntryStruct containing 2 elements\n\n. struct\n- Privilege field: Administer (5)\n- AuthMode field: CASE (2)\n- Subjects field: [`N0`]\n- Targets field: [{Cluster: AccessControl (0x001f), Endpoint: 0}]\n. struct\n- Privilege field: View (1)\n- AuthMode field: CASE (2)\n- Subjects field: [`CAT1v2_subject`]\n- Targets field: [{Endpoint: 0}]", "Result is SUCCESS"),
110+
TestStep(
111+
38, "TH0 writes DUT Endpoint 0 AccessControl cluster ACL attribute,\nvalue is list of AccessControlEntryStruct containing 2 elements\n\n. struct\n- Privilege field: Administer (5)\n- AuthMode field: CASE (2)\n- Subjects field: [`N0`]\n- Targets field: [{Cluster: AccessControl (0x001f), Endpoint: 0}]\n. struct\n- Privilege field: View (1)\n- AuthMode field: CASE (2)\n- Subjects field: [`CAT1v2_subject`]\n- Targets field: [{Endpoint: 0}]", "Result is SUCCESS"),
102112
TestStep(39, "TH1 reads DUT Endpoint 0 Descriptor cluster DeviceTypeList attribute", "Result is SUCCESS"),
103113
TestStep(40, "TH2 reads DUT Endpoint 0 Descriptor cluster DeviceTypeList attribute", "Result is SUCCESS"),
104114
TestStep(41, "TH3 reads DUT Endpoint 0 Descriptor cluster DeviceTypeList attribute", "Result is UNSUPPORTED_ACCESS (0x7e)"),
105115
# Subjects: CAT1v3
106-
TestStep(42, "TH0 writes DUT Endpoint 0 AccessControl cluster ACL attribute,\nvalue is list of AccessControlEntryStruct containing 2 elements\n\n. struct\n- Privilege field: Administer (5)\n- AuthMode field: CASE (2)\n- Subjects field: [`N0`]\n- Targets field: [{Cluster: AccessControl (0x001f), Endpoint: 0}]\n. struct\n- Privilege field: View (1)\n- AuthMode field: CASE (2)\n- Subjects field: [`CAT1v3_subject`]\n- Targets field: [{Endpoint: 0}]", "Result is SUCCESS"),
116+
TestStep(
117+
42, "TH0 writes DUT Endpoint 0 AccessControl cluster ACL attribute,\nvalue is list of AccessControlEntryStruct containing 2 elements\n\n. struct\n- Privilege field: Administer (5)\n- AuthMode field: CASE (2)\n- Subjects field: [`N0`]\n- Targets field: [{Cluster: AccessControl (0x001f), Endpoint: 0}]\n. struct\n- Privilege field: View (1)\n- AuthMode field: CASE (2)\n- Subjects field: [`CAT1v3_subject`]\n- Targets field: [{Endpoint: 0}]", "Result is SUCCESS"),
107118
TestStep(43, "TH1 reads DUT Endpoint 0 Descriptor cluster DeviceTypeList attribute", "Result is SUCCESS"),
108119
TestStep(44, "TH2 reads DUT Endpoint 0 Descriptor cluster DeviceTypeList attribute", "Result is UNSUPPORTED_ACCESS (0x7e)"),
109120
TestStep(45, "TH3 reads DUT Endpoint 0 Descriptor cluster DeviceTypeList attribute", "Result is UNSUPPORTED_ACCESS (0x7e)"),
110121
# Subjects: CAT2v1
111-
TestStep(46, "TH0 writes DUT Endpoint 0 AccessControl cluster ACL attribute,\nvalue is list of AccessControlEntryStruct containing 2 elements\n\n. struct\n- Privilege field: Administer (5)\n- AuthMode field: CASE (2)\n- Subjects field: [`N0`]\n- Targets field: [{Cluster: AccessControl (0x001f), Endpoint: 0}]\n. struct\n- Privilege field: View (1)\n- AuthMode field: CASE (2)\n- Subjects field: [`CAT2v1_subject`]\n- Targets field: [{Endpoint: 0}]", "Result is SUCCESS"),
122+
TestStep(
123+
46, "TH0 writes DUT Endpoint 0 AccessControl cluster ACL attribute,\nvalue is list of AccessControlEntryStruct containing 2 elements\n\n. struct\n- Privilege field: Administer (5)\n- AuthMode field: CASE (2)\n- Subjects field: [`N0`]\n- Targets field: [{Cluster: AccessControl (0x001f), Endpoint: 0}]\n. struct\n- Privilege field: View (1)\n- AuthMode field: CASE (2)\n- Subjects field: [`CAT2v1_subject`]\n- Targets field: [{Endpoint: 0}]", "Result is SUCCESS"),
112124
TestStep(47, "TH1 reads DUT Endpoint 0 Descriptor cluster DeviceTypeList attribute", "Result is UNSUPPORTED_ACCESS (0x7e)"),
113125
TestStep(48, "TH2 reads DUT Endpoint 0 Descriptor cluster DeviceTypeList attribute", "Result is SUCCESS"),
114126
TestStep(49, "TH3 reads DUT Endpoint 0 Descriptor cluster DeviceTypeList attribute", "Result is SUCCESS"),
115127
# Subjects: CAT2v2
116-
TestStep(50, "TH0 writes DUT Endpoint 0 AccessControl cluster ACL attribute,\nvalue is list of AccessControlEntryStruct containing 2 elements\n\n. struct\n- Privilege field: Administer (5)\n- AuthMode field: CASE (2)\n- Subjects field: [`N0`]\n- Targets field: [{Cluster: AccessControl (0x001f), Endpoint: 0}]\n. struct\n- Privilege field: View (1)\n- AuthMode field: CASE (2)\n- Subjects field: [`CAT2v2_subject`]\n- Targets field: [{Endpoint: 0}]", "Result is SUCCESS"),
128+
TestStep(
129+
50, "TH0 writes DUT Endpoint 0 AccessControl cluster ACL attribute,\nvalue is list of AccessControlEntryStruct containing 2 elements\n\n. struct\n- Privilege field: Administer (5)\n- AuthMode field: CASE (2)\n- Subjects field: [`N0`]\n- Targets field: [{Cluster: AccessControl (0x001f), Endpoint: 0}]\n. struct\n- Privilege field: View (1)\n- AuthMode field: CASE (2)\n- Subjects field: [`CAT2v2_subject`]\n- Targets field: [{Endpoint: 0}]", "Result is SUCCESS"),
117130
TestStep(51, "TH1 reads DUT Endpoint 0 Descriptor cluster DeviceTypeList attribute", "Result is UNSUPPORTED_ACCESS (0x7e)"),
118131
TestStep(52, "TH2 reads DUT Endpoint 0 Descriptor cluster DeviceTypeList attribute", "Result is UNSUPPORTED_ACCESS (0x7e)"),
119132
TestStep(53, "TH3 reads DUT Endpoint 0 Descriptor cluster DeviceTypeList attribute", "Result is SUCCESS"),
120133
# Subjects: CAT2v3
121-
TestStep(54, "TH0 writes DUT Endpoint 0 AccessControl cluster ACL attribute,\nvalue is list of AccessControlEntryStruct containing 2 elements\n\n. struct\n- Privilege field: Administer (5)\n- AuthMode field: CASE (2)\n- Subjects field: [`N0`]\n- Targets field: [{Cluster: AccessControl (0x001f), Endpoint: 0}]\n. struct\n- Privilege field: View (1)\n- AuthMode field: CASE (2)\n- Subjects field: [`CAT2v3_subject`]\n- Targets field: [{Endpoint: 0}]", "Result is SUCCESS"),
134+
TestStep(
135+
54, "TH0 writes DUT Endpoint 0 AccessControl cluster ACL attribute,\nvalue is list of AccessControlEntryStruct containing 2 elements\n\n. struct\n- Privilege field: Administer (5)\n- AuthMode field: CASE (2)\n- Subjects field: [`N0`]\n- Targets field: [{Cluster: AccessControl (0x001f), Endpoint: 0}]\n. struct\n- Privilege field: View (1)\n- AuthMode field: CASE (2)\n- Subjects field: [`CAT2v3_subject`]\n- Targets field: [{Endpoint: 0}]", "Result is SUCCESS"),
122136
TestStep(55, "TH1 reads DUT Endpoint 0 Descriptor cluster DeviceTypeList attribute", "Result is UNSUPPORTED_ACCESS (0x7e)"),
123137
TestStep(56, "TH2 reads DUT Endpoint 0 Descriptor cluster DeviceTypeList attribute", "Result is UNSUPPORTED_ACCESS (0x7e)"),
124138
TestStep(57, "TH3 reads DUT Endpoint 0 Descriptor cluster DeviceTypeList attribute", "Result is UNSUPPORTED_ACCESS (0x7e)"),

0 commit comments

Comments
 (0)