Structure: - control-plane/: Registries, SIMCO directives, CI/CD templates - projects/: Gamilit, ERP-Suite, Trading-Platform, Betting-Analytics - shared/: Libs catalog, knowledge-base Key features: - Centralized port, domain, database, and service registries - 23 SIMCO directives + 6 fundamental principles - NEXUS agent profiles with delegation rules - Validation scripts for workspace integrity - Dockerfiles for all services - Path aliases for quick reference 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
27 lines
940 B
Bash
Executable File
27 lines
940 B
Bash
Executable File
#!/bin/bash
|
|
# Script de prueba para endpoint PUT /admin/users/:id
|
|
# FE-P1-010: Validación de actualización de usuarios
|
|
|
|
BASE_URL="http://localhost:3006/api/v1"
|
|
ADMIN_TOKEN=""
|
|
|
|
echo "==================================================================="
|
|
echo "TEST: PUT /admin/users/:id - Actualización de Usuario"
|
|
echo "==================================================================="
|
|
|
|
# Test 1: Update user basic fields
|
|
echo -e "\n1. Actualizar campos básicos de usuario"
|
|
curl -X PUT "${BASE_URL}/admin/users/test-user-id" \
|
|
-H "Authorization: Bearer ${ADMIN_TOKEN}" \
|
|
-H "Content-Type: application/json" \
|
|
-d '{
|
|
"name": "Usuario Actualizado",
|
|
"email": "updated@example.com",
|
|
"role": "student",
|
|
"status": "active"
|
|
}' | jq .
|
|
|
|
echo -e "\n\n==================================================================="
|
|
echo "Pruebas completadas"
|
|
echo "==================================================================="
|