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

tests: add node attrs output to node mgmt tests #916

Merged
merged 1 commit into from
Dec 26, 2024
Merged
Show file tree
Hide file tree
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
2 changes: 2 additions & 0 deletions neofs-testlib/neofs_testlib/env/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -1021,6 +1021,7 @@ def delete_data(self):
state_file=self.state_file,
pprof_address=self.pprof_address,
prometheus_address=self.prometheus_address,
attrs=self.node_attrs,
)
time.sleep(1)

Expand All @@ -1043,6 +1044,7 @@ def delete_metadata(self):
state_file=self.state_file,
pprof_address=self.pprof_address,
prometheus_address=self.prometheus_address,
attrs=self.node_attrs,
)
time.sleep(1)

Expand Down
7 changes: 7 additions & 0 deletions pytest_tests/tests/network/test_node_management.py
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,13 @@ def validate_object_copies(
self, wallet: str, placement_rule: str, file_path: str, expected_copies: int
) -> set[int]:
endpoint = self.neofs_env.sn_rpc

for sn in self.neofs_env.storage_nodes:
self.neofs_env.neofs_cli(sn.cli_config).netmap.nodeinfo(
rpc_endpoint=sn.endpoint,
wallet=wallet,
)

cid = create_container(wallet, rule=placement_rule, basic_acl=PUBLIC_ACL, shell=self.shell, endpoint=endpoint)
got_policy = placement_policy_from_container(
get_container(wallet, cid, json_mode=False, shell=self.shell, endpoint=endpoint)
Expand Down
Loading