Skip to content

Commit

Permalink
tests: add node attrs output to node mgmt tests (#916)
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-khimov authored Dec 26, 2024
2 parents cb5825d + a7aaf90 commit 382eb1a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
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

0 comments on commit 382eb1a

Please sign in to comment.