Files
floci/src/test/java
Allen Sanborn a7df271bb3 fix(backup): return HTTP 400 for ResourceNotFoundException (#5794)
* fix(backup): return HTTP 400 for ResourceNotFoundException

AWS Backup documents ResourceNotFoundException as HTTP 400 across the
API. BackupService threw it with 404 for missing vaults, plans,
selections, jobs, recovery points and resource ARNs, while the
sub-resource throws already used 400. Use 400 everywhere.

* test(backup): expect 400 for a vault deleted with its CloudFormation stack

BackupVaultCfnIntegrationTest still asserted the old 404 after
ResourceNotFoundException moved to HTTP 400.

* test(backup): cover 400 for missing selection, recovery point and tagged resource

The ResourceNotFoundException status change reached selection, recovery
point and resource-ARN lookups that no test exercised. Assert 400 for
GetBackupSelection/DeleteBackupSelection (missing, and under the wrong
plan), DescribeRecoveryPoint/DeleteRecoveryPoint, and ListTags/
TagResource/UntagResource on a missing ARN. Align the CFN provisioner
fixture to 400.
2026-10-16 11:10:32 -04:00
..