Skip to content

Commit

Permalink
ci: update e2e tests to include odf-dependencies subscription
Browse files Browse the repository at this point in the history
Signed-off-by: Nitin Goyal <[email protected]>
  • Loading branch information
iamniting committed Nov 15, 2024
1 parent 99e7b8b commit 5fa1200
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions e2e/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ var (
OdfClusterUninstall bool
// OdfClusterServiceVersion is the name of odf csv
OdfClusterServiceVersion string
// OdfDepsClusterServiceVersion is the name of the odf-dependency csv
OdfDepsClusterServiceVersion string
// OcsClusterServiceVersion is the name of ocs csv
OcsClusterServiceVersion string
// OcsClientClusterServiceVersion is the name of ocs-client csv
Expand Down Expand Up @@ -53,6 +55,7 @@ func init() {
flag.BoolVar(&OdfOperatorInstall, "odf-operator-install", true, "Install the ODF operator before starting tests")
flag.BoolVar(&OdfClusterUninstall, "odf-operator-uninstall", true, "Uninstall the ODF operator after test completion")
flag.StringVar(&OdfClusterServiceVersion, "odf-cluster-service-version", "", "The ODF CSV name which needs to verified")
flag.StringVar(&OdfDepsClusterServiceVersion, "odf-deps-cluster-service-version", "", "The ODF deps CSV name which needs to verified")
flag.StringVar(&OcsClusterServiceVersion, "ocs-cluster-service-version", "", "The OCS CSV name which needs to verified")
flag.StringVar(&OcsClientClusterServiceVersion, "ocs-client-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")
Expand Down Expand Up @@ -93,6 +96,10 @@ func verifyFlags() {
panic("odf-cluster-service-version is not provided")
}

if OdfDepsClusterServiceVersion == "" {
panic("odf-deps-cluster-service-version is not provided")
}

if OcsClusterServiceVersion == "" {
panic("ocs-cluster-service-version is not provided")
}
Expand Down
1 change: 1 addition & 0 deletions hack/e2e-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ cd e2e/odf && ${GINKGO} build && ./odf.test \
--odf-operator-install=${ODF_OPERATOR_INSTALL} \
--odf-operator-uninstall=${ODF_OPERATOR_UNINSTALL} \
--odf-cluster-service-version=odf-operator.v${VERSION} \
--odf-deps-cluster-service-version=odf-dependencies.v${VERSION} \
--ocs-cluster-service-version=${OCS_SUBSCRIPTION_STARTINGCSV} \
--ocs-client-cluster-service-version=${OCS_CLIENT_SUBSCRIPTION_STARTINGCSV} \
--nooba-cluster-service-version=${NOOBAA_SUBSCRIPTION_STARTINGCSV} \
Expand Down

0 comments on commit 5fa1200

Please sign in to comment.