-
Notifications
You must be signed in to change notification settings - Fork 355
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
webui: tests: switch some storage tests to nondestructive #4884
webui: tests: switch some storage tests to nondestructive #4884
Conversation
b20c192
to
b1a6540
Compare
4ab826d
to
42451b1
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.
Looks good to me.
42451b1
to
a898673
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.
Looks good to me, 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.
Looks good to me as well. :)
|
||
class VirtInstallMachineCase(MachineCase): | ||
MachineCase.machine_class = VirtInstallMachine | ||
|
||
def setUp(self): | ||
# FIXME: running this in destructive tests fails because the SSH session closes before this is run | ||
if self.is_nondestructive(): | ||
self.addCleanup(self.rescanStorage) |
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.
Maybe we could print/log a warning when someone calls this by mistake in destructive mode ?
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.
Hmm i don't see how I can know if rescanStorage will be added with an addCleanup in the future
10cd471
to
36b195d
Compare
/webui-test |
Permian tests are failing https://github.com/rhinstaller/anaconda/actions/runs/5541527226 |
For the two tests affected in this commit it was enough to use add_ram_disk test storage helper, which has includes a teardown cleanup.
36b195d
to
3d84a10
Compare
/kickstart-test --waive webui only |
For the two tests affected in this commit it was enough to use add_ram_disk test storage helper, which has includes a teardown cleanup.