def test_unavailable_blocks_node3(self, sandbox: Sandbox):
     savepoint = int(sandbox.client(3).get_savepoint())
     assert utils.get_block_at_level(sandbox.client(3), savepoint)
     # We must fail while requesting blocks before savepoint
     for i in range(1, savepoint):
         with utils.assert_run_failure(EXPECTED_COMMAND_ERROR):
             utils.get_block_metadata_at_level(sandbox.client(3), i)
 def test_unavailable_blocks_node3(self, sandbox: Sandbox):
     savepoint = int(sandbox.client(3).get_savepoint())
     assert utils.get_block_at_level(sandbox.client(3), savepoint)
     # We must fail while requesting blocks before savepoint
     for i in range(1, savepoint):
         utils.get_block_metadata_at_level(sandbox.client(3),
                                           i,
                                           expect_failure=True)
Пример #3
0
 def test_rolling_consistency_3(self, sandbox, nodes_legacy_store):
     # pylint: disable=unused-argument
     for i in range(EXPECTED_ROLLING_CABOOSE, EXPECTED_CHECKPOINT):
         with utils.assert_run_failure(EXPECTED_COMMAND_ERROR):
             utils.get_block_metadata_at_level(sandbox.client(3), i)
 def test_unavailable_blocks(self, sandbox: Sandbox, session: dict):
     # We must fail while requesting those pruned blocks
     for i in range(1, session['snapshot_level']):
         with pytest.raises(Exception):
             utils.get_block_metadata_at_level(sandbox.client(2), i)
 def test_unavailable_blocks_node2(self, sandbox: Sandbox, session: dict):
     # We must fail while requesting those pruned blocks
     for i in range(1, session['snapshot_1_head_level'] - 1):
         with utils.assert_run_failure(EXPECTED_COMMAND_ERROR):
             utils.get_block_metadata_at_level(sandbox.client(2), i)
 def test_unavailable_blocks_node2(self, sandbox: Sandbox, session: dict):
     # We must fail while requesting those pruned blocks
     for i in range(1, session['snapshot_1_head_level'] - 1):
         utils.get_block_metadata_at_level(sandbox.client(2),
                                           i,
                                           expect_failure=True)
Пример #7
0
 def test_full_consistency_2(self, sandbox, nodes_legacy_store):
     # pylint: disable=unused-argument
     for i in range(1, EXPECTED_CHECKPOINT):
         utils.get_block_metadata_at_level(sandbox.client(2),
                                           i,
                                           expect_failure=True)