Skip to content

Commit

Permalink
wsl: machine tests for inspect
Browse files Browse the repository at this point in the history
small corrections for wsl between sockets and pipe

Signed-off-by: Brent Baude <[email protected]>
  • Loading branch information
baude committed Sep 26, 2023
1 parent a2434a9 commit 217c4d5
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 217c4d5

Please sign in to comment.