Commit Graph

7 Commits

Author SHA1 Message Date
aitbc
f6900d6bf6 Add pytest test files for microservices
- 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
2026-04-30 11:57:09 +02:00
aitbc
1315884dec Add comprehensive testing documentation 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
2026-04-30 11:50:20 +02:00
aitbc
9227d22653 Update marketplace-service README with migration status
- 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)
2026-04-30 11:30:45 +02:00
aitbc
1727d552b6 Add database setup script for marketplace service
- 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
2026-04-30 11:30:02 +02:00
aitbc
a5fb454100 Extract marketplace services to 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
2026-04-30 11:29:27 +02:00
aitbc
b7e5289e15 Extract marketplace domain models to marketplace-service
- 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
2026-04-30 11:28:01 +02:00
aitbc
e15477dc55 Create marketplace-service foundation
- 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)
2026-04-30 11:26:46 +02:00