def test_import_and_reconstruct(self, sandbox: Sandbox, session: dict):
     n0_tmpdir = sandbox.node(0).node_dir
     file = f'{n0_tmpdir}/FILE.full'
     sandbox.add_node(1, snapshot=file, reconstruct=True)
     assert utils.check_level(sandbox.client(1), session['head_level'])
 def test_reconstruct_command(self, sandbox: Sandbox, session: dict):
     n0_tmpdir = sandbox.node(0).node_dir
     file = f'{n0_tmpdir}/FILE.full'
     sandbox.add_node(2, snapshot=file)
     assert utils.check_level(sandbox.client(2), session['head_level'])
Ejemplo n.º 3
0
 def test_level(self, sandbox: Sandbox):
     level = 4
     for client in sandbox.all_clients():
         assert utils.check_level(client, level)
Ejemplo n.º 4
0
 def test_check_level(self, sandbox: Sandbox):
     """All nodes are at level 6, head is either block A or B"""
     level = 6
     for client in sandbox.all_clients():
         assert utils.check_level(client, level)
 def test_sync_node3(self, sandbox: Sandbox, session: dict):
     assert utils.check_level(sandbox.client(3), session['head_level'])
     clear_cache(sandbox, 3)
 def test_import_before_reconstruct(self, sandbox: Sandbox, session: dict):
     n0_tmpdir = sandbox.node(0).node_dir
     file = f'{n0_tmpdir}/{SNAPSHOT_1}'
     sandbox.add_node(2, snapshot=file)
     assert utils.check_level(sandbox.client(2), session['head_level'])
 def test_all_level_c(self, sandbox):
     for client in sandbox.all_clients():
         assert utils.check_level(client, LEVEL_B)
 def test_level(self, sandbox):
     for i in GROUP1 + GROUP2:
         assert utils.check_level(sandbox.client(i), LEVEL_A)
 def test_group1_level_a(self, sandbox, session):
     for i in GROUP1:
         assert utils.check_level(sandbox.client(i), LEVEL_A)
     session['head_hash'] = sandbox.client(GROUP1[0]).get_head()['hash']
Ejemplo n.º 10
0
 def test_level(self, clients):
     level = 1
     for client in clients:
         assert utils.check_level(client, level)
Ejemplo n.º 11
0
 def test_group1_batch_1(self, sandbox, session):
     for i in GROUP1:
         assert utils.check_level(sandbox.client(i), session['head_level'])