- Panneau AM : validation NIR alignée API, date d’agrément requise côté app, capacité 1–10, n° agrément + date sur une ligne, ville/pays formatés au blur. - Widget RegistrationPhotoSlot (cadre, croix) partagé avec les cartes enfant. - AuthService : MIME PNG/JPEG pour la photo ; payload date_agrement. - Scripts register-am-dubois / mansouri ; chemins tests/ressources/photos ; doc test-data + seed ; smoke curl inscription AM. Made-with: Cursor
32 lines
1.1 KiB
Bash
Executable File
32 lines
1.1 KiB
Bash
Executable File
#!/bin/bash
|
|
# Inscription AM complète : jeux officiels alignés sur database/seed/03_seed_test_data.sql
|
|
# node tests/scripts/register-am-dubois-test.mjs [BASE_URL]
|
|
# node tests/scripts/register-am-mansouri-test.mjs [BASE_URL]
|
|
#
|
|
# Smoke curl (email + NIR jetables, hors seed — ne pas mélanger avec Marie / Fatima) :
|
|
# Usage: ./scripts/test-register-am.sh [BASE_URL]
|
|
# Exemple: ./scripts/test-register-am.sh http://localhost:3000/api/v1
|
|
|
|
BASE_URL="${1:-http://localhost:3000/api/v1}"
|
|
echo "POST $BASE_URL/auth/register/am (profil smoke, pas les AM du seed)"
|
|
echo "---"
|
|
|
|
curl -s -w "\n\nHTTP %{http_code}\n" -X POST "$BASE_URL/auth/register/am" \
|
|
-H "Content-Type: application/json" \
|
|
-d '{
|
|
"email": "smoke.am.curl@ptits-pas.fr",
|
|
"prenom": "Smoke",
|
|
"nom": "CURLTEST",
|
|
"telephone": "0612345678",
|
|
"adresse": "1 rue Smoke",
|
|
"code_postal": "95870",
|
|
"ville": "Bezons",
|
|
"consentement_photo": false,
|
|
"date_naissance": "1986-12-15",
|
|
"nir": "186127500100279",
|
|
"numero_agrement": "AGR-SMOKE-CURL-001",
|
|
"capacite_accueil": 3,
|
|
"acceptation_cgu": true,
|
|
"acceptation_privacy": true
|
|
}'
|