Skip to content

Commit 87708d6

Browse files
committed
Merge remote-tracking branch 'upstream/main' into chunk-prio
2 parents a4075c6 + f17ae57 commit 87708d6

22 files changed

Lines changed: 1019 additions & 803 deletions

File tree

dev-tools/mcp-mock-server/test_mock_mcp_server.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
import time
1515
import urllib.request
1616
import urllib.error
17-
from typing import Any
17+
from typing import Any, Optional
1818

1919
import pytest
2020

@@ -76,8 +76,8 @@ def mock_server() -> Any:
7676
def make_request(
7777
url: str,
7878
method: str = "GET",
79-
data: dict[str, Any] | None = None,
80-
headers: dict[str, str] | None = None,
79+
data: Optional[dict[str, Any]] = None,
80+
headers: Optional[dict[str, str]] = None,
8181
use_https: bool = False,
8282
) -> tuple[int, dict[str, Any] | str]:
8383
"""Make HTTP request and return status code and response."""

docs/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,5 +68,7 @@ See the full documentation at [`../README.md`](../README.md) or browse sub-pages
6868

6969
[Testing](https://lightspeed-core.github.io/lightspeed-stack/testing.html)
7070

71+
[End-to-End Tests Guide](https://lightspeed-core.github.io/lightspeed-stack/e2e_testing.html)
72+
7173
[List of e2e scenarios](https://lightspeed-core.github.io/lightspeed-stack/e2e_scenarios.html)
7274

docs/e2e_scenarios.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,15 +102,20 @@
102102
* Check if the OpenAPI endpoint works as expected
103103
* Check if info endpoint is working
104104
* Check if info endpoint reports error when llama-stack connection is not working
105-
* Check if models endpoint is working
106-
* Check if models endpoint reports error when llama-stack is unreachable
107105
* Check if shields endpoint is working
108106
* Check if shields endpoint reports error when llama-stack is unreachable
109107
* Check if tools endpoint is working
110108
* Check if tools endpoint reports error when llama-stack is unreachable
111109
* Check if metrics endpoint is working
112110
* Check if MCP client auth options endpoint is working
113111

112+
## [`models.feature`](https://github.com/lightspeed-core/lightspeed-stack/blob/main/tests/e2e/features/models.feature)
113+
114+
* Check if models endpoint is working
115+
* Check if models endpoint reports error when llama-stack is unreachable
116+
* Check if models can be filtered
117+
* Check if filtering can return empty list of models
118+
114119
## [`query.feature`](https://github.com/lightspeed-core/lightspeed-stack/blob/main/tests/e2e/features/query.feature)
115120

116121
* Check if LLM responds properly to restrictive system prompt to sent question with different system prompt

docs/e2e_testing.md

Lines changed: 360 additions & 0 deletions
Large diffs are not rendered by default.

docs/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,5 +72,7 @@ Lightspeed Core Stack (LCS) is an AI powered assistant that provides answers to
7272

7373
[Testing](https://lightspeed-core.github.io/lightspeed-stack/testing.html)
7474

75+
[End-to-End Tests Guide](https://lightspeed-core.github.io/lightspeed-stack/e2e_testing.html)
76+
7577
[List of e2e scenarios](https://lightspeed-core.github.io/lightspeed-stack/e2e_scenarios.html)
7678

0 commit comments

Comments
 (0)