
Implements BiosKeywords class to provide BIOS management capabilities for StarlingX test automation. The keywords support connecting to server BMCs using the Redfish API standard for hardware management. Key features: - Automatic system discovery and connection via BMC IP - Boot order configuration with override settings - System information retrieval (vendor, model, system ID) - Support for common boot devices (PXE, HDD, CD, USB, BIOS setup) The implementation uses the python-redfish library to communicate with BMC endpoints. Usage: lab_config = ConfigurationManager.get_lab_config() bm_password = lab_config.get_bm_password() node = lab_config.get_node(host_name) bm_ip = node.get_bm_ip() bm_username = node.get_bm_username() bios_keywords = BiosKeywords(bmc_ip=bm_ip, username=bm_username, password=bm_password) print(bios_keywords.get_boot_order()) bios_keywords.set_boot_order() print(bios_keywords.get_boot_order()) Test Plan: - Manual testing with Dell PowerEdge servers - Verified boot order changes via BMC interface - Tested system discovery and connection establishment Change-Id: I6efc4eec136f67730d14b225fe7a78b318c12eb8 Signed-off-by: Abhishek jaiswal <abhishek.jaiswal@windriver.com>
37 lines
837 B
TOML
37 lines
837 B
TOML
[[source]]
|
|
name = "pypi"
|
|
url = "https://pypi.org/simple"
|
|
verify_ssl = true
|
|
|
|
[requires]
|
|
python_version = "3.11"
|
|
|
|
[packages]
|
|
# Linting and Static Analysis
|
|
pre-commit = "==3.7.0"
|
|
black = "==24.3.0"
|
|
isort = "==5.13.2"
|
|
flake8 = "==7.0.0"
|
|
|
|
# Docstring Compliance and Enforcement
|
|
pydocstyle = "==6.3.0" # Enforce PEP 257 and Google-style docstrings
|
|
pydoclint = "==0.4.1" # Validate function signatures match docstrings (Google-style)
|
|
interrogate = "==1.5.0" # Ensure all functions and classes have docstrings
|
|
|
|
# Tools Packages
|
|
pytest = "==8.1.1"
|
|
paramiko = "==3.4.0"
|
|
json5 = "==0.9.24"
|
|
selenium = "==4.20.0"
|
|
django = "==5.0.6"
|
|
psycopg2-binary = "==2.9.9"
|
|
jinja2 = "*"
|
|
requests = "*"
|
|
|
|
# Documentation Tools
|
|
sphinx = "==8.1.3"
|
|
sphinx-autobuild = "==2024.2.4"
|
|
openstackdocstheme = "==3.4.1"
|
|
reno = "==4.1.0"
|
|
python-redfish = "==0.4.4"
|