Wave 6: Integration tests, golden tests, index invariant tests, diff command (bd-rex, bd-2gp, bd-1ck)

This commit is contained in:
teernisse
2026-02-12 14:58:25 -05:00
parent 346fef9135
commit 398311ca4c
27 changed files with 2122 additions and 172 deletions

110
tests/fixtures/golden/search.json vendored Normal file
View File

@@ -0,0 +1,110 @@
{
"data": {
"results": [
{
"matches": [
{
"field": "path",
"snippet": "/pets"
},
{
"field": "summary",
"snippet": "List all pets"
}
],
"method": "GET",
"name": "/pets",
"rank": 1,
"score": 3000,
"summary": "List all pets",
"type": "endpoint"
},
{
"matches": [
{
"field": "path",
"snippet": "/pets"
},
{
"field": "summary",
"snippet": "Create a pet"
}
],
"method": "POST",
"name": "/pets",
"rank": 2,
"score": 3000,
"summary": "Create a pet",
"type": "endpoint"
},
{
"matches": [
{
"field": "path",
"snippet": "/pets/{petId}"
},
{
"field": "summary",
"snippet": "Get a pet by ID"
}
],
"method": "GET",
"name": "/pets/{petId}",
"rank": 3,
"score": 3000,
"summary": "Get a pet by ID",
"type": "endpoint"
},
{
"matches": [
{
"field": "path",
"snippet": "/pets/{petId}"
},
{
"field": "summary",
"snippet": "Delete a pet"
}
],
"method": "DELETE",
"name": "/pets/{petId}",
"rank": 4,
"score": 3000,
"summary": "Delete a pet",
"type": "endpoint"
},
{
"matches": [
{
"field": "schema_name",
"snippet": "NewPet"
}
],
"name": "NewPet",
"rank": 5,
"score": 1600,
"type": "schema"
},
{
"matches": [
{
"field": "schema_name",
"snippet": "Pet"
}
],
"name": "Pet",
"rank": 6,
"score": 1600,
"type": "schema"
}
],
"total": 6
},
"meta": {
"command": "search",
"duration_ms": 0,
"schema_version": 1,
"tool_version": "MASKED"
},
"ok": true
}