Modified Hardcoded channel Number as 1 to dynamic.
While Getting user info using "Get User Info" keyword by default
it will return channel numebr 1 user. we have to mention the channel
number to get the particular channel user info. So for Get User Info
keyword added ${CHANNEL_NUMBER} variable as argument.
And also while getting channel access we are hardcoding the channel
number as 1, there are removed 1 and added ${CHANNEL_NUMBER}.
Tested: Run robot ipmi/test_ipmi_user.robot
Run robot ipmi/test_ipmi_payload.robot
Run robot redfish/account_service/test_ipmi_redfish_user.robot
Change-Id: Id81b59e7880045b74e65195089e38d8653f66d7a
Signed-off-by: Nagarjun B <nagarjunb@ami.com>
diff --git a/ipmi/test_ipmi_payload.robot b/ipmi/test_ipmi_payload.robot
index 6c93567..18b5e6c 100644
--- a/ipmi/test_ipmi_payload.robot
+++ b/ipmi/test_ipmi_payload.robot
@@ -417,7 +417,7 @@
[Documentation] Get random invalid user ID using "channel getaccess" IPMI standard command.
# Python module: get_user_info(userid, channel_number=1)
- ${user_info}= Get User Info ${EMPTY}
+ ${user_info}= Get User Info ${EMPTY} ${CHANNEL_NUMBER}
${user_info}= Filter Struct ${user_info} [('user_name', None)] invert=1
${empty_user_info}= Filter Struct ${user_info} [('user_name', '')]
@{invalid_userid_list}= Create List