[BE] Create backup for non-existing DB cluster, returning "Created 201" response

Description

User impact:

User is getting no error on sending wrong/non-existing DB cluster name for creating backup.

Steps to reproduce:

  1. Run Everest BE

  2. Register K8 Cluster

  3. Create backup storage location

  4. Create backup by passing wrong db cluster name (https://jira.percona.com/browse/EVEREST-233)

Actual result:

returning 201 created

Expected result:

return error status code with error message "Could not find DB Cluster"

Environment

None

Attachments

2

Activity

Yusaf Awan October 5, 2023 at 10:04 AM

Tested and verified.

Oksana Grishchenko September 13, 2023 at 1:44 PM
Edited

What's changed:

in case the DatabaseCluster with the given name does not exist, the API returns error 

"DatabaseCluster '<name>' is not found"

The change is applied to the:

  • backups creation API  

  • restores creation API

  • restores update API

Diogo Recharte August 31, 2023 at 4:17 PM

I don't think this is a blocker for 0.2.0 because the UI won't allow this to happen. Can we move it to 0.3.0?

Done

Details

Assignee

Reporter

Sprint

Fix versions

Affects versions

Priority

Smart Checklist

Created August 30, 2023 at 9:29 AM
Updated October 5, 2023 at 10:04 AM
Resolved October 5, 2023 at 10:04 AM