mirror of
https://github.com/nspcc-dev/neofs-testlib.git
synced 2026-03-01 04:29:25 +00:00
Incorrect parsing of response in the test. #12
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @tatiana-nspcc on GitHub (Dec 28, 2023).
Originally assigned to: @MaxGelbakhiani on GitHub.
When I run the test "Test Put over HTTP/Curl, Get over HTTP/Curl for large object" or "Test Put/Get over HTTP using Curl utility," it incorrectly parses the response. This one is OK:
Current Behavior
This response is marked as wrong:
I've got a message:
Expected Behavior
An extra space or an absent space shouldn't cause the test to fail.
Possible Solution
Perhaps it would be better to properly parse the JSON response here.:
nspcc-dev/neofs-testcases@ef04906bea/robot/resources/lib/python_keywords/http_gate.py (L243)Context
I encountered this issue while testing the rest-gw.
@roman-khimov commented on GitHub (Jan 15, 2024):
JSON is JSON and must be treated accordingly.
@MaxGelbakhiani commented on GitHub (Jan 22, 2024):
The problem was caused by the output format. output might contain something like:
So I've added options to extract JSON out of it, including multiline cases, which I believe caused @tatiana-nspcc 's issue. And added JSON parsing as well