-
Notifications
You must be signed in to change notification settings - Fork 18
tests: adjust searchv2 tests to validate raw objects #1264
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
closes #1252 Signed-off-by: Evgeniy Zayats <[email protected]>
Signed-off-by: Evgeniy Zayats <[email protected]>
roman-khimov
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- I'm not sure why raw mode is not a separate test, search is search.
- Returned data is not checked properly.
- Ruff.
| endpoint=neofs_env.sn_rpc, | ||
| range_cut="0:1", | ||
| ) | ||
| get_object(default_wallet.path, cid, oid, shell=neofs_env.shell, endpoint=neofs_env.sn_rpc, is_raw=True) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But what does it check? If node is to return complete object in the result you won't notice.
| rpc_endpoint=neofs_env.sn_rpc, | ||
| wallet=default_wallet.path, | ||
| cid=cid, | ||
| rule = "EC 3/1 CBF 1" if neofs_env.inner_ring_nodes[0].chain_meta_data else "REP 3 CBF 3" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dont get it, why EC/REP depends on chain meta data?
| endpoint=neofs_env.sn_rpc, | ||
| rule=rule, | ||
| attributes={"__NEOFS__METAINFO_CONSISTENCY": "strict"} | ||
| if neofs_env.inner_ring_nodes[0].chain_meta_data |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is it a common way to write python if with a single line? froze me a little to understand why metainfo is always strict
closes #1252