Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests: ensure fresh epoch for expiration rest gw tests #923

Merged
merged 1 commit into from
Dec 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions pytest_tests/tests/services/rest_gate/test_rest_gate_new.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
"""
Expand Down Expand Up @@ -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(
Expand Down Expand Up @@ -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(
Expand Down
Loading