summaryrefslogtreecommitdiff
path: root/test/e2e/inspect_test.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-11-24 09:07:02 +0100
committerGitHub <noreply@github.com>2021-11-24 09:07:02 +0100
commit4b014a3aecf9508ed83ae489e188721e6234ccd5 (patch)
tree8d5f445a67efd8ddc117237e05f111c0aad2b3c9 /test/e2e/inspect_test.go
parent04be1e6485aec99d09edf3cdcf0769269ee42eb8 (diff)
parenteb3708a5243378a659ca126b5d5c457b182d16a8 (diff)
downloadpodman-4b014a3aecf9508ed83ae489e188721e6234ccd5.tar.gz
podman-4b014a3aecf9508ed83ae489e188721e6234ccd5.tar.bz2
podman-4b014a3aecf9508ed83ae489e188721e6234ccd5.zip
Merge pull request #12398 from edsantiago/remove_betrue
continue e2e test cleanup
Diffstat (limited to 'test/e2e/inspect_test.go')
-rw-r--r--test/e2e/inspect_test.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/e2e/inspect_test.go b/test/e2e/inspect_test.go
index 63a54a5ca..52726015c 100644
--- a/test/e2e/inspect_test.go
+++ b/test/e2e/inspect_test.go
@@ -2,7 +2,6 @@ package integration
import (
"os"
- "strings"
. "github.com/containers/podman/v3/test/utils"
. "github.com/onsi/ginkgo"
@@ -61,7 +60,7 @@ var _ = Describe("Podman inspect", func() {
Expect(inspect).Should(Exit(0))
// output should not be empty
// test validates fix for https://github.com/containers/podman/issues/8785
- Expect(strings.Contains(inspect.OutputToString(), "TEST"))
+ Expect(inspect.OutputToString()).To(ContainSubstring("TEST="), ".Config.Env")
session = podmanTest.Podman([]string{"rmi", "envwithtab"})
session.WaitWithDefaultTimeout()
@@ -76,7 +75,7 @@ var _ = Describe("Podman inspect", func() {
result := podmanTest.Podman([]string{"images", "-q", "--no-trunc", ALPINE})
result.WaitWithDefaultTimeout()
Expect(session).Should(Exit(0))
- Expect(strings.Contains(result.OutputToString(), session.OutputToString()))
+ Expect(result.OutputToStringArray()).To(ContainElement("sha256:"+session.OutputToString()), "'podman images -q --no-truncate' includes 'podman inspect --format .ID'")
})
It("podman inspect specified type", func() {