Add tests with empty map #22
No reviewers
Labels
No labels
P0
P1
P2
P3
good first issue
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-testcases#22
Loading…
Reference in a new issue
No description provided.
Delete branch "anikeev-yadro/frostfs-testcases:anikeev/add_dataloss_test"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Add new tests that cover the dataloss in empty map situation
https://github.com/nspcc-dev/neofs-node/issues/2267
Signed-off-by: anikeev-yadro a.anikeev@yadro.com
0972a0e651
to2d2c9043ca
2d2c9043ca
to44a94de520
@ -214,0 +263,4 @@
remote_shell = alive_node.host.get_shell()
node_netmap_keys = list(map(StorageNode.get_wallet_public_key, remove_nodes))
logger.info(f"Nodes netmap keys is: {' '.join(node_netmap_keys)}")
"keys are"
fixed
@ -214,0 +233,4 @@
), f"Expected node with key {node_netmap_key} to be NOT in network map"
@allure.step("Wait for node {node} is ready")
def wait_for_node_to_be_ready(node: StorageNode) -> None:
We already have such method here:
https://git.frostfs.info/TrueCloudLab/frostfs-testcases/src/branch/master/pytest_tests/testsuites/network/test_node_management.py#L455
method moved from test_node_management.py to node_management.py
@ -111,3 +112,3 @@
"""
pass
def get_remote_config_path(self) -> str:
Looks like it should be moved to NodeBase class (every node have config)
deleted. It has already in NodeBase class.
@ -176,0 +325,4 @@
check_objects_in_bucket(self.s3_client, bucket, bucket_objects)
@allure.step("Return all nodes to cluster")
def return_nodes_after_stop(self, return_nodes = None) -> None:
Also need to ensure that nodes will be returned in case if test fails (fixture which will call this method after test end)
added tear down procedure to both tests
44a94de520
toa5a169c29f
@ -114,0 +127,4 @@
config = yaml.safe_load(contents)
value = config["netmap_cleaner"]["threshold"]
#netmap_cleaner:
нам нужно это?
deleted
a5a169c29f
to75abf78244
@ -22,3 +54,3 @@
@allure.step("Return all stopped hosts")
@pytest.fixture(scope="function", autouse=True)
@pytest.fixture(scope="class", autouse=True)
Why change to class?
this is my mistake. Reverted back
75abf78244
toa07538296b
a07538296b
toeb464f422c