Skip to content

Align p3 HTTP/SDK tests with current backend behavior#12563

Merged
KevinHuSh merged 20 commits intoinfiniflow:mainfrom
6ba3i:HTTP_and_SDK_p3_test_updates
Jan 13, 2026
Merged

Align p3 HTTP/SDK tests with current backend behavior#12563
KevinHuSh merged 20 commits intoinfiniflow:mainfrom
6ba3i:HTTP_and_SDK_p3_test_updates

Conversation

@6ba3i
Copy link
Contributor

@6ba3i 6ba3i commented Jan 12, 2026

What problem does this PR solve?

Updates pre-existing HTTP API and SDK tests to align with current backend behavior (validation errors, 404s, and schema defaults). This ensures p3 regression coverage is accurate without changing production code.

Type of change

  • Other (please describe): align p3 HTTP/SDK tests with current backend behavior

@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. 🧪 test Pull requests that update test cases. labels Jan 12, 2026
assert res["message"] == expected_message
url = f"{HOST_ADDRESS}{CHUNK_API_URL}".format(dataset_id=dataset_id, document_id=document_id)
res = requests.post(url=url, headers=HEADERS, auth=HttpApiAuth, json={"content": "a"})
if res.status_code == 404:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ideally, the RAGFlow service should never return a 404 status code. If it does, it means something is wrong with the service itself.

@asiroliu asiroliu added the ci Continue Integration label Jan 13, 2026
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Jan 13, 2026
@asiroliu asiroliu marked this pull request as draft January 13, 2026 10:53
@asiroliu asiroliu marked this pull request as ready for review January 13, 2026 10:53
@KevinHuSh KevinHuSh merged commit 0795616 into infiniflow:main Jan 13, 2026
1 check passed
@6ba3i 6ba3i deleted the HTTP_and_SDK_p3_test_updates branch January 13, 2026 11:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Continue Integration lgtm This PR has been approved by a maintainer size:L This PR changes 100-499 lines, ignoring generated files. 🧪 test Pull requests that update test cases.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants