mirror of
https://github.com/containers/podman.git
synced 2025-06-21 01:19:15 +08:00
e2e: Fetch the correct user name
When fetching the user name, you need to use User.Username instead of User.Name, as with other tests. Signed-off-by: Toshiki Sonoda <sonoda.toshiki@fujitsu.com>
This commit is contained in:
@ -4533,7 +4533,7 @@ ENV OPENJ9_JAVA_OPTIONS=%q
|
|||||||
It("podman play kube using a user namespace", func() {
|
It("podman play kube using a user namespace", func() {
|
||||||
u, err := user.Current()
|
u, err := user.Current()
|
||||||
Expect(err).ToNot(HaveOccurred())
|
Expect(err).ToNot(HaveOccurred())
|
||||||
name := u.Name
|
name := u.Username
|
||||||
if name == "root" {
|
if name == "root" {
|
||||||
name = "containers"
|
name = "containers"
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user