Files
podman/pkg/machine/config_test.go
Daniel J Walsh 3fb37c588d Switch all calls of assert.Nil to assert.NoError
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2025-01-15 07:08:27 -05:00

21 lines
438 B
Go

//go:build amd64 || arm64
package machine
import (
"path/filepath"
"testing"
"github.com/containers/podman/v5/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))
}