- Created test files for GPU service (tests/test_main.py)
- Created test files for Marketplace service (tests/test_main.py)
- Created test files for Trading service (tests/test_main.py)
- Created test files for Governance service (tests/test_main.py)
- Created integration tests for API gateway (tests/test_gateway.py)
- Added pytest dependencies to all service pyproject.toml files
- Created TEST_COVERAGE_REQUIREMENTS.md documenting coverage targets and best practices
This completes Phase 8: Create pytest test files for microservices
- Created MICROSERVICES_TESTING_GUIDE.md with detailed testing procedures
- Updated GPU service README with detailed testing steps and expected responses
- Updated Marketplace service README with detailed testing steps and expected responses
- Updated Trading service README with detailed testing steps and expected responses
- Updated Governance service README with detailed testing steps and expected responses
- Updated API gateway README with detailed testing steps and routing tests
This completes Phase 7b: Update service READMEs with detailed testing steps
- Added database setup command using setup-database.sql
- Added testing instructions for end-to-end testing with gateway
- Added migration status section documenting completed and remaining tasks
- Documented that marketplace service is very large (~130K lines) and full removal requires careful coordination
This completes Phase 4.4: Extract Marketplace Service (foundation created, full removal from coordinator-api requires additional work)
- Created scripts/setup-database.sql to create aitbc_marketplace database
- Database configured with aitbc_marketplace user and privileges
This completes Phase 4.4d: Setup separate database for marketplace service
- Created MarketplaceService with basic CRUD operations
- Created storage.py for database session management
- Updated main.py to include database initialization and marketplace endpoints:
- GET /v1/marketplace/offers
- GET /v1/marketplace/offers/{offer_id}
- POST /v1/marketplace/offers
- GET /v1/marketplace/bids
- POST /v1/marketplace/bids
- GET /v1/marketplace/analytics
This completes Phase 4.4c: Extract marketplace services
- Created domain directory with marketplace and global_marketplace models
- Extracted MarketplaceOffer and MarketplaceBid from coordinator-api
- Extracted global marketplace models:
- MarketplaceStatus and RegionStatus enums
- MarketplaceRegion
- GlobalMarketplaceConfig
- GlobalMarketplaceOffer
- GlobalMarketplaceTransaction
- Updated domain __init__.py to export all models
This completes Phase 4.4b: Extract marketplace domain models
- Created marketplace-service application structure
- Added pyproject.toml with FastAPI, SQLModel, asyncpg, and aitbc-core dependencies
- Implemented main.py with basic marketplace service structure
- Created systemd service file for marketplace-service (port 8102)
- Added README.md with installation and configuration instructions
This starts Phase 4.4: Extract Marketplace Service (foundation created)