summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorcdoern <cbdoer23@g.holycross.edu>2021-11-08 11:25:47 -0500
committercdoern <cbdoer23@g.holycross.edu>2021-11-11 20:14:38 -0500
commitac38eca3fdaa723a6c96fd2bcfa882d1ab2a09fb (patch)
tree506d9007dea782dbb5805046abd3f38c9ea61523 /test
parentffa5ed0e0e00f79a1f3b6a88bf9efce3dbb19207 (diff)
downloadpodman-ac38eca3fdaa723a6c96fd2bcfa882d1ab2a09fb.tar.gz
podman-ac38eca3fdaa723a6c96fd2bcfa882d1ab2a09fb.tar.bz2
podman-ac38eca3fdaa723a6c96fd2bcfa882d1ab2a09fb.zip
Podman Image SCP transfer patch
Fixed syntax so that podman image scp transfer works with no user specified. This command can only be executed as root so to obtain the default user, I searched for the SUDO_USER environmental variable. If that is not found, we error out and inform the user to set this variable and make sure they are running as root Signed-off-by: cdoern <cdoern@redhat.com> Signed-off-by: cdoern <cbdoer23@g.holycross.edu>
Diffstat (limited to 'test')
-rw-r--r--test/e2e/image_scp_test.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/e2e/image_scp_test.go b/test/e2e/image_scp_test.go
index acea2993d..3e7e8da48 100644
--- a/test/e2e/image_scp_test.go
+++ b/test/e2e/image_scp_test.go
@@ -78,6 +78,10 @@ var _ = Describe("podman image scp", func() {
list.WaitWithDefaultTimeout()
Expect(list).To(Exit(0))
Expect(list.LineInOutputStartsWith("quay.io/libpod/alpine")).To(BeTrue())
+
+ scp = podmanTest.PodmanAsUser([]string{"image", "scp", "root@localhost::" + ALPINE}, 0, 0, "", env) //transfer from root to rootless (us)
+ scp.WaitWithDefaultTimeout()
+ Expect(scp).To(Exit(0))
})
It("podman image scp bogus image", func() {