Skip to content

Commit

Permalink
Integration tests for odo deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
feloy committed Jan 26, 2023
1 parent f91d146 commit 7c96bfe
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/integration/cmd_devfile_deploy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"fmt"
"net/http"
"net/http/httptest"
"os"
"path"
"path/filepath"
"regexp"
Expand Down Expand Up @@ -221,6 +222,12 @@ ComponentSettings:
Expect(td.Properties.CmdProperties).Should(HaveKey(segment.Caller))
Expect(td.Properties.CmdProperties[segment.Caller]).To(BeEmpty())
Expect(td.Properties.CmdProperties[segment.ExperimentalMode]).To(Equal(false))
if os.Getenv("KUBERNETES") == "true" {
Expect(td.Properties.CmdProperties[segment.Platform]).To(ContainSubstring("kubernetes"))
} else {
Expect(td.Properties.CmdProperties[segment.Platform]).To(ContainSubstring("openshift"))
}
Expect(td.Properties.CmdProperties[segment.PlatformVersion]).ToNot(BeEmpty())
})
})

Expand Down

0 comments on commit 7c96bfe

Please sign in to comment.