Skip to content

Commit 1909b2b

Browse files
committed
E2E tests aligned
1 parent c0a7481 commit 1909b2b

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

tests/e2e/features/conversation_cache_v2.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ Feature: Conversation Cache V2 API tests
183183
And The returned conversation details have expected conversation_id
184184
And The body of the response, ignoring the "conversation_id" field, is the following
185185
"""
186-
{"success": true, "response": "Conversation deleted successfully"}
186+
{"success": true, "response": "Conversation deleted successfully", "deleted": true}
187187
"""
188188
When I use REST API conversation endpoint with conversation_id from above using HTTP GET method
189189
Then The status code of the response is 404
@@ -203,7 +203,7 @@ Feature: Conversation Cache V2 API tests
203203
Then The status code of the response is 200
204204
And The body of the response, ignoring the "conversation_id" field, is the following
205205
"""
206-
{"success": true, "response": "Conversation cannot be deleted"}
206+
{"success": true, "response": "Conversation not found", "deleted": false}
207207
"""
208208

209209
# ====================================================================

tests/e2e/features/conversations.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ Feature: conversations endpoint API tests
107107
And The returned conversation details have expected conversation_id
108108
And The body of the response, ignoring the "conversation_id" field, is the following
109109
"""
110-
{"success": true, "response": "Conversation deleted successfully"}
110+
{"success": true, "response": "Conversation deleted successfully", "deleted": true}
111111
"""
112112
And I use REST API conversation endpoint with conversation_id from above using HTTP GET method
113113
Then The status code of the response is 404
@@ -123,5 +123,5 @@ Feature: conversations endpoint API tests
123123
Then The status code of the response is 200
124124
And The body of the response, ignoring the "conversation_id" field, is the following
125125
"""
126-
{"success": true, "response": "Conversation cannot be deleted"}
126+
{"success": true, "response": "Conversation not found", "deleted": false}
127127
"""

tests/e2e/features/llama_stack_disrupted.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ Feature: Llama Stack connection disrupted
205205
And The returned conversation details have expected conversation_id
206206
And The body of the response, ignoring the "conversation_id" field, is the following
207207
"""
208-
{"success": true, "response": "Conversation deleted successfully"}
208+
{"success": true, "response": "Conversation deleted successfully", "deleted": true}
209209
"""
210210
When I use REST API conversation endpoint with conversation_id from above using HTTP GET method
211211
Then The status code of the response is 404

0 commit comments

Comments
 (0)