Skip to content

Commit 39c4791

Browse files
committed
Update tests per feedback and test failures
1 parent 0d2d85b commit 39c4791

File tree

2 files changed

+3
-28
lines changed

2 files changed

+3
-28
lines changed

tests/e2e/features/feedback.feature

Lines changed: 3 additions & 22 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

@@ -247,25 +247,9 @@ Feature: feedback endpoint API tests
247247
Given The system is in default state
248248
And A new conversation is initialized
249249
And I remove the auth header
250-
When I submit the following feedback for the conversation created before
251-
"""
252250
{
253-
"llm_response": "Sample Response",
254-
"sentiment": -1,
255-
"user_feedback": "Not satisfied with the response quality",
256-
"user_question": "Sample Question"
251+
"detail": "No Authorization header found"
257252
}
258-
"""
259-
Then The status code of the response is 401
260-
And The body of the response is the following
261-
"""
262-
{
263-
"detail": {
264-
"cause": "Missing or invalid credentials provided by client",
265-
"response": "Unauthorized"
266-
}
267-
}
268-
"""
269253

270254
Scenario: Check if update feedback status endpoint is not working when not authorized
271255
Given The system is in default state
@@ -275,10 +259,7 @@ Feature: feedback endpoint API tests
275259
And The body of the response is the following
276260
"""
277261
{
278-
"detail": {
279-
"cause": "Missing or invalid credentials provided by client",
280-
"response": "Unauthorized"
281-
}
262+
"detail": "No Authorization header found"
282263
}
283264
"""
284265

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)