diff --git a/pytest_tests/tests/services/rest_gate/test_rest_gate_new.py b/pytest_tests/tests/services/rest_gate/test_rest_gate_new.py index f4535cb2a..ea21d34ea 100644 --- a/pytest_tests/tests/services/rest_gate/test_rest_gate_new.py +++ b/pytest_tests/tests/services/rest_gate/test_rest_gate_new.py @@ -47,6 +47,11 @@ def gw_params(self): "wallet_path": self.neofs_env.rest_gw.wallet.path, } + @pytest.fixture + def fresh_epoch(self): + self.ensure_fresh_epoch() + yield + @allure.title("Test Put over gRPC, Get over REST") def test_put_grpc_get_rest(self, complex_object_size, simple_object_size, gw_endpoint): """ @@ -392,7 +397,7 @@ def test_put_rest_get_rest_with_headers(self, attributes: dict, simple_object_si ) @allure.title("Test Expiration-Epoch in HTTP header") - def test_expiration_epoch_in_rest(self, simple_object_size, gw_params): + def test_expiration_epoch_in_rest(self, simple_object_size, gw_params, fresh_epoch): endpoint = self.neofs_env.sn_rpc cid = create_container( @@ -441,7 +446,7 @@ def test_expiration_epoch_in_rest(self, simple_object_size, gw_params): get_via_rest_gate(cid=cid, oid=oid, endpoint=gw_params["endpoint"]) @allure.title("Test other Expiration-Epoch settings in HTTP header") - def test_expiration_headers_in_rest(self, simple_object_size, gw_params): + def test_expiration_headers_in_rest(self, simple_object_size, gw_params, fresh_epoch): endpoint = self.neofs_env.sn_rpc cid = create_container(