From c37fedc04c8a9877af217a579c6538ca858164ef Mon Sep 17 00:00:00 2001 From: Ekaterina Chernitsyna Date: Mon, 13 Nov 2023 20:24:46 +0300 Subject: [PATCH] discard_dynamic_title --- .../services/http_gate/test_http_gate.py | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/pytest_tests/testsuites/services/http_gate/test_http_gate.py b/pytest_tests/testsuites/services/http_gate/test_http_gate.py index b5a7ae6..02646ec 100644 --- a/pytest_tests/testsuites/services/http_gate/test_http_gate.py +++ b/pytest_tests/testsuites/services/http_gate/test_http_gate.py @@ -160,19 +160,17 @@ class TestHttpPut(ClusterTestBase): name="download by attributes", ) @pytest.mark.skip("Skipped due to deprecated PUT via http") - @allure.title("Put over HTTP, Get over HTTP with header") + @allure.title("Put over HTTP, Get over HTTP with {id} header") @pytest.mark.parametrize( - "attributes", + "attributes,id", [ - {"fileName": "simple_obj_filename"}, - {"file-Name": "simple obj filename"}, - {"cat%jpeg": "cat%jpeg"}, + ({"fileName": "simple_obj_filename"}, "simple"), + ({"file-Name": "simple obj filename"}, "hyphen"), + ({"cat%jpeg": "cat%jpeg"}, "percent"), ], ids=["simple", "hyphen", "percent"], ) - def test_put_http_get_http_with_headers( - self, attributes: dict, simple_object_size: ObjectSize, request: pytest.FixtureRequest - ): + def test_put_http_get_http_with_headers(self, attributes: dict, simple_object_size: ObjectSize, id: str): """ Test that object can be downloaded using different attributes in HTTP header. @@ -185,7 +183,6 @@ class TestHttpPut(ClusterTestBase): Expected result: Hashes must be the same. """ - allure.dynamic.title(f"Put over HTTP, Get over HTTP with {request.node.callspec.id} header") cid = create_container( self.wallet, shell=self.shell,