Skip to content

Commit

Permalink
Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
VaniHaripriya committed Jan 7, 2025
1 parent 166f107 commit 2e7642e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ data:
{{- end }}
{{- if .EnableInstructLabPipeline }}
{
"name": "[Instructlab] Multi-Phase Training Pipeline",
"name": "[InstructLab] Multi-Phase Training Pipeline",
"description": "[source code](https://github.com/opendatahub-io/ilab-on-ocp) Instructlab Multi-Phase Training Pipeline",
"file": "/pipelines/instructlab.yaml"
}
Expand Down
12 changes: 6 additions & 6 deletions tests/pipeline_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ func (suite *IntegrationTestSuite) TestAPIServerDeployment() {
assert.Equal(t, 200, response.StatusCode)
})

suite.T().Run("Should check for Instructlab pipeline existence based on EnableInstructLabPipeline flag", func(t *testing.T) {
expectedDisplayName := "[Instructlab] Multi-Phase Training Pipeline"
suite.T().Run("Should check for InstructLab pipeline existence based on EnableInstructLabPipeline flag", func(t *testing.T) {
expectedDisplayName := "[InstructLab] Multi-Phase Training Pipeline"

// Retrieve pipelines
pipelines, err := TestUtil.RetrievePipelines(t, suite.Clientmgr.httpClient, APIServerURL)
Expand All @@ -92,12 +92,12 @@ func (suite *IntegrationTestSuite) TestAPIServerDeployment() {
}
if suite.DSPA.Spec.APIServer.EnableInstructLabPipeline {
expectedCount := 4
assert.Equal(t, expectedCount, len(pipelines.Pipelines), "Pipeline count should match when Instructlab is enabled")
assert.True(t, found, "Instructlab pipeline should exist when the flag is enabled")
assert.Equal(t, expectedCount, len(pipelines.Pipelines), "Pipeline count should match when EnableInstructLabPipeline flag is enabled")
assert.True(t, found, "InstructLab pipeline should exist when the flag is enabled")
} else {
expectedCount := 3
assert.Equal(t, expectedCount, len(pipelines.Pipelines), "Pipeline count should match when Instructlab is disabled")
assert.False(t, found, "Instructlab pipeline should not exist when the flag is disabled")
assert.Equal(t, expectedCount, len(pipelines.Pipelines), "Pipeline count should match when EnableInstructLabPipeline flag is disabled")
assert.False(t, found, "InstructLab pipeline should not exist when the flag is disabled")
}
})
}

0 comments on commit 2e7642e

Please sign in to comment.