fix: correct JSON key from backup_name to name in config backup tests

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
2026-06-26 17:45:55 +02:00
parent c6f01ca985
commit ae368a0d8e
2 changed files with 12 additions and 15 deletions

View File

@@ -1,11 +1,3 @@
### Task 5: Fix `Config Backup List` API Test
**Test Result:** FAIL — Expected status: 200, got 201 (caused by preceding POST returning 200 instead of 201)
**File:** `tests/robot/api/config.robot` and `src/server/api/config.py`
**Instructions:**
Same root cause as Task 4. The test first calls POST `/api/config/backups` expecting 201, but gets 200. Fix `create_backup` in `src/server/api/config.py` to return status 201. Once that is fixed, this test will pass.
---
### Task 6: Fix `Config Backup Restore` API Test
**Test Result:** FAIL — Expected status: 200, got 201 (caused by preceding POST returning 200 instead of 201)
**File:** `tests/robot/api/config.robot` and `src/server/api/config.py`