File tree Expand file tree Collapse file tree 2 files changed +14
-19
lines changed
Expand file tree Collapse file tree 2 files changed +14
-19
lines changed Original file line number Diff line number Diff line change @@ -29,24 +29,6 @@ Feature: Info tests
2929 {"detail": {"response": "Unable to connect to Llama Stack", "cause": "Connection error."}}
3030 """
3131
32- Scenario : Check if models endpoint is working
33- Given The system is in default state
34- When I access REST API endpoint "models" using HTTP GET method
35- Then The status code of the response is 200
36- And The body of the response has proper model structure
37-
38-
39- @skip-in-library-mode
40- Scenario : Check if models endpoint reports error when llama-stack is unreachable
41- Given The system is in default state
42- And The llama-stack connection is disrupted
43- When I access REST API endpoint "models" using HTTP GET method
44- Then The status code of the response is 503
45- And The body of the response is the following
46- """
47- {"detail": {"response": "Unable to connect to Llama Stack", "cause": "Connection error."}}
48- """
49-
5032 Scenario : Check if shields endpoint is working
5133 Given The system is in default state
5234 When I access REST API endpoint "shields" using HTTP GET method
Original file line number Diff line number Diff line change @@ -5,13 +5,26 @@ Feature: Models endpoint tests
55 Given The service is started locally
66 And REST API service prefix is /v1
77
8+
89 Scenario : Check if models endpoint is working
910 Given The system is in default state
10- When I retrieve list of available models
11+ When I access REST API endpoint " models" using HTTP GET method
1112 Then The status code of the response is 200
1213 And The body of the response has proper model structure
1314 And The models list should not be empty
1415
16+
17+ @skip-in-library-mode
18+ Scenario : Check if models endpoint reports error when llama-stack is unreachable
19+ Given The system is in default state
20+ And The llama-stack connection is disrupted
21+ When I access REST API endpoint "models" using HTTP GET method
22+ Then The status code of the response is 503
23+ And The body of the response is the following
24+ """
25+ {"detail": {"response": "Unable to connect to Llama Stack", "cause": "Connection error."}}
26+ """
27+
1528 Scenario : Check if models can be filtered
1629 Given The system is in default state
1730 When I retrieve list of available models with type set to "llm"
You can’t perform that action at this time.
0 commit comments