Skip to content

Commit

Permalink
http_gate: Fix test_object2_can_be_get_by_attr (nspcc-dev#576)
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-khimov committed Jun 20, 2023
2 parents 61f81b8 + d808370 commit d2ce378
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
from helpers.storage_object_info import StorageObjectInfo
from steps.cluster_test_base import ClusterTestBase

OBJECT_ALREADY_REMOVED_ERROR = "object already removed"
logger = logging.getLogger("NeoLogger")


Expand Down Expand Up @@ -146,10 +145,11 @@ def test_object2_can_be_get_by_attr(
shell=self.shell,
endpoint=self.cluster.default_rpc_endpoint,
)
error_pattern = "404 Not Found"
try_to_get_object_and_expect_error(
cid=storage_object_2.cid,
oid=storage_object_2.oid,
error_pattern=OBJECT_ALREADY_REMOVED_ERROR,
error_pattern=error_pattern,
endpoint=self.cluster.default_http_gate_endpoint,
)
storage_objects_with_attributes.remove(storage_object_2)
Expand Down

0 comments on commit d2ce378

Please sign in to comment.