Files
podman/pkg/machine/config_test.go
Brent Baude 2cc3be7332 RUN-4539: Change podman module paths
The podman module paths are moving from github.com/containers/podman to
go.podman.io/podman.  This will help with future mobility.

Signed-off-by: Brent Baude <bbaude@redhat.com>
2026-04-22 14:02:25 -05:00

21 lines
429 B
Go

//go:build amd64 || arm64
package machine
import (
"path/filepath"
"testing"
"github.com/stretchr/testify/assert"
"go.podman.io/podman/v6/pkg/machine/env"
)
func TestGetSSHIdentityPath(t *testing.T) {
name := "p-test"
datadir, err := env.GetGlobalDataDir()
assert.NoError(t, err)
identityPath, err := env.GetSSHIdentityPath(name)
assert.NoError(t, err)
assert.Equal(t, identityPath, filepath.Join(datadir, name))
}