Skip to content

Commit

Permalink
Reorganized tests to match spec layout.
Browse files Browse the repository at this point in the history
Signed-off-by: dblock <dblock@amazon.com>
  • Loading branch information
dblock committed Jun 10, 2024
1 parent 362c90c commit e0bebb3
Showing 3 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion tests/index.yaml → tests/_core/index.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$schema: ../json_schemas/test_story.schema.yaml
$schema: ../../json_schemas/test_story.schema.yaml

skip: false
description: Test endpoints relevant the lifecycle of an index, from creation to deletion.
2 changes: 1 addition & 1 deletion tests/info.yaml → tests/_core/info.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

$schema: ../json_schemas/test_story.schema.yaml
$schema: ../../json_schemas/test_story.schema.yaml

skip: false
description: Test root endpoint.
Original file line number Diff line number Diff line change
@@ -1,32 +1,31 @@
$schema: ../json_schemas/test_story.schema.yaml
$schema: ../../../../json_schemas/test_story.schema.yaml

skip: false
description: |
This test story checks that we can create an ingest pipeline with a text
embedding processor
Test the creation of an ingest pipeline with a text embedding processor.
epilogues:
- path: /_ingest/pipeline/books_pipeline
method: DELETE
status: [200, 404]
chapters:
- synopsis: Create ingest pipeline for text embedding
- synopsis: Create ingest pipeline for text embedding.
path: /_ingest/pipeline/{id}
method: PUT
parameters:
id: books_pipeline
request_body:
payload:
description: "Extracts text from field and embeds it"
description: Extracts text from field and embeds it.
processors:
- text_embedding:
model_id: "text-embedding-model"
model_id: text-embedding-model
field_map:
text: "passage_embedding"
text: passage_embedding
response:
status: 200
payload:
acknowledged: true
- synopsis: Query created pipeline
- synopsis: Query created pipeline.
path: /_ingest/pipeline/{id}
method: GET
parameters:

0 comments on commit e0bebb3

Please sign in to comment.