diff options
author | Brent Baude <bbaude@redhat.com> | 2022-06-01 10:45:30 -0500 |
---|---|---|
committer | Brent Baude <bbaude@redhat.com> | 2022-06-01 10:48:17 -0500 |
commit | 8291b51ceb50ca3230aeeeb27930111a27a31290 (patch) | |
tree | f27973659eaa9eeea0c2c0dd66cb4f3179fddbd4 /pkg/machine/e2e/inspect_test.go | |
parent | 2039445763f418720b08983b40949480e8754f9a (diff) | |
download | podman-8291b51ceb50ca3230aeeeb27930111a27a31290.tar.gz podman-8291b51ceb50ca3230aeeeb27930111a27a31290.tar.bz2 podman-8291b51ceb50ca3230aeeeb27930111a27a31290.zip |
expose podman.sock in machine inspect
For consumers of the podman.sock who want a predictable way to find the
podman sock, we now include it under 'ConnectionConfig' in podman
machine inspect.
Fixes: #14231
Signed-off-by: Brent Baude <bbaude@redhat.com>
Diffstat (limited to 'pkg/machine/e2e/inspect_test.go')
-rw-r--r-- | pkg/machine/e2e/inspect_test.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/machine/e2e/inspect_test.go b/pkg/machine/e2e/inspect_test.go index 2c9de5664..cdf13bb1a 100644 --- a/pkg/machine/e2e/inspect_test.go +++ b/pkg/machine/e2e/inspect_test.go @@ -2,6 +2,7 @@ package e2e import ( "encoding/json" + "strings" "github.com/containers/podman/v4/pkg/machine" "github.com/containers/podman/v4/pkg/machine/qemu" @@ -86,6 +87,7 @@ var _ = Describe("podman machine stop", func() { var inspectInfo []machine.InspectInfo err = jsoniter.Unmarshal(inspectSession.Bytes(), &inspectInfo) Expect(err).To(BeNil()) + Expect(strings.HasSuffix(inspectInfo[0].ConnectionInfo.PodmanSocket.GetPath(), "podman.sock")) inspect := new(inspectMachine) inspect = inspect.withFormat("{{.Name}}") |