-
Notifications
You must be signed in to change notification settings - Fork 72
[Storage] refactor snapshots test to use win 2k22 and vtpm #4687
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
acinko-rh
wants to merge
11
commits into
RedHatQE:main
Choose a base branch
from
acinko-rh:add_vtpm_to_win_machines_snapshots
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+45
−75
Open
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
6b834e5
refactor snapshots to use win 2k22 and vtpm
acinko-rh 9ee0694
chore: ignore flake8 rules now handled by ruff (#4703)
rnetser 5134180
style: remove stale noqa comments and obsolete utf-8 headers (#4725)
rnetser 9de3155
use image from registry
acinko-rh e22390e
mild name refactor and change the workflow for the helper functions
acinko-rh 3fc06d9
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 0d8aa41
remove tox unused code
acinko-rh 64f81d2
fix the test parameters
acinko-rh a519778
use session scoped DS for the test
acinko-rh a18227a
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] b6c0cb9
use session scoped DS for the test
acinko-rh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test Execution Plan
create_windows19_vmhelper; no parentconftest.pyintroduces this dependency.Affected tests to run
tests/storage/snapshots/test_snapshots.py::test_online_windows_vm_successful_restore(tier3) — exerciseswindows_vm_with_vtpm_for_snapshot→ Windows 2022 DataSource/DV template → directory creation → online snapshot → directory deletion → VM restore.tests/storage/snapshots/test_snapshots.py::test_write_to_file_while_snapshot(tier3) — exercises the same vTPM Windows 2022 fixture path while writing during snapshot completion and restoring the VM.Real tests (cluster required)
Error/fix path (snapshot preserves the directory removed after the snapshot):
pytest -s -o log_cli=true --jira tests/storage/snapshots/test_snapshots.py::test_online_windows_vm_successful_restore -m tier3Happy path (write during snapshot remains restorable):
pytest -s -o log_cli=true --jira tests/storage/snapshots/test_snapshots.py::test_write_to_file_while_snapshot -m tier3These require a real cluster because the changed fixtures provision the Windows VM and DataVolume, use SSH, and create/restore
VirtualMachineSnapshotresources.