Skip to content

Commit

Permalink
tests: add missing node attrs to sn deployment
Browse files Browse the repository at this point in the history
In 8e3f0a4 node attrs were moved to
config file instead of env vars. But there are couple places where config
was rewritten. This commit ensures config is updated with node attrs.

Signed-off-by: Evgeniy Zayats <[email protected]>
  • Loading branch information
Evgeniy Zayats committed Dec 26, 2024
1 parent cb5825d commit a7aaf90
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 a7aaf90

Please sign in to comment.