Use neofs-adm to tick epoch

This is a more convenient way to tick epoch when we have multiple moprh blockchain nodes.
Approach that we use in devenv would require multi-signed transaction which is cumbersome.

Signed-off-by: Vladimir Domnich <v.domnich@yadro.com>
This commit is contained in:
Vladimir Domnich 2022-07-13 18:30:57 +04:00
parent cbaecc60dc
commit ab85389d59
4 changed files with 35 additions and 16 deletions

View file

@ -54,7 +54,6 @@ def crate_container_and_pick_node(prepare_wallet_and_deposit):
@pytest.fixture
@pytest.mark.skip(reason="docker API works only for devenv")
def start_node_if_needed():
yield
try:
@ -168,7 +167,6 @@ def test_placement_policy_negative(prepare_wallet_and_deposit, placement_rule, e
@pytest.mark.node_mgmt
@pytest.mark.skip(reason="docker API works only for devenv")
@allure.title('NeoFS object replication on node failover')
def test_replication(prepare_wallet_and_deposit, start_node_if_needed):
"""

View file

@ -60,14 +60,16 @@ def test_object_api(prepare_wallet_and_deposit, request, object_size):
with allure.step('Get range/range hash'):
range_hash = get_range_hash(**wallet_cid, oid=oids[0], bearer_token='', range_cut=range_cut)
assert get_file_hash(file_path, range_len) == range_hash, 'Expected range hash is correct'
assert get_file_hash(file_path, range_len) == range_hash, \
f'Expected range hash to match {range_cut} slice of file payload'
range_hash = get_range_hash(**wallet_cid, oid=oids[1], bearer_token='', range_cut=range_cut)
assert get_file_hash(file_path, range_len) == range_hash, 'Expected range hash is correct'
assert get_file_hash(file_path, range_len) == range_hash, \
f'Expected range hash to match {range_cut} slice of file payload'
_, got_content = get_range(**wallet_cid, oid=oids[1], bearer='', range_cut=range_cut)
assert get_file_content(file_path, content_len=range_len, mode='rb') == got_content, \
'Expected range content is correct'
_, range_content = get_range(**wallet_cid, oid=oids[1], bearer='', range_cut=range_cut)
assert get_file_content(file_path, content_len=range_len, mode='rb') == range_content, \
f'Expected range content to match {range_cut} slice of file payload'
with allure.step('Search objects'):
search_object(**wallet_cid, expected_objects_list=oids)