Skip to content

tests: add test for VG with no LV#168

Merged
ogayot merged 1 commit into
canonical:mainfrom
ogayot:test-vg-no-lv
May 28, 2026
Merged

tests: add test for VG with no LV#168
ogayot merged 1 commit into
canonical:mainfrom
ogayot:test-vg-no-lv

Conversation

@ogayot

@ogayot ogayot commented May 27, 2026

Copy link
Copy Markdown
Member

Copilot suggested adding this test in #167

Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds regression coverage for LVM probing when volume groups and physical volumes exist but no logical volumes are detected.

Changes:

  • Adds a test ensuring lvm.probe() still returns physical_volumes and volume_groups.
  • Verifies logical_volumes is omitted when no LVs are present.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

@ogayot ogayot mentioned this pull request May 27, 2026

@Chris-Peterson444 Chris-Peterson444 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, makes sense to me. Thanks!

@dbungert dbungert left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@ogayot ogayot merged commit 3460082 into canonical:main May 28, 2026
2 checks passed
@ogayot ogayot deleted the test-vg-no-lv branch May 28, 2026 07:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants