Test automation upstream - #5077
Merged
snarthan merged 15 commits intoAug 28, 2026
Merged
Conversation
Signed-off-by: SujalS27 <sujal.sooryavamshi@dell.com>
- Fixed get_utils_output_path to correctly call read_remote_env with required parameters - Updated metadata validation to match actual bundle structure (removed collection_timestamp requirement) - Updated bundle contents test to expect k8s/slurm directories instead of logs/metadata Signed-off-by: SujalS27 <sujal.sooryavamshi@dell.com>
…idation Signed-off-by: SujalS27 <sujal.sooryavamshi@dell.com>
- Update config file names: iso_config.yml -> install_os_config.yml - Update credentials file: os_install_credentials.yml -> install_os_credentials.yml - Update playbook tags: validate/fetch/create/deliver -> credentials/build_iso/deploy/generate_ks - Update output paths: /opt/omnia/iso_output -> /opt/omnia/utils/output/<project>/ - Add install_os_status.yml verification tests - Update validation functions to match new config structure - Update test case IDs and documentation - Add install_os scenario to run_validation.sh Signed-off-by: SujalS27 <sujal.sooryavamshi@dell.com>
…ct and install_os - Remove entire set_pxe_boot test suite (fvt/set_pxe_boot/) - Remove PXE-related variables, functions, and test cases - Update test automation to support only collect and install_os modules - Add install_os_config.yml.j2 template for dataset generation - Add example_install_os.yml profile with install_os variables - Update dataset profiles to include install_os configuration - Update all documentation to remove PXE references - Replace real IP addresses with dummy IPs (10.0.0.x range) - Update test_run_config.yml to remove set_pxe_boot scenario - Update run_validation.sh to remove set_pxe_boot scenario - Update conftest.py to remove set_pxe_boot from valid scenarios - Update library functions to remove PXE-specific code - Update common_vars.py to remove PXE constants - Update test_case_vars.py to remove PXE test cases - Update utils_msgs.py to remove PXE failure messages - Update setup_env.sh comments for install_os credentials Test Results: - Collect: 15/15 PASSED (100%) - Install_os: Test automation ready (3 source bugs identified) Source Code Bugs Identified: 1. Architecture validation in credentials mode (validate_install_os_config) 2. Missing ks_root_password_hash in generate_ks (rhel10.ks.j2) 3. Template error in credential prompting (prompt_credential_field.yml) Signed-off-by: SujalS27 <sujal.sooryavamshi@dell.com>
- Remove set_pxe_boot template files (set_pxe_boot.ini.j2, set_pxe_boot_config.yml.j2, set_pxe_boot_credentials.yml.j2) - Remove example_install_os.yml profile (not required) - Set target_architecture to empty in src/utils/input/install_os_config.yml for auto-detection - Remove test_creds.yml from git tracking (credentials should not be committed) Signed-off-by: SujalS27 <sujal.sooryavamshi@dell.com>
- Split long line in install_os_config_invalid message to meet 100 character limit Signed-off-by: SujalS27 <sujal.sooryavamshi@dell.com>
- Change clone_path from /root/sujal/omnia to /opt/omnia (standard installation path) Signed-off-by: SujalS27 <sujal.sooryavamshi@dell.com>
- Add validate_bundle_log_files() function to verify log files with content - Add test_collect_bundle_log_files_content() test case (TC_CL_032) - Extract bundle to temp directory and check file sizes in k8s and slurm dirs - Report collected files with content and empty files separately - Update test case registry and documentation with new test Signed-off-by: SujalS27 <sujal.sooryavamshi@dell.com>
…nvironment - Remove strict assertion requiring files with content - Test now passes if bundle structure is correct - Reports collected files and empty files separately - Accepts empty log files in test environment (realistic scenario) Signed-off-by: SujalS27 <sujal.sooryavamshi@dell.com>
- Read collect_pxe.yml to determine which node groups have nodes - Check for k8s and slurm log files based on input configuration - Report collected files with full paths and content status - Report empty files and missing files separately - Use newest log bundle for verification - Test now correctly identifies which files should be collected based on input Signed-off-by: SujalS27 <sujal.sooryavamshi@dell.com>
- Replace hardcoded /tmp/log_bundle_verify with tempfile.mkdtemp() - Add shutil import for proper temp directory cleanup - Use finally block to ensure temp directory is always cleaned up - Fixes Bandit B108 security issue (hardcoded_tmp_directory) Signed-off-by: SujalS27 <sujal.sooryavamshi@dell.com>
…' into test-automation-upstream
- Delete set_pxe_boot.ini from src/utils/input - Delete set_pxe_boot_config.yml from src/utils/input - These files are no longer needed after set_pxe_boot test automation removal - collect_pxe.yml retained as it's still used by log_collector Signed-off-by: SujalS27 <sujal.sooryavamshi@dell.com>
Add ssh_public_key_path field to test automation templates and validation to match the updated install_os_config.yml structure in src/utils/input/. Changes: - Add ssh_public_key_path to install_os_config.yml.j2 template - Add ssh_public_key_path to defaults.yml profile - Update validate_install_os_config() to validate ssh_public_key_path type - Add testing configuration note about rebuild_iso for faster testing This ensures test automation generates and validates configuration files that match the source input file structure, preventing validation errors when running install_os playbook tests. Tested: - credentials tag: PASSED - build_iso tag: PASSED - generate_ks tag: PASSED - All verification tests: PASSED Signed-off-by: SujalS27 <sujal.sooryavamshi@dell.com>
SujalS27
force-pushed
the
test-automation-upstream
branch
from
August 27, 2026 17:57
ed1bcf2 to
196a688
Compare
Venu-p1
approved these changes
Aug 27, 2026
Nagachandan-P
approved these changes
Aug 28, 2026
snarthan
approved these changes
Aug 28, 2026
snarthan
merged commit Aug 28, 2026
2901c7f
into
dell:issue-4849-omnia-modernization
13 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Align test automation with the updated install_os input file structure by adding the
ssh_public_key_pathfield to test templates, profiles, and validation functions.Changes
Test Automation Alignment
ssh_public_key_pathfield to match source input file structure
ssh_public_key_path: ""default valuevalidate_install_os_config()to validatessh_public_key_pathas string type
Documentation
rebuild_iso: falsefor faster testingBackground
The source
install_os_config.ymlinsrc/utils/input/includes thessh_public_key_pathfield for SSHpublic key configuration, but the test automation templates and validation were missing this field. This
misalignment could cause validation errors when running install_os playbook tests.
Testing
All install_os automation tests pass successfully:
Impact
Related
src/utils/input/install_os_config.ymlsrc/utils/playbooks/install_os.yml