diff options
author | Peter Hunt <pehunt@redhat.com> | 2019-10-09 15:57:37 -0400 |
---|---|---|
committer | Peter Hunt <pehunt@redhat.com> | 2019-10-11 12:22:34 -0400 |
commit | 0ec4e90eaecfe4e7a0ff2fbfb409edee41494e5e (patch) | |
tree | 921cd9cd825312478cbf366701e3f26e0eff86bf /test | |
parent | 22b8ff24b6ae8994a04e6f3c23aaa93f3c41d954 (diff) | |
download | podman-0ec4e90eaecfe4e7a0ff2fbfb409edee41494e5e.tar.gz podman-0ec4e90eaecfe4e7a0ff2fbfb409edee41494e5e.tar.bz2 podman-0ec4e90eaecfe4e7a0ff2fbfb409edee41494e5e.zip |
Remove test that doesn't work with 1.4.2-stable cp
Signed-off-by: Peter Hunt <pehunt@redhat.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/e2e/cp_test.go | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/test/e2e/cp_test.go b/test/e2e/cp_test.go index a5324004a..f7596d77d 100644 --- a/test/e2e/cp_test.go +++ b/test/e2e/cp_test.go @@ -205,40 +205,4 @@ var _ = Describe("Podman cp", func() { session.WaitWithDefaultTimeout() Expect(session.ExitCode()).To(Equal(0)) }) - - It("podman cp from ctr chown ", func() { - setup := podmanTest.RunTopContainer("testctr") - setup.WaitWithDefaultTimeout() - Expect(setup.ExitCode()).To(Equal(0)) - - session := podmanTest.Podman([]string{"exec", "testctr", "adduser", "-S", "testuser"}) - session.WaitWithDefaultTimeout() - Expect(session.ExitCode()).To(Equal(0)) - - session = podmanTest.Podman([]string{"exec", "-u", "testuser", "testctr", "touch", "testfile"}) - session.WaitWithDefaultTimeout() - Expect(session.ExitCode()).To(Equal(0)) - - session = podmanTest.Podman([]string{"cp", "--pause=false", "testctr:testfile", "testfile1"}) - session.WaitWithDefaultTimeout() - Expect(session.ExitCode()).To(Equal(0)) - - // owner of the file copied to local machine is not testuser - cmd := exec.Command("ls", "-l", "testfile1") - cmdRet, err := cmd.Output() - Expect(err).To(BeNil()) - Expect(strings.Contains(string(cmdRet), "testuser")).To(BeFalse()) - - session = podmanTest.Podman([]string{"cp", "--pause=false", "testfile1", "testctr:testfile2"}) - session.WaitWithDefaultTimeout() - Expect(session.ExitCode()).To(Equal(0)) - - // owner of the file copied to a container is the root user - session = podmanTest.Podman([]string{"exec", "-it", "testctr", "ls", "-l", "testfile2"}) - session.WaitWithDefaultTimeout() - Expect(session.ExitCode()).To(Equal(0)) - Expect(session.OutputToString()).To(ContainSubstring("root")) - - os.Remove("testfile1") - }) }) |