Skip to content

Commit

Permalink
Remove workaround for global attrs
Browse files Browse the repository at this point in the history
  • Loading branch information
cecille committed Jan 17, 2024
1 parent 4e3cdbc commit 41e1ce1
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/python_testing/TC_AccessChecker.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,10 +162,7 @@ async def _run_write_access_test_for_cluster_privilege(self, endpoint_id, cluste
resp = await self.TH2.WriteAttribute(nodeid=self.dut_node_id, attributes=[(endpoint_id, attribute(val))])
if spec_requires == Clusters.AccessControl.Enums.AccessControlEntryPrivilegeEnum.kUnknownEnumValue:
# not writeable - expect an unsupported write response
# Global vars currently return the wrong error code - see #31448
ok = (is_global(attribute.attribute_id) and resp[0].Status ==
Status.UnsupportedAttribute) or resp[0].Status == Status.UnsupportedWrite
if not ok:
if resp[0].Status != Status.UnsupportedWrite:
self.record_error(test_name=test_name, location=location,
problem=f"Unexpected error writing non-writeable attribute - expected Unsupported Write, got {resp[0].Status}")
self.success = False
Expand Down

0 comments on commit 41e1ce1

Please sign in to comment.