History log of /openbmc/openbmc-test-automation/lib/resource.robot (Results 1 – 25 of 45)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# c32434a3 11-Jan-2024 Yi Hu <yih@supermicro.com>

Set system, chassis, and bmc as global variables

Changes:
- Add SYSTEM_ID as a global variable and set to default value system
- Replace redfish/v1/Systems/system to redfish/v1/Systems/SYSTEM_ID

Set system, chassis, and bmc as global variables

Changes:
- Add SYSTEM_ID as a global variable and set to default value system
- Replace redfish/v1/Systems/system to redfish/v1/Systems/SYSTEM_ID
- Replace redfish/v1/Chassis/chassis to redfish/v1/Chassis/CHASSIS_ID
- Replace redfish/v1/Managers/bmc to redfish/v1/Managers/MANAGER_ID

Tested:
- Tested on sandbox with the changes with sample test run with
sample test ID runs
1. without SYSTEM_ID provided
2. with -v SYSTEM_ID:system1
3. with export SYSTEM_ID=""
3. with export SYSTEM_ID="system2"

Change-Id: Ifc412b20038cef1eba632caaa6c300be328259bd
Signed-off-by: Wilson Suen <wilsons@supermicro.com>
Signed-off-by: George Keishing <gkeishin@in.ibm.com>

show more ...


# ad920244 14-Dec-2023 George Keishing <gkeishin@in.ibm.com>

Default redfish support set to enable

Changes:
- Set the redfish support to 1 by default.

Tested:
- Ran from sandbox.

Change-Id: I2807823015fd53b4a50eebb3c8f95ae615eb6098
Signed-off-by: Ge

Default redfish support set to enable

Changes:
- Set the redfish support to 1 by default.

Tested:
- Ran from sandbox.

Change-Id: I2807823015fd53b4a50eebb3c8f95ae615eb6098
Signed-off-by: George Keishing <gkeishin@in.ibm.com>

show more ...


Revision tags: v4.0-stable
# 283ae8a1 05-Dec-2023 George Keishing <gkeishin@in.ibm.com>

Remove unused user credentials and variables

Changes:
- Remove variable from resource file.

Tested:
- NA

Change-Id: I3f3d54fd09e6dd60729c36a07ead2666fe1fd27b
Signed-off-by: George Keishing <

Remove unused user credentials and variables

Changes:
- Remove variable from resource file.

Tested:
- NA

Change-Id: I3f3d54fd09e6dd60729c36a07ead2666fe1fd27b
Signed-off-by: George Keishing <gkeishin@in.ibm.com>

show more ...


# f00dde05 27-Nov-2023 George Keishing <gkeishin@in.ibm.com>

Update IPMI password string with BMC

Changes:
- By default assign BMC password. User can key in the
IPMI password via -v option from CLI parameter to
override it.

Tested:
- Ran from

Update IPMI password string with BMC

Changes:
- By default assign BMC password. User can key in the
IPMI password via -v option from CLI parameter to
override it.

Tested:
- Ran from sandbox

Change-Id: I1e9c6d61a678192a09e50cf8f66af61b04d84a96
Signed-off-by: George Keishing <gkeishin@in.ibm.com>

show more ...


# fbb92277 20-Nov-2023 George Keishing <gkeishin@in.ibm.com>

Remove default password hardcoding from test

Changes:
- Removed root default password from resource
file.
- QEMU test CI script changes for reference
https://gerrit.openbmc.o

Remove default password hardcoding from test

Changes:
- Removed root default password from resource
file.
- QEMU test CI script changes for reference
https://gerrit.openbmc.org/c/openbmc/openbmc-build-scripts/+/67756

Tested:
- Ran from sandbox with parameterize password input

Change-Id: I98d0fabbdf3a27a0b0298cf307ddf1f3fc0dea51
Signed-off-by: George Keishing <gkeishin@in.ibm.com>

show more ...


# 5beee8a0 08-Nov-2023 manimozhik <manimozhik@ami.com>

