From 2e7642e51eaf30e200a8df868e90d4e87f9fe5fd Mon Sep 17 00:00:00 2001 From: VaniHaripriya Date: Tue, 7 Jan 2025 12:10:30 -0600 Subject: [PATCH] Update test --- .../sample-pipeline/sample-config.yaml.tmpl | 2 +- tests/pipeline_test.go | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/config/internal/apiserver/sample-pipeline/sample-config.yaml.tmpl b/config/internal/apiserver/sample-pipeline/sample-config.yaml.tmpl index 59f42338..0f0baed0 100644 --- a/config/internal/apiserver/sample-pipeline/sample-config.yaml.tmpl +++ b/config/internal/apiserver/sample-pipeline/sample-config.yaml.tmpl @@ -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" } diff --git a/tests/pipeline_test.go b/tests/pipeline_test.go index 3d6f9335..3ab09e85 100644 --- a/tests/pipeline_test.go +++ b/tests/pipeline_test.go @@ -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) @@ -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") } }) }