Files
orangecat/scripts/test/test-profile-save.sh
Your Name 38cc4669d8 chore: comprehensive codebase cleanup and organization
- Move 100+ files from root to proper directories
  - Migration scripts → scripts/db/
  - SQL files → supabase/sql/archive/
  - Test/debug scripts → scripts/test/
  - Documentation → docs/archive/ (organized by category)
  - Shell scripts → scripts/ (organized by category)

- Fix test organization
  - Remove nested tests/unit/tests/unit/ structure
  - Consolidate test files to proper locations

- Update documentation references
  - Update migration script paths in workflow docs
  - Update scripts/README.md with moved file notes

- Delete placeholder files
  - Remove empty placeholder.ipynb

- Result: Root directory now contains only essential config files
- Result: Professional, organized codebase structure
- Result: All files in proper locations per project standards

See docs/CLEANUP_COMPLETE.md for full details.
2025-12-21 22:57:54 +01:00

25 lines
691 B
Bash
Executable File

#!/bin/bash
# Test profile save with authentication
# First, let's see if we can access the profile endpoint
echo "Testing profile save..."
# Get auth cookies from browser (you'll need to be logged in)
# For now, let's just trigger a request to see server logs
curl -X PUT http://localhost:3000/api/profile \
-H "Content-Type: application/json" \
-d '{
"username": "testuser",
"name": "Test User",
"bio": "Test bio",
"location": "Zurich, Switzerland",
"website": "https://example.com",
"contact_email": "test@example.com"
}' \
-w "\nHTTP Status: %{http_code}\n" \
-s | jq '.' || cat
echo ""
echo "Check server logs above for detailed validation errors"