Skip to content

Commit

Permalink
tests: Drop 0x00 bytes from the REST gw test
Browse files Browse the repository at this point in the history
closes #955

Signed-off-by: Evgeniy Zayats <zayatsevgeniy@nspcc.io>
  • Loading branch information
Evgeniy Zayats committed Feb 24, 2025
1 parent 78c1a96 commit b53c158
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pytest_tests/tests/services/rest_gate/test_rest_gate_new.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,8 +341,8 @@ def test_put_rest_get_rest(self, complex_object_size, simple_object_size, gw_par
value
"""
},
{"\x00" * 8: "simple_obj_filename"},
{"Some key": "\x00" * 8},
{"\x01" * 8: "simple_obj_filename"},
{"Some key": "\x01" * 8},
],
ids=[
"simple",
Expand All @@ -353,8 +353,8 @@ def test_put_rest_get_rest(self, complex_object_size, simple_object_size, gw_par
"linebreak in key",
"linebreaks in key and value",
"other linebreaks in key and value",
"zero bytes key",
"zero bytes value",
"not-so-zero bytes key",
"not-so-zero bytes value",
],
)
def test_put_rest_get_rest_with_headers(self, attributes: dict, simple_object_size, gw_params):
Expand Down

0 comments on commit b53c158

Please sign in to comment.