NETWORK: Executed nping command with root privilege test_network_nping.robot

Changes:
    - In test_network_nping.robot added "echo ${root_password} | sudo -S" to the nping command and added ${CLIEN

NETWORK: Executed nping command with root privilege test_network_nping.robot

Changes:
    - In test_network_nping.robot added "echo ${root_password} | sudo -S" to the nping command and added ${CLIENT_PASSWORD} in resource.robot
Tested:
    - Ran network/test_network_nping.robot script Successfully

Change-Id: Ie7494e63eddaa31b76872067b657ed3c7385a64b
Signed-off-by: manimozhik <manimozhik@ami.com>

show more ...


# 7981f432 15-Nov-2023 George Keishing <gkeishin@in.ibm.com>

Consolidate username and password in test

Changes:
- Remove REST_USERNAME and REST_PASSWORD. Legacy username
and password, default user OPENBMC_USERNAME and
OPENBMC_PASSWORD.

Tested

Consolidate username and password in test

Changes:
- Remove REST_USERNAME and REST_PASSWORD. Legacy username
and password, default user OPENBMC_USERNAME and
OPENBMC_PASSWORD.

Tested:
- Boot test and sanity runs from sandbox

Change-Id: I86955d512530889c1a875b5efcc71f9df99432d9
Signed-off-by: George Keishing <gkeishin@in.ibm.com>

show more ...


# 294c2679 16-Nov-2023 George Keishing <gkeishin@in.ibm.com>

Clean up default password from resource file

Changes:
- Set the admin and service password to empty string

Tested:
- Ran from Sandbox with the CLI inputs.

Change-Id: I775794dc7d00b047c5d

Clean up default password from resource file

Changes:
- Set the admin and service password to empty string

Tested:
- Ran from Sandbox with the CLI inputs.

Change-Id: I775794dc7d00b047c5df28cde3c72f9090ebf0a8
Signed-off-by: George Keishing <gkeishin@in.ibm.com>

show more ...


# 01f95fc3 01-Nov-2023 kothais <kothais@ami.com>

REDFISH: Script fix needed for to remove hard-coded channel number from test_multiple_interfaces.robot

Changes:
- Fix to remove hard-coded channel number

Tested:
- Ran redfish/managers/test_multipl

REDFISH: Script fix needed for to remove hard-coded channel number from test_multiple_interfaces.robot

Changes:
- Fix to remove hard-coded channel number

Tested:
- Ran redfish/managers/test_multiple_interfaces.robot

Change-Id: I3c33f667d08e50d6faef0fabe2c392c794896de5
Signed-off-by: KothaiSrini <kothais@ami.com>

show more ...


# 903ebe93 07-Sep-2023 Megha G N <Megha.G.N@ibm.com>

Automation fix for Security menu

Changes:
- Modified "Establish TCP Connections And Get Connection Failures" keyword
- Added variable cmd_prefix in lib/protocol_setting_utils.robot

Tested:

Automation fix for Security menu

Changes:
- Modified "Establish TCP Connections And Get Connection Failures" keyword
- Added variable cmd_prefix in lib/protocol_setting_utils.robot

Tested:
- Ran successfully test_bmc_network_security.robot

Change-Id: I9a0d30c24d17c8f7d491bebd7c4376ae95d25209
Signed-off-by: Megha G N <Megha.G.N@ibm.com>

show more ...


# e4f518d6 24-Jul-2023 Nagarjun B <nagarjunb@ami.com>

Moved a variable to resource file

From redfish/task_service/test_tasks.robot file moved
${TASK_JSON_FILE_PATH} to lib/resource.robot and given a default value

we can mention the relative path if we

Moved a variable to resource file

From redfish/task_service/test_tasks.robot file moved
${TASK_JSON_FILE_PATH} to lib/resource.robot and given a default value

we can mention the relative path if we triggering the script from
different directory other than openbmc-test-automation folder.
e.g.
robot -v TASK_JSON_FILE_PATH:openbmc-test-automation/data/task_state.json

by default variable ${TASK_JSON_FILE_PATH} will be data/task_state.json

Tested:
Ran robot redfish/task_service/test_tasks.robot

Change-Id: I52922e315a3f042db0992d44b1f75cb93b253166
Signed-off-by: Nagarjun B <nagarjunb@ami.com>

show more ...


# 4d430283 27-Apr-2023 ganesanb <ganesanb@ami.com>

Managers ID : Introduced variable to declare Managers ID in resource.robot and updated all the scripts in openbmc-test-automation

Changes:
- Introduced ${MANAGER_ID} variable in resource.robot

Managers ID : Introduced variable to declare Managers ID in resource.robot and updated all the scripts in openbmc-test-automation

Changes:
- Introduced ${MANAGER_ID} variable in resource.robot
- Replaced all the Managers/bmc to Managers/${MANAGER_ID} across all the scripts
- Also in data/variables.py updated chassis id for the few redfish uri.

Tested:
- Ran All The Scripts Successfully

Change-Id: Iff3673aae27657e0799dec5cb94c1651a0cd5d18
Signed-off-by: ganesanb <ganesanb@ami.com>
Signed-off-by: George Keishing <gkeishin@in.ibm.com>

show more ...


# a8aee234 08-Apr-2023 ganesanb <ganesanb@ami.com>

Add SEL Entry: Modified add sel entry command

Changes:
- Generator ID in add sel entry command was given as 0x00 0x00.
- Introduced generator id variable in lib/resource.robot and the variab

Add SEL Entry: Modified add sel entry command

Changes:
- Generator ID in add sel entry command was given as 0x00 0x00.
- Introduced generator id variable in lib/resource.robot and the variable is called in
add sel entry command.
- Modified data/ipmi_raw_cmd_table.py file as per generator id.

Tested:
- Ran All The Scripts Successfully

Change-Id: I4503ca2667921c0681e1050c56fc32e173eacb03
Signed-off-by: ganesanb <ganesanb@ami.com>

show more ...


# 3937eaa9 15-Apr-2023 ganesanb <ganesanb@ami.com>

Redfish NTP: Handled code to add ntp address and enable ntp if bmc time was 1970

Changes:
- In suite setup, add code to handle if bmc date was in 1970 ntp will be enabled
and ntp address w

Redfish NTP: Handled code to add ntp address and enable ntp if bmc time was 1970

Changes:
- In suite setup, add code to handle if bmc date was in 1970 ntp will be enabled
and ntp address will be added.
- If bmc date was not in 1970, it will continue for test execution.
- Added ${NTP_ADDRESSES} variable in lib/resource.robot to get ntp addresses as an list.

Tested:
- Ran All The Scripts Successfully

Change-Id: Ifcfdc9bf87c46150a628a537fee05de083200c6e
Signed-off-by: ganesanb <ganesanb@ami.com>

show more ...


# 18f69a64 24-Apr-2023 Anusha Dathatri <adathatr@in.ibm.com>

Created a variable for default admin user

Changes:
- Added variable OPENBMC_ADMIN_USERNAME with value admin to lib/resource.robot

Tested: - NA
Change-Id: I48d3d5d6a2db7ec819ffd4ecfb79fe8a9a218d33

Created a variable for default admin user

Changes:
- Added variable OPENBMC_ADMIN_USERNAME with value admin to lib/resource.robot

Tested: - NA
Change-Id: I48d3d5d6a2db7ec819ffd4ecfb79fe8a9a218d33
Signed-off-by: Anusha Dathatri <adathatr@in.ibm.com>

show more ...


# 25163b83 24-Feb-2023 Priya Sinha <Priya.Sinha2@ibm.com>

Add Network Security Test Cases

Changes:
- Added 2 test cases.
- Send_Continuous_TCP_Connection_Requests_To_IPMI_Interface_And_Check_Stability
- Send_Continuous_TCP_Connection_Requests_T

Add Network Security Test Cases

Changes:
- Added 2 test cases.
- Send_Continuous_TCP_Connection_Requests_To_IPMI_Interface_And_Check_Stability
- Send_Continuous_TCP_Connection_Requests_To_Redfish_Interface_And_Check_Stability

Tested: - Tested on sandbox.
Change-Id: Ia32924061bad79b511419fb6c38fe875671bdaf0
Signed-off-by: Priya Sinha <Priya.Sinha2@ibm.com>

show more ...


# 334438b3 21-Sep-2022 srichn28 <srichn28@in.ibm.com>

Fixes for Test Baseboard Temperature Via IPMI

Changes:
- URI change to get sensor temperature readings from Redfish.
- Get all the Baseboard temperature sensors from the IPMI result.
- A

Fixes for Test Baseboard Temperature Via IPMI

Changes:
- URI change to get sensor temperature readings from Redfish.
- Get all the Baseboard temperature sensors from the IPMI result.
- Added Thermal Metrics Variable in resource file.

Tested:
Ran test case successfully from sandbox.

Change-Id: I84bd19d569cd7f90b52e8bc625e8b3f2ad75be97
Signed-off-by: srichn28 <srichn28@in.ibm.com>

show more ...


# f196b244 09-Sep-2022 Jorge Cisneros <jcisneros3@lenovo.com>

New variable to test SOL over ssh using port 22

-This added a new variable OPENBMC_CONSOLE_CLIENT that is empty
by default
-The new variable allows the SOL tests to be executed using the
por

New variable to test SOL over ssh using port 22

-This added a new variable OPENBMC_CONSOLE_CLIENT that is empty
by default
-The new variable allows the SOL tests to be executed using the
port 22 instead of port 2200, to do this is necessary execute the
obmc-console-client instead of shell.
-Also using a variable is possible to execute another console
client in the future
-Strip returning string cmd to removed the space that I added at
the end

Test:

Run the SOL test setting:

HOST_SOL_PORT=22 and
OPENBMC_CONSOLE_CLIENT="obmc-console-client"

Signed-off-by: Jorge Cisneros <jcisneros3@lenovo.com>
Change-Id: I13f97750d1d8ec7e00e77983ce728997e916b89b

show more ...


Revision tags: robotframework-requests
# fbd67007 01-Aug-2022 George Keishing <gkeishin@in.ibm.com>

Robotframework request package upgrade changes

Current working package version
robotframework-requests 0.7.2

To Test:
pip3 install robotframework-requests -U
or

Robotframework request package upgrade changes

Current working package version
robotframework-requests 0.7.2

To Test:
pip3 install robotframework-requests -U
or
# Once this commit is merged.
pip3 install -r requirements.txt

Version latest:
robotframework-requests 0.9.3

Refer Documentation:
https://marketsquare.github.io/robotframework-requests/doc/RequestsLibrary.html

What is not changed:
- The test cases under directory tests/ is not modified and is
deprecated but you can continue using it with older package
and configuration using

git clone -b v3.0-stable https://github.com/openbmc/openbmc-test-automation

Tested:
Upstream HW_CI test list, firmware code update and few other
test suite like ipmi, certificate, dumps, ffdc and redfish
test suites.

Note: I have not tested end to end, so it is likely there could be
grey areas where it could fail but should be minor w.r.t
response data format.

Resolves: openbmc/openbmc-test-automation#2105

Change-Id: Ie03b25ff88948bcccb09e9d82f8da86e28c92697
Signed-off-by: George Keishing <gkeishin@in.ibm.com>

show more ...


# 0f0bd53e 05-Apr-2022 chithrag <chithrag@ami.com>

Modification of SOL activate Console output

Testcase Modified:
- Verify_SOL_During_Boot

Added two variable names ${SOL_BIOS_OUTPUT} for BIOS screen content output and ${SOL_LOGIN_OUTPUT} for Logi

Modification of SOL activate Console output

Testcase Modified:
- Verify_SOL_During_Boot

Added two variable names ${SOL_BIOS_OUTPUT} for BIOS screen content output and ${SOL_LOGIN_OUTPUT} for Login prompt content output.

The variables are defined under lib/resource.robot

Added time to Check IPMI SOL Output Content, i.e, 10 mins for BIOS content and 15 mins for Login prompt content.

Added IPMI Power ON at Test Teardown for making chassis Power on.

Tested: Run robot ipmi/test_ipmi_sol.robot

Signed-off-by: chithrag <chithrag@ami.com>
Change-Id: I4f0e86d858775111a8e297f834a80b99f00f828a

show more ...


# 1b821610 06-Dec-2021 Nagarjun B <nagarjunb@ami.com>

Modified Testcases for NoAccess Userrole, Power operation and Added Global Variables

Changes made to verify Redfish login would not
succeed for LDAP user with "NoAccess" user role.

Added Host power

Modified Testcases for NoAccess Userrole, Power operation and Added Global Variables

Changes made to verify Redfish login would not
succeed for LDAP user with "NoAccess" user role.

Added Host power On/Off operation for in below testcases.
Update LDAP User Role And Host Poweron
Update LDAP User Role And Host Poweroff
Above testcase will check power operation for each ldap userrole,
After verifying the power operation, adding power on/off to get
back the host state as so, next userrole will verify the host power on/off.

Added LDAP global variables like ldap server uri,group privilege,
group name which are used to create ldap user, in resource.robot file.

Modified Administrator as default value for old_ldap_privilege in script file.

Tested Run robot redfish/account_service/test_ldap_configuration.robot

Signed-off-by: Nagarjun B <nagarjunb@ami.com>
Change-Id: I2544da73cd190859315b74b06688ce193e061fdd

show more ...


# de7e045d 01-Feb-2022 George Keishing <gkeishin@in.ibm.com>

Fix typo in test code documentation

Change-Id: I8336f7e8d44dad20a2c5fa61c7fdb9ea4de942ab
Signed-off-by: George Keishing <gkeishin@in.ibm.com>


# dad7d384 01-Feb-2022 George Keishing <gkeishin@in.ibm.com>

Add IPMI_USERNAME default user name

Change-Id: Icc1495ac4b8b2ccd872c5317eef0dd9d466eb3ec
Signed-off-by: George Keishing <gkeishin@in.ibm.com>


# 2104d5f9 31-Jan-2022 George Keishing <gkeishin@in.ibm.com>

Add support to run as sudo user on BMC

Change-Id: I81ee5536fc1b59e70a8e7f5987babdfe412b445a
Signed-off-by: George Keishing <gkeishin@in.ibm.com>


# 5e56f52b 20-Dec-2021 Peter D Phan <peterp@us.ibm.com>

ffdc: Integrate ffdc script into robot framework flow.

This commit provides interface to enable automation tests (robot/jenkins)
to activate the new cli ffdc collector.

- Patchset 1: Initial commit

ffdc: Integrate ffdc script into robot framework flow.

This commit provides interface to enable automation tests (robot/jenkins)
to activate the new cli ffdc collector.

- Patchset 1: Initial commit for review.
- Patchset 2: Redesing and fixing issues
- Patchset 3: Fix build issue (pycodestyle)
- Patchset 4: Default ffdc store location running direct CLI
- Patchset 5: Addressing review comments and questions
- Patchset 6: Restore direct CLI default location to /tmp
- Patchset 7: Addressing issues from comments
Also extend socket timeout for long-running command peltool -a
- Patchset 8: Use Builtin().log_to_console("") method in the bridge code
- Patchset 9: Rebase

Tests:
- Standalone script: python3 ./ffdc/collect_ffdc.py
- Within robot env: python3 -m robot .... -v FFDC_DEFAULT:0 ./tools/myffdc.robot

Signed-off-by: Peter D Phan <peterp@us.ibm.com>
Change-Id: Ic892c48efe7dbdb3a4345ba89c3a0257f03a7ffb

show more ...


12