LOT 1 - Optimizare script build -Instalare mono comanda
This commit is contained in:
parent
5380c3fc63
commit
42ff22bf85
127 changed files with 16163 additions and 532 deletions
41
ai_platform/modules/domain_check/test-api-complete.sh
Executable file
41
ai_platform/modules/domain_check/test-api-complete.sh
Executable file
|
|
@ -0,0 +1,41 @@
|
|||
#!/bin/bash
|
||||
|
||||
echo "=========================================="
|
||||
echo " DOMAIN-CHECK API - Complete Test Suite"
|
||||
echo "=========================================="
|
||||
echo ""
|
||||
|
||||
API="http://localhost:5000"
|
||||
|
||||
# Test 1: Health
|
||||
echo "✓ Test 1: Health Check"
|
||||
curl -s $API/health | python3 -m json.tool | head -10
|
||||
echo ""
|
||||
|
||||
# Test 2: Check with WHOIS
|
||||
echo "✓ Test 2: WHOIS Check - github.com"
|
||||
curl -s -X POST $API/api/v1/check \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{"domain": "github.com", "check_options": {"whois": true, "dns": false, "ssl": false}}' \
|
||||
| python3 -m json.tool | head -40
|
||||
echo ""
|
||||
|
||||
# Test 3: Check with DNS
|
||||
echo "✓ Test 3: DNS Check - google.com"
|
||||
curl -s -X POST $API/api/v1/check \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{"domain": "google.com", "check_options": {"whois": false, "dns": true, "ssl": false}}' \
|
||||
| python3 -m json.tool | grep -A 20 '"dns"'
|
||||
echo ""
|
||||
|
||||
# Test 4: Full check
|
||||
echo "✓ Test 4: Full Check (WHOIS + DNS) - facebook.com"
|
||||
curl -s -X POST $API/api/v1/check \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{"domain": "facebook.com", "check_options": {"whois": true, "dns": true, "ssl": false}}' \
|
||||
| python3 -m json.tool | head -50
|
||||
echo ""
|
||||
|
||||
echo "=========================================="
|
||||
echo " Tests Complete!"
|
||||
echo "=========================================="
|
||||
Loading…
Add table
Add a link
Reference in a new issue