Skip to content
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

Fix assertion for test_static_session_search, fixes #610 #611

Merged
merged 1 commit into from
Aug 24, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,6 @@ def test_static_session_range(

@allure.title("Validate static session with search operation")
@pytest.mark.static_session
@pytest.mark.skip(reason="https://github.com/nspcc-dev/neofs-node/issues/2030")
@pytest.mark.nspcc_dev__neofs_node__issue_2030
def test_static_session_search(
self,
user_wallet: WalletFile,
Expand All @@ -243,7 +241,7 @@ def test_static_session_search(
allure.dynamic.title(f"Validate static session with search for {request.node.callspec.id}")

cid = storage_objects[0].cid
expected_object_ids = [storage_object.oid for storage_object in storage_objects[0:2]]
expected_object_ids = [storage_object.oid for storage_object in storage_objects]
actual_object_ids = search_object(
user_wallet.path,
cid,
Expand All @@ -252,7 +250,7 @@ def test_static_session_search(
session=static_sessions[ObjectVerb.SEARCH],
root=True,
)
assert expected_object_ids == actual_object_ids
assert set(expected_object_ids) == set(actual_object_ids)

@allure.title("Validate static session with object id not in session")
@pytest.mark.static_session
Expand Down
Loading