Skip to content

Commit

Permalink
test: udisks on rhel-7-6 supports LUKS resizing now
Browse files Browse the repository at this point in the history
Adjust the test accordingly.

Closes #9685
  • Loading branch information
martinpitt committed Jul 26, 2018
1 parent 07f76d1 commit c1b4bb6
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions test/verify/check-storage-resize
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,15 @@ class TestStorage(StorageCase):
can_grow=True, grow_needs_unmount=True)

def testResizeLuks(self):
# No version of UDisks supports resizing encrypted block
# devices yet. Once we get such a version, the buttons will
# automatically be enabled and this test needs to be adapted.
self.checkResize("luks+ext4",
can_shrink=False,
can_grow=False)
# Only newer versions of UDisks support resizing encrypted block devices
if self.machine.image in ["rhel-7-6"]:
self.checkResize("luks+ext4",
can_shrink=True, shrink_needs_unmount=True,
can_grow=True, grow_needs_unmount=False)
else:
self.checkResize("luks+ext4",
can_shrink=False,
can_grow=False)

if __name__ == '__main__':
test_main()

0 comments on commit c1b4bb6

Please sign in to comment.