diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2019-06-21 16:15:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-21 16:15:00 +0200 |
commit | c0bc768ff131d014638a151f7725921a87ddbdb1 (patch) | |
tree | 0605613ba5fa6f128abb9c75887e3c7831630736 /test/e2e/diff_test.go | |
parent | 7d8aba924820447a9f07b78dbaf795f94c4e906d (diff) | |
parent | 1e706a021dde7566bc04a27b29411d4cd940ac17 (diff) | |
download | podman-c0bc768ff131d014638a151f7725921a87ddbdb1.tar.gz podman-c0bc768ff131d014638a151f7725921a87ddbdb1.tar.bz2 podman-c0bc768ff131d014638a151f7725921a87ddbdb1.zip |
Merge pull request #3395 from adrianreber/diff
Add --latest, -l to 'podman diff'
Diffstat (limited to 'test/e2e/diff_test.go')
-rw-r--r-- | test/e2e/diff_test.go | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/e2e/diff_test.go b/test/e2e/diff_test.go index 0f53d9bc8..d273f9463 100644 --- a/test/e2e/diff_test.go +++ b/test/e2e/diff_test.go @@ -80,4 +80,18 @@ var _ = Describe("Podman diff", func() { sort.Strings(imageDiff) Expect(imageDiff).To(Equal(containerDiff)) }) + + It("podman diff latest container", func() { + SkipIfRemote() + session := podmanTest.Podman([]string{"run", "--name=diff-test", ALPINE, "touch", "/tmp/diff-test"}) + session.WaitWithDefaultTimeout() + Expect(session.ExitCode()).To(Equal(0)) + session = podmanTest.Podman([]string{"diff", "-l"}) + session.WaitWithDefaultTimeout() + containerDiff := session.OutputToStringArray() + sort.Strings(containerDiff) + Expect(session.LineInOutputContains("C /tmp")).To(BeTrue()) + Expect(session.LineInOutputContains("A /tmp/diff-test")).To(BeTrue()) + Expect(session.ExitCode()).To(Equal(0)) + }) }) |