-
Notifications
You must be signed in to change notification settings - Fork 10
[waiting for sm feature] Create tests for vdi_revert on file based SRs #627
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
base: master
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -61,6 +61,34 @@ def test_volume_stopped(self, host: Host, glusterfs_sr: SR) -> None: | |
| if not volume_running: | ||
| host.ssh('gluster --mode=script volume start vol0') | ||
|
|
||
| @pytest.mark.small_vm | ||
| @pytest.mark.big_vm | ||
| def test_revert(self, vm_on_glusterfs_sr: VM) -> None: | ||
| vm_on_glusterfs_sr.test_vdi_revert() | ||
|
|
||
| @pytest.mark.small_vm | ||
| @pytest.mark.big_vm | ||
| @pytest.mark.parametrize( | ||
| "fistpoint", | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just out of curiosity, what does 'fistpoint' mean here? I have a few ideas, but they don't really seem to fit? Is it kind of a joke?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fistpoints are special files that are used to alter the behaviour of the smapi. This is what makes the revert fail in controlled conditions, they are designed for end to end testing. And yes, the name is funny, they exists since the first git commit of the sm project. |
||
| [ | ||
| "FileSR_revert_create_insert", | ||
| "FileSR_revert_create_src", | ||
| "FileSR_revert_create_dest", | ||
| ] | ||
| ) | ||
| def test_revert_journal(self, vm_on_glusterfs_sr: VM, request: pytest.FixtureRequest, fistpoint: str): | ||
| vm_on_glusterfs_sr.test_vdi_revert_journal(request, fistpoint, vm_on_glusterfs_sr.host.pool.master) | ||
|
|
||
| @pytest.mark.small_vm | ||
| @pytest.mark.big_vm | ||
| def test_critical_journal_revert( | ||
| self, | ||
| vm_on_glusterfs_sr: VM, | ||
| request: pytest.FixtureRequest, | ||
| hostA2: Host, | ||
| ) -> None: | ||
| vm_on_glusterfs_sr.test_critical_journal_revert(request, hostA2, "FileSR_revert_create_src") | ||
|
|
||
| # *** tests with reboots (longer tests). | ||
|
|
||
| @pytest.mark.reboot | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.