forked from lightspeed-core/lightspeed-stack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmodels.feature
More file actions
33 lines (27 loc) · 1.3 KB
/
Copy pathmodels.feature
File metadata and controls
33 lines (27 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
@e2e_group_2
Feature: Models endpoint tests
Background:
Given The service is started locally
And The system is in default state
And REST API service prefix is /v1
And the Lightspeed stack configuration directory is "tests/e2e/configuration"
And The service uses the lightspeed-stack.yaml configuration
And The service is restarted
Scenario: Check if models endpoint is working
Given The system is in default state
When I access REST API endpoint "models" using HTTP GET method
Then The status code of the response is 200
And The body of the response has proper model structure
And The models list should not be empty
Scenario: Check if models can be filtered
Given The system is in default state
When I retrieve list of available models with type set to "llm"
Then The status code of the response is 200
And The body of the response has proper model structure
And The models list should not be empty
And The models list should contain only models of type "llm"
Scenario: Check if filtering can return empty list of models
Given The system is in default state
When I retrieve list of available models with type set to "xyzzy"
Then The status code of the response is 200
And The models list should be empty