Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added a check in get_user funtion that length of given Credential lis…
Browse files Browse the repository at this point in the history
…t matches with length of response credential list
sumaky committed Sep 17, 2024
1 parent df6c4cb commit 7779420
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/python_testing/TC_DRLK_2_9.py
Original file line number Diff line number Diff line change
@@ -210,7 +210,10 @@ async def get_user(self, userindex, username, useruniqueid, credentiallist, expe
"Error when executing GetUserResponse command, userUniqueID={}".format(
str(response.userUniqueID)))
logging.info("Credentials value is GetUserResponse Command %s" % (str(response.credentials)))
# traverse through input credentials and match each value with the resonse credential

asserts.assert_equal(len(credentiallist), len(response.credentials), "Error mismatch in expected credential from GetUserResponse command = {}".format(
str(credentiallist)))
# traverse through input credentials and match each value with the resonse credential
for input_credential_index in range(len(credentiallist)):
match_found = False
for response_credential_index in range(len(response.credentials)):

0 comments on commit 7779420

Please sign in to comment.