Skip to content

Commit

Permalink
tests: additional check to test_object_put_get_attributes (#623)
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-khimov authored Sep 4, 2023
2 parents 1b8a0b3 + 835f6d9 commit eedfba4
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions pytest_tests/testsuites/services/http_gate/test_http_object.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,3 +125,15 @@ def test_object_put_get_attributes(self, object_size: int):
http_request_path=request,
endpoint=self.cluster.default_http_gate_endpoint,
)

with allure.step(
"[Negative] Try to get object with invalid attribute [get_by_attribute/$CID/chapter1/war]"
):
with pytest.raises(Exception, match=".*object not found.*"):
get_object_by_attr_and_verify_hashes(
oid=oid,
file_name=file_path,
cid=cid,
attrs={obj_key1: obj_value2},
endpoint=self.cluster.default_http_gate_endpoint,
)

0 comments on commit eedfba4

Please sign in to comment.