Skip to content

Commit 977825e

Browse files
committed
Update tests per feedback and test failures
1 parent 0d2d85b commit 977825e

File tree

2 files changed

+3
-16
lines changed

2 files changed

+3
-16
lines changed

tests/e2e/features/feedback.feature

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ Feature: feedback endpoint API tests
108108
And The body of the response is the following
109109
"""
110110
{
111-
"detail": "Forbidden: User is not authorized to access this resource"
111+
"detail": "Forbidden: Feedback is disabled"
112112
}
113113
"""
114114

@@ -246,7 +246,6 @@ Feature: feedback endpoint API tests
246246
Scenario: Check if feedback endpoint is not working when not authorized
247247
Given The system is in default state
248248
And A new conversation is initialized
249-
And I remove the auth header
250249
When I submit the following feedback for the conversation created before
251250
"""
252251
{
@@ -260,10 +259,7 @@ Feature: feedback endpoint API tests
260259
And The body of the response is the following
261260
"""
262261
{
263-
"detail": {
264-
"cause": "Missing or invalid credentials provided by client",
265-
"response": "Unauthorized"
266-
}
262+
"detail": "No Authorization header found"
267263
}
268264
"""
269265

@@ -275,10 +271,7 @@ Feature: feedback endpoint API tests
275271
And The body of the response is the following
276272
"""
277273
{
278-
"detail": {
279-
"cause": "Missing or invalid credentials provided by client",
280-
"response": "Unauthorized"
281-
}
274+
"detail": "No Authorization header found"
282275
}
283276
"""
284277

tests/e2e/features/query.feature

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,6 @@ Feature: Query endpoint API tests
6060
"""
6161

6262
Scenario: Check if LLM responds to sent question with error when authenticated with invalid token
63-
Given The service is started locally
64-
And REST API service prefix is /v1
6563
Given The system is in default state
6664
And I set the Authorization header to Bearer invalid
6765
When I use "query" to ask question with authorization header
@@ -75,8 +73,6 @@ Feature: Query endpoint API tests
7573
"""
7674

7775
Scenario: Check if LLM responds to sent question with error when model does not exist
78-
Given The service is started locally
79-
And REST API service prefix is /v1
8076
Given The system is in default state
8177
And I set the Authorization header to Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6Ikpva
8278
When I use "query" to ask question with authorization header
@@ -88,8 +84,6 @@ Feature: Query endpoint API tests
8884

8985

9086
Scenario: Check if LLM responds to sent question with error when attempting to access conversation
91-
Given The service is started locally
92-
And REST API service prefix is /v1
9387
Given The system is in default state
9488
And I set the Authorization header to Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6Ikpva
9589
When I use "query" to ask question with authorization header

0 commit comments

Comments
 (0)