Skip to content

Commit

Permalink
Change E_REJECTED to E_ARGUMENT in CheckIfDestructionIsAllowed safegu…
Browse files Browse the repository at this point in the history
…ard (#1672)
  • Loading branch information
SvartMetal authored and Mikhail Montsev committed Jul 25, 2024
1 parent 03586de commit d98480d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ NProto::TError TDestroyVolumeActor::CheckIfDestructionIsAllowed() const
);
if (!allowed) {
return MakeError(
E_REJECTED,
E_ARGUMENT,
TStringBuilder() << "DiskId: " << DiskId
<< ", only disks with specific id prefixes are allowed to be"
<< " deleted");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ Y_UNIT_TEST_SUITE(TServiceDestroyTest)
service.SendDestroyVolumeRequest("without_prefix");
{
auto response = service.RecvDestroyVolumeResponse();
UNIT_ASSERT_VALUES_EQUAL(E_REJECTED, response->GetStatus());
UNIT_ASSERT_VALUES_EQUAL(E_ARGUMENT, response->GetStatus());
}

service.SendDestroyVolumeRequest("with_prefix");
Expand Down

0 comments on commit d98480d

Please sign in to comment.