Skip to content

Commit 179ce62

Browse files
committed
rebase main
Signed-off-by: zane-neo <zaniu@amazon.com>
1 parent 86d193f commit 179ce62

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/test/java/org/opensearch/neuralsearch/processor/TextEmbeddingProcessorIT.java

+6-1
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,11 @@ private String uploadTextEmbeddingModel(String requestBody) throws Exception {
245245
return registerModelGroupAndUploadModel(requestBody);
246246
}
247247

248+
private String uploadTextEmbeddingModel() throws Exception {
249+
String requestBody = Files.readString(Path.of(classLoader.getResource("processor/UploadModelRequestBody.json").toURI()));
250+
return registerModelGroupAndUploadModel(requestBody);
251+
}
252+
248253
private void createTextEmbeddingIndex() throws Exception {
249254
createIndexWithConfiguration(
250255
INDEX_NAME,
@@ -262,7 +267,7 @@ public void testAsymmetricTextEmbeddingProcessor() throws Exception {
262267
loadModel(modelId);
263268
createPipelineProcessor(modelId, PIPELINE_NAME, ProcessorType.TEXT_EMBEDDING);
264269
createTextEmbeddingIndex();
265-
ingestDocument();
270+
ingestDocument(INGEST_DOC1, null);
266271
assertEquals(1, getDocCount(INDEX_NAME));
267272
} finally {
268273
wipeOfTestResources(INDEX_NAME, PIPELINE_NAME, modelId, null);

0 commit comments

Comments
 (0)