Skip to content

Commit

Permalink
ci: update e2e tests to include rook subscription
Browse files Browse the repository at this point in the history
Update e2e tests to include rook subscription and rook csv
while installing odf-operator

Signed-off-by: Nikhil-Ladha <[email protected]>
  • Loading branch information
Nikhil-Ladha committed Mar 18, 2024
1 parent e2e1a46 commit 5df17e7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
10 changes: 9 additions & 1 deletion e2e/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ var (
NoobaClusterServiceVersion string
// CsiaddonsClusterServiceVersion is the name of Csiaddons csv
CsiaddonsClusterServiceVersion string
// RookClusterServiceVersion is the name of Rook csv
RookClusterServiceVersion string
)

var (
Expand All @@ -46,13 +48,15 @@ func init() {
flag.StringVar(&OcsClusterServiceVersion, "ocs-cluster-service-version", "", "The OCS CSV name which needs to verified")
flag.StringVar(&NoobaClusterServiceVersion, "nooba-cluster-service-version", "", "The Nooba CSV name which needs to verified")
flag.StringVar(&CsiaddonsClusterServiceVersion, "csiaddons-cluster-service-version", "", "The CSI Addon CSV name which needs to verified")
flag.StringVar(&RookClusterServiceVersion, "rook-cluster-service-version", "", "The Rook CSV name which needs to verified")
flag.Parse()

verifyFlags()

// A list of names of all the csvs that should be installed
CsvNames = []string{OdfClusterServiceVersion, OcsClusterServiceVersion,
NoobaClusterServiceVersion, CsiaddonsClusterServiceVersion}
RookClusterServiceVersion, NoobaClusterServiceVersion,
CsiaddonsClusterServiceVersion}

dm, err := deploymanager.NewDeployManager()
if err != nil {
Expand Down Expand Up @@ -86,4 +90,8 @@ func verifyFlags() {
if CsiaddonsClusterServiceVersion == "" {
panic("csiaddons-cluster-service-version is not provided")
}

if RookClusterServiceVersion == "" {
panic("rook-cluster-service-version is not provided")
}
}
3 changes: 2 additions & 1 deletion hack/e2e-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ cd e2e/odf && ${GINKGO} build && ./odf.test \
--odf-cluster-service-version=odf-operator.v${VERSION} \
--ocs-cluster-service-version=${OCS_SUBSCRIPTION_STARTINGCSV} \
--nooba-cluster-service-version=${NOOBAA_SUBSCRIPTION_STARTINGCSV} \
--csiaddons-cluster-service-version=${CSIADDONS_SUBSCRIPTION_STARTINGCSV}
--csiaddons-cluster-service-version=${CSIADDONS_SUBSCRIPTION_STARTINGCSV} \
--rook-cluster-service-version=${ROOK_SUBSCRIPTION_STARTINGCSV}

0 comments on commit 5df17e7

Please sign in to comment.