You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And I set the Authorization header to Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c
9
+
And REST API service prefix is /v1
10
+
And the Lightspeed stack configuration directory is "tests/e2e/configuration"
11
+
And The service uses the lightspeed-stack-auth-noop-token.yaml configuration
12
+
And The service is restarted
13
+
14
+
Scenario: List vector stores returns 200
15
+
When I access REST API endpoint "vector-stores" using HTTP GET method
16
+
Then The status code of the response is 200
17
+
And Content type of response is set to "application/json"
18
+
19
+
Scenario: Create vector store with empty body returns 422
20
+
When I access REST API endpoint "vector-stores" using HTTP POST method
21
+
"""
22
+
{}
23
+
"""
24
+
Then The status code of the response is 422
25
+
26
+
Scenario: Create vector store with extra fields returns 422
27
+
When I access REST API endpoint "vector-stores" using HTTP POST method
28
+
"""
29
+
{"name": "test-store", "unknown_field": "value"}
30
+
"""
31
+
Then The status code of the response is 422
32
+
33
+
Scenario: Update vector store with empty body returns 422
34
+
When I access REST API endpoint "vector-stores/nonexistent-id" using HTTP PUT method
35
+
"""
36
+
{}
37
+
"""
38
+
Then The status code of the response is 422
39
+
40
+
Scenario: Add file to vector store with empty body returns 422
41
+
When I access REST API endpoint "vector-stores/nonexistent-id/files" using HTTP POST method
0 commit comments