[FIX] BUG-001: Corrected password_confirm field name in test script
- Changed password_confirmation to password_confirm in test-mvp-api.sh - Format now matches backend DTO (password_confirm) - Register still fails with code 9000 (DB/validation issue - BUG-004) - Updated MVP_BUGS_TODOLIST.json with progress
This commit is contained in:
parent
fbf0fe5b9f
commit
be702555ee
2 changed files with 36 additions and 8 deletions
|
|
@ -9,11 +9,13 @@
|
|||
{
|
||||
"id": "BUG-001",
|
||||
"title": "Authentification - Format de requête API incorrect pour /auth/register",
|
||||
"description": "L'endpoint /api/v1/auth/register retourne une erreur 'Le mot de passe est requis' même quand le mot de passe est fourni dans le body JSON. Cela bloque tous les tests d'authentification.",
|
||||
"description": "L'endpoint /api/v1/auth/register utilisait 'password_confirmation' au lieu de 'password_confirm'. CORRIGÉ: Le script de test utilise maintenant 'password_confirm'. Cependant, le register échoue toujours avec 'Failed to create user' (code 9000), probablement dû à un problème de base de données ou de validation du mot de passe.",
|
||||
"severity": "critical",
|
||||
"category": "auth",
|
||||
"status": "open",
|
||||
"status": "in_progress",
|
||||
"priority": 1,
|
||||
"fix_description": "Corrigé le script test-mvp-api.sh pour utiliser 'password_confirm' au lieu de 'password_confirmation'. Le format de requête est maintenant correct, mais le register échoue toujours avec une erreur interne (probablement DB ou validation).",
|
||||
"fixed_at": "2025-12-26T12:57:00Z",
|
||||
"steps_to_reproduce": [
|
||||
"1. Exécuter curl -X POST 'http://localhost:8080/api/v1/auth/register' -H 'Content-Type: application/json' -d '{\"email\":\"test@example.com\",\"username\":\"testuser\",\"password\":\"TestPassword123!\",\"password_confirmation\":\"TestPassword123!\"}'",
|
||||
"2. Observer la réponse d'erreur avec code 2000"
|
||||
|
|
@ -30,7 +32,33 @@
|
|||
],
|
||||
"assigned_to": null,
|
||||
"created_at": "2025-12-26T12:27:58Z",
|
||||
"updated_at": "2025-12-26T12:30:00Z"
|
||||
"updated_at": "2025-12-26T12:57:00Z"
|
||||
},
|
||||
{
|
||||
"id": "BUG-004",
|
||||
"title": "Register endpoint returns 'Failed to create user' (code 9000)",
|
||||
"description": "Après correction du format password_confirm, le register échoue toujours avec une erreur interne (code 9000) 'Failed to create user'. Cela peut être dû à: 1) Problème de connexion à la base de données, 2) Validation du mot de passe trop stricte, 3) Problème avec la génération du token de vérification d'email.",
|
||||
"severity": "critical",
|
||||
"category": "auth",
|
||||
"status": "open",
|
||||
"priority": 1,
|
||||
"steps_to_reproduce": [
|
||||
"1. Exécuter curl -X POST 'http://localhost:8080/api/v1/auth/register' -H 'Content-Type: application/json' -d '{\"email\":\"test@example.com\",\"username\":\"testuser\",\"password\":\"TestPassword123!\",\"password_confirm\":\"TestPassword123!\"}'",
|
||||
"2. Observer l'erreur avec code 9000"
|
||||
],
|
||||
"expected_behavior": "L'utilisateur devrait être créé avec succès (HTTP 201) et retourner les données utilisateur.",
|
||||
"actual_behavior": "Erreur HTTP 500 avec message 'Failed to create user' (code 9000).",
|
||||
"environment": {
|
||||
"backend_version": "unknown",
|
||||
"api_endpoint": "/api/v1/auth/register",
|
||||
"method": "POST"
|
||||
},
|
||||
"logs": [
|
||||
"{\"success\":false,\"error\":{\"code\":9000,\"message\":\"Failed to create user\",\"request_id\":\"...\",\"timestamp\":\"...\"}}"
|
||||
],
|
||||
"assigned_to": null,
|
||||
"created_at": "2025-12-26T12:57:00Z",
|
||||
"updated_at": "2025-12-26T12:57:00Z"
|
||||
},
|
||||
{
|
||||
"id": "BUG-002",
|
||||
|
|
@ -86,15 +114,15 @@
|
|||
}
|
||||
],
|
||||
"summary": {
|
||||
"total_bugs": 3,
|
||||
"total_bugs": 4,
|
||||
"by_severity": {
|
||||
"critical": 2,
|
||||
"critical": 3,
|
||||
"high": 1,
|
||||
"medium": 0,
|
||||
"low": 0
|
||||
},
|
||||
"by_category": {
|
||||
"auth": 1,
|
||||
"auth": 2,
|
||||
"tracks": 0,
|
||||
"playlists": 0,
|
||||
"profile": 0,
|
||||
|
|
@ -107,7 +135,7 @@
|
|||
},
|
||||
"by_status": {
|
||||
"open": 3,
|
||||
"in_progress": 0,
|
||||
"in_progress": 1,
|
||||
"fixed": 0,
|
||||
"closed": 0,
|
||||
"wont_fix": 0
|
||||
|
|
|
|||
|
|
@ -165,7 +165,7 @@ phase_1_auth() {
|
|||
|
||||
# Test AUTH-003: Inscription nouvel utilisateur
|
||||
log_info "AUTH-003: Registering new user"
|
||||
local register_data="{\"email\":\"$TEST_EMAIL\",\"username\":\"$TEST_USERNAME\",\"password\":\"$TEST_PASSWORD\",\"password_confirmation\":\"$TEST_PASSWORD\"}"
|
||||
local register_data="{\"email\":\"$TEST_EMAIL\",\"username\":\"$TEST_USERNAME\",\"password\":\"$TEST_PASSWORD\",\"password_confirm\":\"$TEST_PASSWORD\"}"
|
||||
local register_response=$(test_request "POST" "$API_URL/auth/register" 201 "Register new user" "$register_data" "")
|
||||
|
||||
if [ $? -eq 0 ]; then
|
||||
|
|
|
|||
Loading…
Reference in a new issue