-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
this pr allows us to run the machine e2e tests with the wsl provider. [NO NEW TESTS NEEDED] Signed-off-by: Brent Baude <[email protected]>
- Loading branch information
Showing
4 changed files
with
53 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
//go:build darwin || dragonfly || freebsd || linux || netbsd || openbsd | ||
|
||
package e2e_test | ||
|
||
import ( | ||
"github.com/containers/podman/v4/pkg/machine" | ||
. "github.com/onsi/ginkgo/v2" | ||
) | ||
|
||
func getDownloadLocation(p machine.VirtProvider) string { | ||
dd, err := p.NewDownload("") | ||
if err != nil { | ||
Fail("unable to create new download") | ||
} | ||
|
||
fcd, err := dd.GetFCOSDownload(defaultStream) | ||
if err != nil { | ||
Fail("unable to get virtual machine image") | ||
} | ||
|
||
return fcd.Location | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,17 @@ | ||
package e2e_test | ||
|
||
import ( | ||
"github.com/containers/podman/v4/pkg/machine" | ||
"github.com/containers/podman/v4/pkg/machine/wsl" | ||
. "github.com/onsi/ginkgo/v2" | ||
) | ||
|
||
const podmanBinary = "../../../bin/windows/podman.exe" | ||
|
||
func getDownloadLocation(_ machine.VirtProvider) string { | ||
fd, err := wsl.NewFedoraDownloader(machine.WSLVirt, "", defaultStream.String()) | ||
if err != nil { | ||
Fail("unable to get WSL virtual image") | ||
} | ||
return fd.Get().URL.String() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters