Some checks failed
Cross-Node Transaction Testing / transaction-test (push) Successful in 19s
Deploy to Testnet / deploy-testnet (push) Successful in 1m10s
Multi-Node Stress Testing / stress-test (push) Successful in 2s
Node Failover Simulation / failover-test (push) Successful in 1s
Python Tests / test-python (push) Failing after 7s
Deploy to Testnet / notify-deployment (push) Successful in 1s
- Fixed bare except clauses in dev/examples/wallet.py - Fixed bare except clauses in dev/gpu/gpu_exchange_status.py (2 clauses) - Fixed bare except clauses in dev/gpu/gpu_miner_host.py - Fixed bare except clauses in dev/onboarding/auto-onboard.py - Fixed bare except clauses in dev/onboarding/onboarding-monitor.py - Fixed bare except clauses in dev/scripts/dev_heartbeat.py - Fixed bare except clauses in tests/integration/test_blockchain_simple.py (3 clauses) - Fixed bare except clause in tests/integration/test_full_workflow.py - Fixed bare except clause in tests/load_test.py - Fixed bare except clause in tests/security/test_confidential_transactions.py - Fixed bare except clause in tests/verification/test_coordinator.py - All bare except clauses now use proper Exception handling - Addresses remaining ruff E722 warnings in non-critical code
47 lines
1.3 KiB
Python
47 lines
1.3 KiB
Python
from locust import HttpUser, task, between
|
|
import json
|
|
|
|
class AITBCUser(HttpUser):
|
|
wait_time = between(1, 3)
|
|
|
|
def on_start(self):
|
|
# Setup test - check if blockchain RPC is available
|
|
self.client.get("/health")
|
|
|
|
@task(3)
|
|
def check_blockchain_health(self):
|
|
"""Check blockchain health endpoint."""
|
|
self.client.get("/health")
|
|
|
|
@task(2)
|
|
def get_blockchain_head(self):
|
|
"""Get current block head."""
|
|
self.client.get("/rpc/head")
|
|
|
|
@task(2)
|
|
def get_mempool_status(self):
|
|
"""Get mempool status."""
|
|
self.client.get("/rpc/mempool")
|
|
|
|
@task(1)
|
|
def get_blockchain_info(self):
|
|
"""Get blockchain information."""
|
|
self.client.get("/docs")
|
|
|
|
@task(1)
|
|
def test_transaction_submission(self):
|
|
"""Test transaction submission (will likely fail but tests endpoint)."""
|
|
try:
|
|
self.client.post("/rpc/transaction", json={
|
|
"from": "test-address",
|
|
"to": "test-address-2",
|
|
"amount": 1,
|
|
"fee": 10,
|
|
"nonce": 0,
|
|
"payload": "0x",
|
|
"chain_id": "ait-mainnet"
|
|
})
|
|
except Exception:
|
|
# Expected to fail due to invalid signature, but tests endpoint availability
|
|
pass
|