Skip to content

Commit 9e5423c

Browse files
Merge pull request #2649 from onmete/update-expected-response
OLS-2099: Update expected response
2 parents 329c481 + e4d25ca commit 9e5423c

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

tests/e2e/test_api.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -464,9 +464,8 @@ def test_azure_entra_id():
464464
json_response = response.json()
465465

466466
# checking a few major information from response
467-
assert "Kubernetes is" in json_response["response"]
468467
assert re.search(
469-
r"orchestration (tool|system|platform|engine)",
468+
r"kubernetes|openshift",
470469
json_response["response"],
471470
re.IGNORECASE,
472471
)

tests/e2e/test_query_endpoint.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,9 +222,8 @@ def test_valid_question() -> None:
222222

223223
# checking a few major information from response
224224
assert json_response["conversation_id"] == cid
225-
assert "Kubernetes is" in json_response["response"]
226225
assert re.search(
227-
r"orchestration (tool|system|platform|engine)",
226+
r"kubernetes|openshift",
228227
json_response["response"],
229228
re.IGNORECASE,
230229
)

tests/e2e/test_streaming_query_endpoint.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,9 +209,8 @@ def test_valid_question() -> None:
209209

210210
response_utils.check_content_type(response, constants.MEDIA_TYPE_TEXT)
211211

212-
assert "Kubernetes is" in response.text
213212
assert re.search(
214-
r"orchestration (tool|system|platform|engine)",
213+
r"kubernetes|openshift",
215214
response.text,
216215
re.IGNORECASE,
217216
)

0 commit comments

Comments
 (0)