Skip to content
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

storage: restricted probes must gather fs info #1636

Merged
merged 1 commit into from
Apr 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion subiquity/server/controllers/filesystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -846,7 +846,7 @@ async def v2_edit_partition_POST(self, data: ModifyPartitionV2) \
@with_context(name='probe_once', description='restricted={restricted}')
async def _probe_once(self, *, context, restricted):
if restricted:
probe_types = {'blockdev'}
probe_types = {'blockdev', 'filesystem'}
fname = 'probe-data-restricted.json'
key = "ProbeDataRestricted"
else:
Expand Down
3 changes: 2 additions & 1 deletion subiquity/server/controllers/tests/test_filesystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ def setUp(self):

async def test_probe_restricted(self):
await self.fsc._probe_once(context=None, restricted=True)
self.app.prober.get_storage.assert_called_with({'blockdev'})
expected = {'blockdev', 'filesystem'}
self.app.prober.get_storage.assert_called_with(expected)

async def test_probe_os_prober_false(self):
self.app.opts.use_os_prober = False
Expand Down