Skip to content

Commit 7779420

Browse files
committed
added a check in get_user funtion that length of given Credential list matches with length of response credential list
1 parent df6c4cb commit 7779420

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/python_testing/TC_DRLK_2_9.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,10 @@ async def get_user(self, userindex, username, useruniqueid, credentiallist, expe
210210
"Error when executing GetUserResponse command, userUniqueID={}".format(
211211
str(response.userUniqueID)))
212212
logging.info("Credentials value is GetUserResponse Command %s" % (str(response.credentials)))
213-
# traverse through input credentials and match each value with the resonse credential
213+
214+
asserts.assert_equal(len(credentiallist), len(response.credentials), "Error mismatch in expected credential from GetUserResponse command = {}".format(
215+
str(credentiallist)))
216+
# traverse through input credentials and match each value with the resonse credential
214217
for input_credential_index in range(len(credentiallist)):
215218
match_found = False
216219
for response_credential_index in range(len(response.credentials)):

0 commit comments

Comments
 (0)