Add sys import to test files and remove obsolete integration tests
Some checks failed
API Endpoint Tests / test-api-endpoints (push) Successful in 9s
Blockchain Synchronization Verification / sync-verification (push) Failing after 1s
CLI Tests / test-cli (push) Failing after 3s
Documentation Validation / validate-docs (push) Successful in 6s
Documentation Validation / validate-policies-strict (push) Successful in 2s
Integration Tests / test-service-integration (push) Successful in 40s
Multi-Node Blockchain Health Monitoring / health-check (push) Successful in 1s
P2P Network Verification / p2p-verification (push) Successful in 2s
Production Tests / Production Integration Tests (push) Successful in 21s
Python Tests / test-python (push) Successful in 13s
Security Scanning / security-scan (push) Failing after 46s
Smart Contract Tests / test-solidity (map[name:aitbc-token path:packages/solidity/aitbc-token]) (push) Successful in 17s
Smart Contract Tests / lint-solidity (push) Successful in 10s

- Add sys import to 29 test files across agent-coordinator, blockchain-event-bridge, blockchain-node, and coordinator-api
- Remove apps/blockchain-event-bridge/tests/test_integration.py (obsolete bridge integration tests)
- Remove apps/coordinator-api/tests/test_integration.py (obsolete API integration tests)
- Implement GPU registration in marketplace_gpu.py with GPURegistry model persistence
This commit is contained in:
aitbc
2026-04-23 16:43:17 +02:00
parent b8b1454573
commit e60cc3226c
134 changed files with 14321 additions and 1873 deletions

View File

@@ -2,6 +2,7 @@
Tests for Agent Identity SDK
Unit tests for the Agent Identity client and models
"""
import sys
import pytest
import asyncio

View File

@@ -2,6 +2,7 @@
Tests for coordinator billing stubs: usage tracking, billing events, and tenant context.
Uses lightweight in-memory mocks to avoid PostgreSQL/UUID dependencies.
import sys
"""
import asyncio

View File

@@ -2,6 +2,7 @@
Comprehensive health endpoint tests for AITBC services
Tests both internal service health and external marketplace health endpoints.
import sys
"""
import json

View File

@@ -2,6 +2,7 @@
Basic integration tests for AITBC Coordinator API
"""
import sys
import pytest
from fastapi.testclient import TestClient
from unittest.mock import Mock, patch

View File

@@ -2,6 +2,7 @@
Unit tests for coordinator API metrics collection and alert delivery.
Tests MetricsCollector, AlertDispatcher, and build_live_metrics_payload
without requiring full app startup or database.
import sys
"""
import asyncio

View File

@@ -2,6 +2,7 @@
Env vars (set any that you want to exercise):
import sys
For optional endpoints:
EXPLORER_API_URL # e.g., http://127.0.0.1:8000/v1/explorer/blocks/head
MARKET_STATS_URL # e.g., http://127.0.0.1:8000/v1/marketplace/stats

View File

@@ -2,6 +2,7 @@
Tests the end-to-end flow:
1. Client submits a job with ZK proof requirement
import sys
2. Miner completes the job and generates a receipt
3. Receipt is hashed and a ZK proof is generated (simulated)
4. Proof is verified via the coordinator's confidential endpoint