mirror of
https://github.com/containers/podman.git
synced 2025-11-28 17:18:58 +08:00
Tremendous amount of changes in here, but all should amount to the same thing: changing Go import paths from v5 to v6. Also bumped go.mod to github.com/containers/podman/v6 and updated version to v6.0.0-dev. Signed-off-by: Matt Heon <mheon@redhat.com>
21 lines
438 B
Go
21 lines
438 B
Go
//go:build amd64 || arm64
|
|
|
|
package machine
|
|
|
|
import (
|
|
"path/filepath"
|
|
"testing"
|
|
|
|
"github.com/containers/podman/v6/pkg/machine/env"
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
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))
|
|
}
|