Skip to content

Commit

Permalink
Resolve comments - improve errors and remove extra print.
Browse files Browse the repository at this point in the history
  • Loading branch information
cletnick committed Jan 19, 2023
1 parent 3f7437d commit 5730ca0
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/python_testing/TC_RR_1_1.py
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ async def fill_and_validate_group_key_sets(self,
Clusters.GroupKeyManagement.Commands.KeySetRead(
group_keys[fabric_idx][group_key_list_idx].groupKeySetID),
responseType=Clusters.GroupKeyManagement.Commands.KeySetReadResponse)
print(key_set)

asserts.assert_equal(group_keys[fabric_idx][group_key_list_idx].groupKeySetID,
key_set.groupKeySet.groupKeySetID, "Received incorrect key set.")
asserts.assert_equal(group_keys[fabric_idx][group_key_list_idx].groupKeySecurityPolicy,
Expand All @@ -474,9 +474,12 @@ async def fill_and_validate_group_key_sets(self,
key_set.groupKeySet.epochStartTime1)
asserts.assert_equal(group_keys[fabric_idx][group_key_list_idx].epochStartTime2,
key_set.groupKeySet.epochStartTime2)
asserts.assert_equal(NullValue, key_set.groupKeySet.epochKey0, "Unexpected key response from read.")
asserts.assert_equal(NullValue, key_set.groupKeySet.epochKey1, "Unexpected key response from read.")
asserts.assert_equal(NullValue, key_set.groupKeySet.epochKey2, "Unexpected key response from read.")
asserts.assert_equal(NullValue, key_set.groupKeySet.epochKey0,
"Value for epochKey0 included in KeySetReadResponse. It must not be.")
asserts.assert_equal(NullValue, key_set.groupKeySet.epochKey1,
"Value for epochKey1 included in KeySetReadResponse. It must not be.")
asserts.assert_equal(NullValue, key_set.groupKeySet.epochKey2,
"Value for epochKey2 included in KeySetReadResponse. It must not be.")

return group_keys

Expand Down

0 comments on commit 5730ca0

Please sign in to comment.