<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=big5">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p>Hi  Rahul,</p>
<p><br>
</p>
<p><span style="font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 16px;">Thank you for your responds.</span></p>
<p><span style="font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 16px;"></span></p>
<span>According to our request, can I add a new IPMI test suite and a new IPMI only keyword?</span>
<p><br>
</p>
BRs,
<div>Will<br>
<div style="color: rgb(0, 0, 0);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>寄件者:</b> Rahul Maheshwari <rahulmaheshwari01@gmail.com><br>
<b>寄件日期:</b> 2019年9月23日 下午 07:29<br>
<b>收件者:</b> Will Liang (梁永鉉)<br>
<b>副本:</b> openbmc@lists.ozlabs.org<br>
<b>主旨:</b> Re: Questions of openbmc-test-automation</font>
<div> </div>
</div>
<div>
<div dir="auto">
<div>Hi Will</div>
<div dir="auto">At present, we don't have ways to avoid Redfish dependency in IPMI suite. We can code like the way you pointed, but it is possible only for some IPMI commands(like power on and off). For all other IPMI commands like event logs, FRU, SDR, DCMI
 commands we need to depend on Redfish to verify the output.</div>
<div dir="auto"><br>
</div>
<div dir="auto">Thanks</div>
<div dir="auto">Rahul</div>
<div dir="auto">
<div dir="auto"><br>
</div>
<br>
<br>
<div class="gmail_quote" dir="auto">
<div dir="ltr" class="gmail_attr">On Mon, 23 Sep 2019, 11:13 Will Liang (梁永鉉), <<a href="mailto:Will.Liang@quantatw.com" rel="noreferrer noreferrer" target="_blank">Will.Liang@quantatw.com</a>> wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
Hi,<br>
<br>
I use the "openbmc-test-automation" package to test our project.<br>
And I just want to implement the IPMI test case because our platform does not support REDFISH (IPMI only).<br>
But I found that in the IPMI test case, it use the REFISH command as well (eg Redfish power on[0]).<br>
<br>
[0] <a href="https://github.com/openbmc/openbmc-test-automation/blob/2a520ee37c72ea847ca2d6c773493a6dd752c827/ipmi/test_ipmi_sdr.robot#L59" rel="noreferrer noreferrer noreferrer noreferrer" target="_blank">
https://github.com/openbmc/openbmc-test-automation/blob/2a520ee37c72ea847ca2d6c773493a6dd752c827/ipmi/test_ipmi_sdr.robot#L59</a><br>
<br>
My questions are following:<br>
1. Are there other ways to avoid using the Redfish commands?<br>
2. Is it possible to add parameter(ex:PROTOCOL) on the command line to select the protocol to use?<br>
For example:<br>
- add the new keyword maybe like "Power On".<br>
- and the new keyword "power on" can use the new parameter to choose what protocol be used(default protocol is REDFISH if not set).<br>
- the new keyword like below:<br>
Power On<br>
    [Documentation]  select the execute protocol.<br>
    [Arguments]  ${stack_mode}=${stack_mode}  ${quiet}=${quiet}<br>
<br>
    Run Keyword If  '${PROTOCOL}' == 'Redfish'<br>
    ...   Redfish Power On    stack_mode=skip    quiet=0<br>
    ...   ELSE    IPMI Power On    stack_mode=skip    quiet=0<br>
<br>
BRs<br>
Will<br>
</blockquote>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>