30 lines
1.6 KiB
Plaintext
30 lines
1.6 KiB
Plaintext
[1;33m⚠️ jq not found - JSON response parsing will be limited[0m
|
||
[0;34mℹ️ 🚀 Starting Magic Building API Test Suite[0m
|
||
[0;34mℹ️ Server URL: http://localhost:3000[0m
|
||
[0;34mℹ️ Test log: ./logs/test-api-20250915_010051.log[0m
|
||
[0;34mℹ️ Testing health check endpoint...[0m
|
||
[0;31m❌ Health check failed (HTTP 000)[0m
|
||
[0;34mℹ️ Testing API info endpoint...[0m
|
||
[0;31m❌ API info endpoint failed (HTTP 000)[0m
|
||
[0;34mℹ️ Testing text-to-image generation...[0m
|
||
[0;31m❌ Text-to-image generation failed (HTTP 000)[0m
|
||
2025-09-15 01:00:51 - Error response:
|
||
[0;34mℹ️ Testing validation error handling...[0m
|
||
[0;31m❌ Missing prompt validation failed (HTTP 000)[0m
|
||
[0;31m❌ Missing filename validation failed (HTTP 000)[0m
|
||
[1;33m⚠️ Filename sanitization test had unexpected result (HTTP 000)[0m
|
||
[0;34mℹ️ Testing 404 error handling...[0m
|
||
[0;31m❌ 404 error handling failed (HTTP 000)[0m
|
||
[0;34mℹ️ Creating test reference image...[0m
|
||
[1;33m⚠️ ImageMagick not available, skipping reference image test[0m
|
||
[0;34mℹ️ Testing concurrent requests (performance test)...[0m
|
||
2025-09-15 01:00:51 - Concurrent request 1 failed (HTTP 000)
|
||
2025-09-15 01:00:51 - Concurrent request 3 failed (HTTP 000)
|
||
2025-09-15 01:00:51 - Concurrent request 2 failed (HTTP 000)
|
||
[0;32m✅ Concurrent requests test completed[0m
|
||
[0;34mℹ️ 📊 Test Results Summary[0m
|
||
[0;32m✅ Passed: 3/6 tests[0m
|
||
[1;33m⚠️ ⚠️ Some tests failed. Check the logs for details.[0m
|
||
[0;34mℹ️ Generated images are in: src/results/[0m
|
||
[0;34mℹ️ Test logs saved to: ./logs/test-api-20250915_010051.log[0m
|