Skip to content

Add LVM test cases - #2814

Draft
Vicente-Cheng wants to merge 2 commits into
harvester:mainfrom
Vicente-Cheng:wip-lvm-tests-refactor
Draft

Add LVM test cases#2814
Vicente-Cheng wants to merge 2 commits into
harvester:mainfrom
Vicente-Cheng:wip-lvm-tests-refactor

Conversation

@Vicente-Cheng

Copy link
Copy Markdown
Contributor

Which issue(s) this PR fixes:

Issue #

What this PR does / why we need it:

Add LVM test case to robot tests

Special notes for your reviewer:

Additional documentation or context

It's based on the PR #2678 (test cases part)

Here is the result:

Running tests with image harvester-robot-tests:6230c6ee
+ docker run -it --rm --user 0:0 -e KUBECONFIG=/kubeconfig -v /tmp/tmp.s0Nw1IDQoD:/harvester-robot-tests/.env:ro -v /root/harvester-dev/kubeconfig:/kubeconfig:ro -v ./reports:/test-output:rw harvester-robot-te
sts:6230c6ee -W -d /test-output -p 3 -f tests/regression/addon/lvm
Loading .env file...
Environment variables loaded from .env
======================================
Harvester Robot Framework Test Runner
======================================
Output: /test-output
Log level: DEBUG
======================================

Running tests...
Initialized logging in /test-output/pabot_results
/usr/lib64/python3.10/runpy.py:126: RuntimeWarning: 'pabot.pabotlib' found in sys.modules after import of package 'pabot', but prior to execution of 'pabot.pabotlib'; this may result in unpredictable behaviour
Storing .pabotsuitenames file
2026-08-09 19:07:49.936448 [PID:20] [0] [ID:0] EXECUTING Lvm.Test Lvm Addon
  warn(RuntimeWarning(msg))
Robot Framework remote server at 127.0.0.1:8270 started.
2026-08-09 19:07:54.943769 [PID:20] [0] [ID:0] still running Lvm.Test Lvm Addon after 5.0s
2026-08-09 19:08:04.959868 [PID:20] [0] [ID:0] still running Lvm.Test Lvm Addon after 15.0s
2026-08-09 19:08:12.984522 [PID:20] [0] [ID:0] PASSED Lvm.Test Lvm Addon in 23.0 seconds
2026-08-09 19:08:13.052144 [PID:66] [0] [ID:1] EXECUTING Lvm.Test Lvm Attach
2026-08-09 19:08:13.057061 [PID:67] [2] [ID:3] EXECUTING Lvm.Test Lvm Expansion
2026-08-09 19:08:13.059730 [PID:71] [1] [ID:2] EXECUTING Lvm.Test Lvm Snapshot
2026-08-09 19:08:18.061481 [PID:66] [0] [ID:1] still running Lvm.Test Lvm Attach after 5.0s
2026-08-09 19:08:18.065626 [PID:67] [2] [ID:3] still running Lvm.Test Lvm Expansion after 5.0s
2026-08-09 19:08:18.067780 [PID:71] [1] [ID:2] still running Lvm.Test Lvm Snapshot after 5.0s
2026-08-09 19:08:28.082246 [PID:66] [0] [ID:1] still running Lvm.Test Lvm Attach after 15.0s
2026-08-09 19:08:28.084118 [PID:67] [2] [ID:3] still running Lvm.Test Lvm Expansion after 15.0s
2026-08-09 19:08:28.085012 [PID:71] [1] [ID:2] still running Lvm.Test Lvm Snapshot after 15.0s
2026-08-09 19:08:43.109176 [PID:67] [2] [ID:3] still running Lvm.Test Lvm Expansion after 30.0s
2026-08-09 19:08:43.110472 [PID:71] [1] [ID:2] still running Lvm.Test Lvm Snapshot after 30.0s
2026-08-09 19:08:43.112858 [PID:66] [0] [ID:1] still running Lvm.Test Lvm Attach after 30.0s
2026-08-09 19:09:03.136559 [PID:67] [2] [ID:3] still running Lvm.Test Lvm Expansion after 50.0s
2026-08-09 19:09:03.136634 [PID:71] [1] [ID:2] still running Lvm.Test Lvm Snapshot after 50.0s
2026-08-09 19:09:03.138360 [PID:66] [0] [ID:1] still running Lvm.Test Lvm Attach after 50.0s
2026-08-09 19:09:11.751117 [PID:67] [2] [ID:3] PASSED Lvm.Test Lvm Expansion in 58.7 seconds
2026-08-09 19:09:26.479630 [PID:66] [0] [ID:1] PASSED Lvm.Test Lvm Attach in 73.4 seconds
2026-08-09 19:09:28.173974 [PID:71] [1] [ID:2] still running Lvm.Test Lvm Snapshot after 75.0s
2026-08-09 19:09:41.808249 [PID:71] [1] [ID:2] PASSED Lvm.Test Lvm Snapshot in 88.7 seconds
2026-08-09 19:09:41.851369 [PID:84] [0] [ID:4] EXECUTING Lvm.Test Zz Lvm Cleanup
2026-08-09 19:09:46.861982 [PID:84] [0] [ID:4] still running Lvm.Test Zz Lvm Cleanup after 5.0s
2026-08-09 19:09:48.770416 [PID:84] [0] [ID:4] PASSED Lvm.Test Zz Lvm Cleanup in 6.9 seconds
5 tests, 5 passed, 0 failed, 0 skipped.
===================================================
Output:  /test-output/output-20260809-190948.xml
Log:     /test-output/log-20260809-190948.html
Report:  /test-output/report-20260809-190948.html
Finalizing Pabot execution...
Stopping PabotLib process
Robot Framework remote server at 127.0.0.1:8270 stopped.
PabotLib process stopped
Total testing: 4 minutes 10.70 seconds
Elapsed time:  1 minute 59.26 seconds
Logs flushed successfully.

======================================
Test Execution Completed
======================================
Exit code: 0
Reports:
  - HTML Report: /test-output/report.html
  - HTML Log: /test-output/log.html
  - XML Output: /test-output/output.xml

✓ All tests passed

Vicente-Cheng and others added 2 commits August 10, 2026 01:40
Co-authored-by: Khushboo <fnu.khushboo@suse.com>
Signed-off-by: Vicente Cheng <vicente.cheng@suse.com>
Co-authored-by: Khushboo <fnu.khushboo@suse.com>
Signed-off-by: Vicente Cheng <vicente.cheng@suse.com>
@Vicente-Cheng Vicente-Cheng changed the title Wip lvm tests refactor Add LVM test cases Aug 10, 2026
@Vicente-Cheng
Vicente-Cheng marked this pull request as draft August 12, 2026 02:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant