test
This commit is contained in:
@@ -9,16 +9,24 @@ All AITBC API endpoints require authentication using API keys.
|
||||
|
||||
## Getting API Keys
|
||||
|
||||
### Production
|
||||
1. Visit the [AITBC Dashboard](https://dashboard.aitbc.io)
|
||||
2. Create an account or sign in
|
||||
3. Navigate to API Keys section
|
||||
4. Generate a new API key
|
||||
|
||||
### Testing/Development
|
||||
For integration tests and development, these test keys are available:
|
||||
- `REDACTED_CLIENT_KEY` - For client API access
|
||||
- `REDACTED_MINER_KEY` - For miner registration
|
||||
- `test-tenant` - Default tenant ID for testing
|
||||
|
||||
## Using API Keys
|
||||
|
||||
### HTTP Header
|
||||
```http
|
||||
X-API-Key: your_api_key_here
|
||||
X-Tenant-ID: your_tenant_id # Optional for multi-tenant
|
||||
```
|
||||
|
||||
### Environment Variable
|
||||
|
||||
@@ -4,6 +4,42 @@
|
||||
|
||||
This document outlines a comprehensive testing scenario for customers and service providers interacting on the AITBC platform. This scenario enables end-to-end testing of the complete marketplace workflow using the publicly accessible deployment at https://aitbc.bubuit.net/.
|
||||
|
||||
## Integration Tests
|
||||
|
||||
### Test Suite Status (Updated 2026-01-26)
|
||||
|
||||
The integration test suite has been updated to use real implemented features:
|
||||
|
||||
#### ✅ Passing Tests (6)
|
||||
1. **End-to-End Job Execution** - Tests complete job workflow
|
||||
2. **Multi-Tenant Isolation** - Verifies tenant data separation
|
||||
3. **Block Propagation** - Tests P2P network block sync
|
||||
4. **Transaction Propagation** - Tests P2P transaction sync
|
||||
5. **Marketplace Integration** - Connects to live marketplace
|
||||
6. **Security Integration** - Uses real ZK proof features
|
||||
|
||||
#### ⏸️ Skipped Tests (1)
|
||||
1. **Wallet Payment Flow** - Awaiting wallet-coordinator integration
|
||||
|
||||
#### Running Tests
|
||||
```bash
|
||||
# Run all integration tests
|
||||
python -m pytest tests/integration/test_full_workflow.py -v
|
||||
|
||||
# Run specific test class
|
||||
python -m pytest tests/integration/test_full_workflow.py::TestSecurityIntegration -v
|
||||
|
||||
# Run with real client (not mocks)
|
||||
export USE_REAL_CLIENT=1
|
||||
python -m pytest tests/integration/ -v
|
||||
```
|
||||
|
||||
#### Test Features
|
||||
- Tests work with both real client and mock fallback
|
||||
- Security tests use actual ZK proof requirements
|
||||
- Marketplace tests connect to https://aitbc.bubuit.net/marketplace
|
||||
- All tests pass in CLI and Windsorf environments
|
||||
|
||||
## Prerequisites
|
||||
|
||||
### System Requirements
|
||||
|
||||
Reference in New Issue
Block a user