Merge pull request #26217 from mheon/fix_26168

Fix SQLite volume lookup queries matching too liberally
This commit is contained in:
openshift-merge-bot[bot]
2025-05-28 18:42:06 +00:00
committed by GitHub
2 changed files with 17 additions and 2 deletions

View File

@ -114,4 +114,14 @@ var _ = Describe("Podman volume rm", func() {
Expect(session).Should(ExitCleanly())
Expect(len(session.OutputToStringArray())).To(BeNumerically(">=", 2))
})
It("podman volume rm by unique partial name - case & underscore insensitive", func() {
volNames := []string{"test_volume", "test-volume", "test", "Test"}
for _, name := range volNames {
podmanTest.PodmanExitCleanly("volume", "create", name)
}
podmanTest.PodmanExitCleanly("volume", "rm", volNames[0])
podmanTest.PodmanExitCleanly("volume", "rm", volNames[2])
})
})