Test Design of rbeacon python version - xcat2/xcat-core GitHub Wiki
This document provides an overview of test of command rbeacon that is conducted on the IBM Witherspoon Physical Machine. This test plan is intended for the use of xCAT FVT team.
The test is against xCAT version 2.13.11. The build of xCAT will be picked up from the xcat.org
Operating System :Red Hat Enterprise Linux Server release 7.4
xCAT 2.13.11
MN: any machines with latest xcat installed
CN: Witherspoon node (p9)
-
new OpenBMC python version rpm installation steps:
- Use yum install gcc and python-devel.ppc64le:
yum install -y gcc python-devel.ppc64le
- Install pip refer to https://pip.pypa.io/en/stable/installing/. Use pip to install gevent, greenlet, certifi, chardet, idna, urllib3, requests:
pip install gevent greenlet certifi chardet idna urllib3 requests
- Download and install xCAT-openbmc-py-2.13.10-snap201801250418.noarch.rpm:
wget http://xcat.org/files/xcat/xcat-dep/2.x_Linux/beta/xCAT-openbmc-py-2.13.10-snap201801250418.noarch.rpm yum localinstall -y xCAT-openbmc-py-2.13.10-snap201801250418.noarch.rpm
- enable OpenBMC python version:
export XCAT_OPENBMC_PYTHON=YES
- Use yum install gcc and python-devel.ppc64le:
The test cases are given according to the rbeacon' help information for machines managed by openbmc.
Usage: rbeacon [on|off|stat] [-V|--verbose] rbeacon [-h|--help|-v|--version]
Check if rbeacon -h or --help could display help information for openbmc.
- Run rbeacon -h or rbeacon --help
- Expected output should be help information.
Check if rbeacon -v or --version could display version information for openbmc.
- Run rbeacon -v or rbeacon --version
- Expected output should be version information.
Check if rbeacon noderange stat could gives status of a node or noderange.
- Define node. The node's definition should have bmc's ip. BMC should work correctly.
- Run rbeacon nodegrange stat.
- Expected output should be the node's status of a light on the front of the it.
Check if rbeacon noderange on could turn on the light of a node or noderange.
- Define node. The node's definition should have bmc's ip. BMC should work correctly.
- Run rbeacon nodegrange on.
- Expected output should turn on the light on the front of the it.
Check if rbeacon noderange off could turn off the light of a node or noderange.
- Define node. The node's definition should have bmc's ip. BMC should work correctly.
- Run rbeacon nodegrange off.
- Expected output should turn off the light on the front of the it.
Check if rbeacon noderange blink could turn blink the light of a node or noderange.
- Define node. The node's definition should have bmc's ip. BMC should work correctly.
- Run rbeacon nodegrange blink.
- Expected output should turn blink of the light on the front of the it.
Check if rbeacon noderange false_value could give warning message.
- Define node. The node's definition should have bmc's ip. BMC should work correctly.
- Run rbeacon nodegrange false_value.
- Expected output should give warning message.