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:
Toshiki Sonoda
2023-07-11 13:51:47 +09:00
parent 77b36ca35e
commit 72a1857e43

View File

@ -4533,7 +4533,7 @@ ENV OPENJ9_JAVA_OPTIONS=%q
It("podman play kube using a user namespace", func() {
u, err := user.Current()
Expect(err).ToNot(HaveOccurred())
name := u.Name
name := u.Username
if name == "root" {
name = "containers"
}