Host related testcases in openbmc-test-automation

George Keishing gkeishin at in.ibm.com
Thu Aug 6 22:42:04 AEST 2020


Jayashree,

	See if this info helps to get you started what you are looking for.

1. OBMC-CONSOLE - To connect the host via BMC, we are using
obmc-console-client to login the host and check the host conections.

Most of the test code uses the login  BMC/host, check connect via
REST/SSH/Ping to do the check on connection

You can look at this keyword used:
Example:

  -login to BMC and execute :   BMC Execute Command

https://github.com/openbmc/openbmc-test-automation/blob/master/lib/bmc_ssh_utils.py#L12

https://github.com/openbmc/openbmc-test-automation/blob/master/redfish/extended/test_basic_ci.robot#L74

https://github.com/openbmc/openbmc-test-automation/blob/master/redfish/extended/test_basic_ci.robot#L96

https://github.com/openbmc/openbmc-test-automation/blob/master/redfish/managers/test_certificate.robot#L413
  etc...

  or simply use something like this:
    SSHLibrary.Open connection  ${bmc_ip}
    SSHLibrary.Login  ${openbmc_username}  ${openbmc_password}

  -login to Host and execute: Login To OS Host   /  OS Execute Command

https://github.com/openbmc/openbmc-test-automation/blob/master/syslib/utils_os.robot#L38

https://github.com/openbmc/openbmc-test-automation/blob/master/lib/bmc_ssh_utils.py#L70

  etc.

  - obmc-console-client: Start SOL Console Logging / Stop SOL Console
Logging

https://github.com/openbmc/openbmc-test-automation/blob/master/lib/common_utils.robot#L386

https://github.com/openbmc/openbmc-test-automation/blob/master/lib/common_utils.robot#L342

  you can grep/serach around tests / redfish dir, you ll see where and how
they are used in the test suite


The test boot keywords to power on /off/ reboot etc are here,
https://github.com/openbmc/openbmc-test-automation/blob/master/lib/boot_utils.robot

you'll notice those are used in test to drive the boot and the best part is
if you key in these test parameter from robot command line
https://github.com/openbmc/openbmc-test-automation/blob/master/lib/resource.robot#L45


it will ensure, to login and check if the Host is up and running as part of
the boot keyword



2. HOST LOGGER - To handle and store host's console output data, such as
boot logs.

  You can use the above SOL keyword to collect the data for Host boot logs
  You can as well use IPMI SOL capabilities

https://github.com/openbmc/openbmc-test-automation/blob/master/lib/ipmi_client.robot#L188

https://github.com/openbmc/openbmc-test-automation/blob/master/lib/ipmi_client.robot#L204

  FFDC collects those data as well :
https://github.com/openbmc/openbmc-test-automation/blob/master/lib/openbmc_ffdc.robot#L39





Thanks and Regards,
   George Keishing





From:	Jayashree D <jayashree-d at hcl.com>
To:	"openbmc at lists.ozlabs.org" <openbmc at lists.ozlabs.org>
Date:	06-08-2020 04:08 PM
Subject:	[EXTERNAL] Host related testcases in openbmc-test-automation
Sent by:	"openbmc" <openbmc-bounces
            +gkeishin=in.ibm.com at lists.ozlabs.org>



Hi All,

I need to test the below features in openbmc-test-automation.
Is there any related testcases to verify those features?

1. OBMC-CONSOLE - To connect the host via BMC, we are using
obmc-console-client to login the host and check the host conections.
   (https://github.com/openbmc/obmc-console)

2. HOST LOGGER - To handle and store host's console output data, such as
boot logs.
   (https://github.com/openbmc/phosphor-hostlogger)


Regards,
Jayashree



::DISCLAIMER::
The contents of this e-mail and any attachment(s) are confidential and
intended for the named recipient(s) only. E-mail transmission is not
guaranteed to be secure or error-free as information could be intercepted,
corrupted, lost, destroyed, arrive late or incomplete, or may contain
viruses in transmission. The e mail and its contents (with or without
referred errors) shall therefore not attach any liability on the originator
or HCL or its affiliates. Views or opinions, if any, presented in this
email are solely those of the author and may not necessarily reflect the
views or opinions of HCL or its affiliates. Any form of reproduction,
dissemination, copying, disclosure, modification, distribution and / or
publication of this message without the prior written consent of authorized
representative of HCL is strictly prohibited. If you have received this
email in error please delete it and notify the sender immediately. Before
opening any email and/or attachments, please check them for viruses and
other defects.






-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20200806/3120f086/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: graycol.gif
Type: image/gif
Size: 105 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20200806/3120f086/attachment-0001.gif>


More information about the openbmc mailing list