Skip to content

Commit

Permalink
Fix e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
lburgazzoli committed Dec 10, 2024
1 parent 0519b17 commit f2ee817
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/e2e/controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,11 @@ func TestOdhOperator(t *testing.T) {
t.Run("create DSCI and DSC CRs", creationTestSuite)

for k, v := range componentsTestSuites {
// requires special handling
if k == "modelController" {
continue
}

if len(testOpts.components) != 0 && !slices.Contains(testOpts.components, k) {
t.Logf("Skipping tests for component %s", k)
continue
Expand All @@ -171,6 +176,10 @@ func TestOdhOperator(t *testing.T) {
t.Run("validate installation of "+k+" component", v)
}

if len(testOpts.components) == 0 || slices.Contains(testOpts.components, "modelController") {
t.Run("validate installation of modelController component", componentsTestSuites["modelController"])
}

// Run deletion if skipDeletion is not set
if !testOpts.skipDeletion {
if testOpts.operatorControllerTest {
Expand Down

0 comments on commit f2ee817

Please sign in to comment.