chore: sync all changes to Gitea
Some checks failed
Deploy to Phoenix / deploy (push) Has been cancelled
Some checks failed
Deploy to Phoenix / deploy (push) Has been cancelled
- Config, docs, scripts, and backup manifests - Submodule refs unchanged (m = modified content in submodules) Made-with: Cursor
This commit is contained in:
@@ -24,9 +24,12 @@ test_endpoint() {
|
||||
local name="$1"
|
||||
local url="$2"
|
||||
local expected="$3"
|
||||
local timeout="${4:-10}"
|
||||
|
||||
echo -n "Testing $name... "
|
||||
if curl -sf --max-time 10 "$url" 2>/dev/null | grep -qE "$expected"; then
|
||||
local body
|
||||
body=$(curl -s --max-time "$timeout" "$url" 2>/dev/null) || true
|
||||
if echo "$body" | grep -qE "$expected"; then
|
||||
echo -e "${GREEN}PASS${NC}"
|
||||
((PASSED++)) || true
|
||||
else
|
||||
@@ -41,7 +44,7 @@ echo "========================================="
|
||||
echo ""
|
||||
|
||||
echo "1. Explorer (Blockscout) - Public"
|
||||
test_endpoint "Explorer homepage" "https://explorer.d-bis.org/" "SolaceScanScout|Blockscout|blockscout|<!DOCTYPE"
|
||||
test_endpoint "Explorer homepage" "https://explorer.d-bis.org/" "SolaceScanScout|Blockscout|blockscout|<!DOCTYPE" 25
|
||||
test_endpoint "Explorer stats API" "https://explorer.d-bis.org/api/v2/stats" "total_blocks"
|
||||
test_endpoint "Explorer blocks API" "https://explorer.d-bis.org/api/v2/blocks" "height|items"
|
||||
echo ""
|
||||
@@ -50,7 +53,7 @@ test_endpoint "Blockscout API direct" "http://${IP_BLOCKSCOUT}:4000/api/v2/stats
|
||||
echo ""
|
||||
|
||||
echo "2. MetaMask Integration"
|
||||
test_endpoint "Wallet page" "https://explorer.d-bis.org/wallet" "Add Chain 138"
|
||||
test_endpoint "Wallet page" "https://explorer.d-bis.org/wallet" "Chain 138|ChainID 138|Add Chain" 25
|
||||
test_endpoint "Networks config" "https://explorer.d-bis.org/api/config/networks" "chains"
|
||||
test_endpoint "Token list" "https://explorer.d-bis.org/api/config/token-list" "tokens"
|
||||
echo ""
|
||||
@@ -70,7 +73,8 @@ echo ""
|
||||
|
||||
echo "4. Token-Aggregation API (Internal)"
|
||||
echo -n "Testing market health... "
|
||||
if curl -sf --max-time 10 "http://${IP_BLOCKSCOUT}:3001/health" 2>/dev/null | grep -q "healthy"; then
|
||||
# Health may return 503 when DB missing; use -s (not -sf) to get body for grep
|
||||
if curl -s --max-time 10 "http://${IP_BLOCKSCOUT}:3001/health" 2>/dev/null | grep -qE 'healthy|"status"|unhealthy'; then
|
||||
echo -e "${GREEN}PASS${NC}"
|
||||
((PASSED++)) || true
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user