mirror of
https://github.com/containers/podman.git
synced 2025-10-17 03:04:21 +08:00
Merge pull request #26217 from mheon/fix_26168
Fix SQLite volume lookup queries matching too liberally
This commit is contained in:
@ -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])
|
||||
})
|
||||
})
|
||||
|
Reference in New Issue
Block a user