Skip to content

Commit 1e4ad75

Browse files
authored
[Quick Fix] Removed enum.kProxyView from privileges tested in TC_AccessChecker.py (project-chip#42070)
1 parent 766134f commit 1e4ad75

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/python_testing/TC_AccessChecker.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ async def run_access_test(self, test_type: AccessTestType):
348348
self.step(check_step)
349349
enum = Clusters.AccessControl.Enums.AccessControlEntryPrivilegeEnum
350350
in_progress_clusters = [Clusters.ColorControl.id]
351-
privilege_enum = [p for p in enum if p != enum.kUnknownEnumValue]
351+
privilege_enum = [p for p in enum if p != enum.kUnknownEnumValue and p != enum.kProxyView]
352352
for privilege in privilege_enum:
353353
logging.info(f"Testing for {privilege}")
354354
self.step(step_number_with_privilege(check_step, 'a', privilege))
@@ -379,7 +379,7 @@ def steps_TC_ACE_2_1(self):
379379
TestStep(2, "TH_commissioner reads the ACL attribute (done during test setup)"),
380380
TestStep(3, "Repeat steps 3a and 3b for each permission level")]
381381
enum = Clusters.AccessControl.Enums.AccessControlEntryPrivilegeEnum
382-
privilege_enum = [p for p in enum if p != enum.kUnknownEnumValue]
382+
privilege_enum = [p for p in enum if p != enum.kUnknownEnumValue and p != enum.kProxyView]
383383
for p in privilege_enum:
384384
steps.append(TestStep(step_number_with_privilege(3, 'a', p),
385385
"TH_commissioner gives TH_second_commissioner the specified privilege"))
@@ -402,7 +402,7 @@ def steps_TC_ACE_2_2(self):
402402
TestStep(4, "TH_second_controller performs a wildcard read"),
403403
TestStep(5, "Repeat steps 5a and 5b for each permission level")]
404404
enum = Clusters.AccessControl.Enums.AccessControlEntryPrivilegeEnum
405-
privilege_enum = [p for p in enum if p != enum.kUnknownEnumValue]
405+
privilege_enum = [p for p in enum if p != enum.kUnknownEnumValue and p != enum.kProxyView]
406406
for p in privilege_enum:
407407
steps.append(TestStep(step_number_with_privilege(5, 'a', p),
408408
"TH_commissioner gives TH_second_commissioner the specified privilege"))
@@ -423,7 +423,7 @@ def steps_TC_ACE_2_3(self):
423423
TestStep(2, "TH_commissioner reads the ACL attribute (done during test setup)"),
424424
TestStep(3, "Repeat steps 3a and 3b for each permission level")]
425425
enum = Clusters.AccessControl.Enums.AccessControlEntryPrivilegeEnum
426-
privilege_enum = [p for p in enum if p != enum.kUnknownEnumValue]
426+
privilege_enum = [p for p in enum if p != enum.kUnknownEnumValue and p != enum.kProxyView]
427427
for p in privilege_enum:
428428
steps.append(TestStep(step_number_with_privilege(3, 'a', p),
429429
"TH_commissioner gives TH_second_controller the specified privilege"))

0 commit comments

Comments
 (0)