Skip to content

Commit 0b1f9b6

Browse files
fix: fixed failing rag e2e test (#1502)
**Reason for Change**: <!-- What does this PR improve or fix in KAITO? Why is it needed? --> fixed failing rag e2e test (caused due to changing test string) **Requirements** - [ ] added unit tests and e2e tests (if applicable). **Issue Fixed**: <!-- If this PR fixes GitHub issue 4321, add "Fixes #4321" to the next line. --> **Notes for Reviewers**:
1 parent c47c418 commit 0b1f9b6

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

test/rage2e/rag_test.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ var _ = Describe("RAGEngine", func() {
110110
Expect(indexDoc["text"]).NotTo(BeNil(), "Index document text should not be nil")
111111
docID := indexDoc["doc_id"].(string)
112112

113-
searchQuerySuccess := "KAITO is an operator that automates the AI/ML model inference or tuning workload in a Kubernetes cluster"
113+
searchQuerySuccess := "Kaito is an operator that automates the AI/ML model inference or tuning workload in a Kubernetes cluster"
114114
err = createAndValidateQueryPod(ragengineObj, searchQuerySuccess, true)
115115
Expect(err).NotTo(HaveOccurred(), "Failed to create and validate QueryPod")
116116

@@ -176,7 +176,7 @@ var _ = Describe("RAGEngine", func() {
176176
Expect(indexDoc["text"]).NotTo(BeNil(), "Index document text should not be nil")
177177
docID := indexDoc["doc_id"].(string)
178178

179-
searchQuerySuccess := "KAITO is an operator that automates the AI/ML model inference or tuning workload in a Kubernetes cluster"
179+
searchQuerySuccess := "Kaito is an operator that automates the AI/ML model inference or tuning workload in a Kubernetes cluster"
180180
err = createAndValidateQueryPod(ragengineObj, searchQuerySuccess, false)
181181
Expect(err).NotTo(HaveOccurred(), "Failed to create and validate QueryPod")
182182

@@ -243,7 +243,7 @@ var _ = Describe("RAGEngine", func() {
243243
Expect(indexDoc["text"]).NotTo(BeNil(), "Index document text should not be nil")
244244
docID := indexDoc["doc_id"].(string)
245245

246-
searchQuerySuccess := "KAITO is an operator that automates the AI/ML model inference or tuning workload in a Kubernetes cluster"
246+
searchQuerySuccess := "Kaito is an operator that automates the AI/ML model inference or tuning workload in a Kubernetes cluster"
247247
err = createAndValidateQueryPod(ragengineObj, searchQuerySuccess, false)
248248
Expect(err).NotTo(HaveOccurred(), "Failed to create and validate QueryPod")
249249

@@ -306,11 +306,11 @@ var _ = Describe("RAGEngine", func() {
306306
Expect(indexDoc["text"]).NotTo(BeNil(), "Index document text should not be nil")
307307
docID := indexDoc["doc_id"].(string)
308308

309-
searchQuerySuccess := "KAITO is an operator that automates the AI/ML model inference or tuning workload in a Kubernetes cluster"
309+
searchQuerySuccess := "Kaito is an operator that automates the AI/ML model inference or tuning workload in a Kubernetes cluster"
310310
err = createAndValidateQueryChatMessagesPod(ragengineObj, searchQuerySuccess, false)
311311
Expect(err).NotTo(HaveOccurred(), "Failed to create and validate QueryChatMessagesPod")
312312

313-
persistLogSuccess := "Successfully persisted index KAITO"
313+
persistLogSuccess := "Successfully persisted index kaito"
314314
err = createAndValidatePersistPod(ragengineObj, persistLogSuccess)
315315
Expect(err).NotTo(HaveOccurred(), "Failed to create and validate PersistPod")
316316

@@ -736,7 +736,7 @@ func createAndValidateIndexPod(ragengineObj *kaitov1alpha1.RAGEngine) (map[strin
736736
"index_name": "kaito",
737737
"documents": [
738738
{
739-
"text": "KAITO is an operator that automates the AI/ML model inference or tuning workload in a Kubernetes cluster",
739+
"text": "Kaito is an operator that automates the AI/ML model inference or tuning workload in a Kubernetes cluster",
740740
"metadata": {"author": "kaito", "category": "kaito"}
741741
}
742742
]
@@ -745,7 +745,7 @@ func createAndValidateIndexPod(ragengineObj *kaitov1alpha1.RAGEngine) (map[strin
745745
PodName: fmt.Sprintf("index-pod-%s", utils.GenerateRandomString()),
746746
CurlCommand: curlCommand,
747747
Namespace: ragengineObj.ObjectMeta.Namespace,
748-
ExpectedLogContent: "KAITO is an operator that automates the AI/ML model inference or tuning workload in a Kubernetes cluster",
748+
ExpectedLogContent: "Kaito is an operator that automates the AI/ML model inference or tuning workload in a Kubernetes cluster",
749749
WaitForRunning: false,
750750
ParseJSONResponse: true,
751751
JSONStartMarker: "[",
@@ -761,7 +761,7 @@ func createAndValidateUpdateDocumentPod(ragengineObj *kaitov1alpha1.RAGEngine, d
761761
"documents": [
762762
{
763763
"doc_id": "` + docID + `",
764-
"text": "KAITO is an operator that automates the AI/ML model inference or tuning workload in a Kubernetes cluster. It now has RAG capabilities.",
764+
"text": "Kaito is an operator that automates the AI/ML model inference or tuning workload in a Kubernetes cluster. It now has RAG capabilities.",
765765
"metadata": {"author": "kaito", "category": "ai-ml"}
766766
}
767767
]

0 commit comments

Comments
 (0)