Skip to content

Commit

Permalink
Update integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
feloy committed Dec 23, 2022
1 parent 0ca8a70 commit cfa3c32
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/helper/helper_dev.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ type DevSessionOpts struct {
// when the dev mode is completely started
func StartDevMode(options DevSessionOpts) (DevSession, []byte, []byte, map[string]string, error) {
if options.RunOnPodman {
options.CmdlineArgs = append(options.CmdlineArgs, "--run-on", "podman")
options.CmdlineArgs = append(options.CmdlineArgs, "--platform", "podman")
options.EnvVars = append(options.EnvVars, "ODO_EXPERIMENTAL_MODE=true")
}
c, err := expect.NewConsole(expect.WithStdout(os.Stdout))
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/cmd_devfile_list_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ var _ = Describe("odo list with devfile", func() {
helper.JsonPathContentIs(stdout, "components.0.runningOn", "podman")
})
By("returning component not in dev mode when experimental mode is enabled with json output and run-on is cluster", func() {
args := append(cmd, "-o", "json", "--run-on", "cluster")
args := append(cmd, "-o", "json", "--platform", "cluster")
stdout := helper.Cmd("odo", args...).AddEnv("ODO_EXPERIMENTAL_MODE=true").ShouldPass().Out()
Expect(helper.IsJSON(stdout)).To(BeTrue(), "output should be in JSON format")
helper.JsonPathContentIs(stdout, "components.#", "1")
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/generic_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ var _ = Describe("odo generic", func() {
})

Describe("Experimental Mode", Label(helper.LabelNoCluster), func() {
experimentalFlag := "--run-on"
experimentalFlag := "--platform"

AfterEach(func() {
helper.ResetExperimentalMode()
Expand Down

0 comments on commit cfa3c32

Please sign in to comment.