Files
aitbc/dev/tests/test_live_mc.sh
aitbc 40ddf89b9c
Some checks failed
API Endpoint Tests / test-api-endpoints (push) Waiting to run
Documentation Validation / validate-docs (push) Waiting to run
CLI Tests / test-cli (push) Has been cancelled
Security Scanning / security-scan (push) Has been cancelled
Integration Tests / test-service-integration (push) Has been cancelled
Python Tests / test-python (push) Has been cancelled
docs: update CLI command syntax across workflow documentation
- Updated marketplace commands: `marketplace --action` → `market` subcommands
- Updated wallet commands: direct flags → `wallet` subcommands
- Updated AI commands: `ai-submit`, `ai-status` → `ai submit`, `ai status`
- Updated blockchain commands: `chain` → `blockchain info`
- Standardized command structure across all workflow files
- Affected files: MULTI_NODE_MASTER_INDEX.md, TEST_MASTER_INDEX.md, multi-node-blockchain-marketplace
2026-04-08 12:10:21 +02:00

35 lines
1.5 KiB
Bash
Executable File

#!/bin/bash
# Define the proxy ports and internal container ports
# Coordinator proxies: localhost:8000 -> aitbc:8000, localhost:8015 -> aitbc1:8015
# However, the node RPC is on port 8082 in the container and proxied differently.
# For direct access, we'll ssh into the containers to test the RPC directly on 8082.
echo "=== Testing Multi-Chain Support on Live System ==="
echo ""
CHAINS=("ait-devnet" "ait-testnet" "ait-healthchain")
for CHAIN in "${CHAINS[@]}"; do
echo "=== Testing Chain: $CHAIN ==="
echo "1. Fetching head block from aitbc (Primary Node):"
ssh aitbc-cascade "curl -s \"http://127.0.0.1:8082/rpc/head?chain_id=$CHAIN\" | jq ."
echo "2. Fetching head block from aitbc1 (Secondary Node):"
ssh aitbc1-cascade "curl -s \"http://127.0.0.1:8082/rpc/head?chain_id=$CHAIN\" | jq ."
echo "3. Submitting a test transaction to $CHAIN on aitbc..."
ssh aitbc-cascade "curl -s -X POST \"http://127.0.0.1:8082/rpc/sendTx?chain_id=$CHAIN\" -H \"Content-Type: application/json\" -d '{\"sender\":\"test_user\",\"recipient\":\"test_recipient\",\"payload\":{\"data\":\"multi-chain test\"},\"nonce\":1,\"fee\":0,\"type\":\"TRANSFER\"}'" | jq .
echo "Waiting for blocks to process..."
sleep 3
echo "4. Checking updated head block on aitbc1 (Cross-Site Sync Test)..."
ssh aitbc1-cascade "curl -s \"http://127.0.0.1:8082/rpc/head?chain_id=$CHAIN\" | jq ."
echo "--------------------------------------------------------"
echo ""
done
echo "✅ Multi-chain live testing complete."