Skip to content

Commit

Permalink
test: fix ssh key path in podman tests
Browse files Browse the repository at this point in the history
in 7bb32ee the ssh key algorithm was changed to ed25519
so the resulting ssh private key is now called id_ed25519
  • Loading branch information
anjannath committed Aug 27, 2024
1 parent e222fc9 commit 80dcac9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions test/e2e/testsuite/testsuite.go
Original file line number Diff line number Diff line change
Expand Up @@ -940,14 +940,14 @@ func PodmanCommandIsAvailable() error {

// Do what 'eval $(crc podman-env) would do
path := os.ExpandEnv("${HOME}/.crc/bin/podman:$PATH")
csshk := os.ExpandEnv("${HOME}/.crc/machines/crc/id_ecdsa")
csshk := os.ExpandEnv("${HOME}/.crc/machines/crc/id_ed25519")
dh := os.ExpandEnv("unix:///${HOME}/.crc/machines/crc/docker.sock")
ch := "ssh://[email protected]:2222/run/user/1000/podman/podman.sock"
if runtime.GOOS == "windows" {
userHomeDir, _ := os.UserHomeDir()
unexpandedPath := filepath.Join(userHomeDir, ".crc/bin/podman;${PATH}")
path = os.ExpandEnv(unexpandedPath)
csshk = filepath.Join(userHomeDir, ".crc/machines/crc/id_ecdsa")
csshk = filepath.Join(userHomeDir, ".crc/machines/crc/id_ed25519")
dh = "npipe:////./pipe/crc-podman"
}
if runtime.GOOS == "linux" {
Expand Down
4 changes: 2 additions & 2 deletions test/integration/podman_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,14 @@ var _ = Describe("podman-remote", Serial, Ordered, Label("microshift-preset"), f
It("podman-env", func() {
// Do what 'eval $(crc podman-env) would do
path := os.ExpandEnv("${HOME}/.crc/bin/podman:$PATH")
csshk := os.ExpandEnv("${HOME}/.crc/machines/crc/id_ecdsa")
csshk := os.ExpandEnv("${HOME}/.crc/machines/crc/id_ed25519")
dh := os.ExpandEnv("unix:///${HOME}/.crc/machines/crc/docker.sock")
ch := "ssh://[email protected]:2222/run/user/1000/podman/podman.sock"
if runtime.GOOS == "windows" {
userHomeDir, _ := os.UserHomeDir()
unexpandedPath := filepath.Join(userHomeDir, ".crc/bin/podman;${PATH}")
path = os.ExpandEnv(unexpandedPath)
csshk = filepath.Join(userHomeDir, ".crc/machines/crc/id_ecdsa")
csshk = filepath.Join(userHomeDir, ".crc/machines/crc/id_ed25519")
dh = "npipe:////./pipe/crc-podman"
}
if runtime.GOOS == "linux" {
Expand Down

0 comments on commit 80dcac9

Please sign in to comment.