Skip to content

Commit

Permalink
Merge pull request #20152 from baude/wslenableinspect
Browse files Browse the repository at this point in the history
wsl: machine tests for inspect
  • Loading branch information
openshift-merge-robot authored Sep 26, 2023
2 parents 1e04683 + 217c4d5 commit d2d121a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions pkg/machine/e2e/inspect_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
. "github.com/onsi/gomega/gexec"
)

var _ = Describe("podman machine stop", func() {
var _ = Describe("podman inspect stop", func() {
var (
mb *machineTestBuilder
testDir string
Expand Down Expand Up @@ -65,7 +65,12 @@ var _ = Describe("podman machine stop", func() {
var inspectInfo []machine.InspectInfo
err = jsoniter.Unmarshal(inspectSession.Bytes(), &inspectInfo)
Expect(err).ToNot(HaveOccurred())
Expect(inspectInfo[0].ConnectionInfo.PodmanSocket.GetPath()).To(HaveSuffix("podman.sock"))
switch testProvider.VMType() {
case machine.WSLVirt:
Expect(inspectInfo[0].ConnectionInfo.PodmanPipe.GetPath()).To(ContainSubstring("podman-"))
default:
Expect(inspectInfo[0].ConnectionInfo.PodmanSocket.GetPath()).To(HaveSuffix("podman.sock"))
}

inspect := new(inspectMachine)
inspect = inspect.withFormat("{{.Name}}")
Expand Down

0 comments on commit d2d121a

Please sign in to comment.