-
Notifications
You must be signed in to change notification settings - Fork 9
M3-US4 - Disk from snapshot to VM #166
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
Conversation
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.
small changes. Thank you.
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.
I think filtering does not work the way it should.
Without setting up dedicated VMs and snapshot will be hard to write integration tests. I think that should be the first step.
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.
We will make test infra (the 2 VMs and their snapshots) more complex later.
How to refactor filter_snapshots_by_params
- if code works correctly, we can refactor it later. Nice code can wait.
https://github.com/ScaleComputing/HyperCoreAnsibleCollection/actions/runs/4477382452/jobs/7868844884 - test failed, need to be fixed.
File examples/attach_snapshot_disk_to_vm.yml
- maybe we keep it in separate branch, because it has some comments inside. We cannot commit it (yet).
tests/integration/targets/vm_snapshot/tasks/01_vm_snapshot_info.yml
Outdated
Show resolved
Hide resolved
…d_classes for modules needs.
…ation tests for vm_snapshot_info.
553a193
to
f83a706
Compare
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.
I run integ test manually against 10.5.11.50, it passed.
Add vm_snapshot modules:
module_utils/vm_snapshot
modules/vm_snapshot_info
and integration tests for this one