Skip to content

Commit 14b1227

Browse files
committed
More updated status codes in the tests
1 parent c5bcb25 commit 14b1227

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

tests/e2e/features/authorized_noop_token.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Feature: Authorized endpoint API tests for the noop-with-token authentication mo
1111
"""
1212
{"placeholder":"abc"}
1313
"""
14-
Then The status code of the response is 400
14+
Then The status code of the response is 401
1515
And The body of the response is the following
1616
"""
1717
{"detail": "No Authorization header found"}

tests/e2e/features/conversations.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Feature: conversations endpoint API tests
3434
And I store conversation details
3535
And I remove the auth header
3636
When I access REST API endpoint "conversations" using HTTP GET method
37-
Then The status code of the response is 400
37+
Then The status code of the response is 401
3838
And The body of the response is the following
3939
"""
4040
{
@@ -100,7 +100,7 @@ Feature: conversations endpoint API tests
100100
And I store conversation details
101101
And I remove the auth header
102102
When I use REST API conversation endpoint with conversation_id from above using HTTP GET method
103-
Then The status code of the response is 400
103+
Then The status code of the response is 401
104104
And The body of the response is the following
105105
"""
106106
{

tests/e2e/features/feedback.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ Feature: feedback endpoint API tests
256256
"user_question": "Sample Question"
257257
}
258258
"""
259-
Then The status code of the response is 400
259+
Then The status code of the response is 401
260260
And The body of the response is the following
261261
"""
262262
{
@@ -271,7 +271,7 @@ Feature: feedback endpoint API tests
271271
Given The system is in default state
272272
And I remove the auth header
273273
When The feedback is enabled
274-
Then The status code of the response is 400
274+
Then The status code of the response is 401
275275
And The body of the response is the following
276276
"""
277277
{

0 commit comments

Comments
 (0)