Files
aitbc/tests/e2e/README.md
aitbc1 f0535d3881
Some checks failed
AITBC CI/CD Pipeline / lint-and-test (3.11) (push) Has been cancelled
AITBC CI/CD Pipeline / lint-and-test (3.12) (push) Has been cancelled
AITBC CI/CD Pipeline / lint-and-test (3.13) (push) Has been cancelled
AITBC CI/CD Pipeline / test-cli (push) Has been cancelled
AITBC CI/CD Pipeline / test-services (push) Has been cancelled
AITBC CI/CD Pipeline / test-production-services (push) Has been cancelled
AITBC CI/CD Pipeline / security-scan (push) Has been cancelled
AITBC CI/CD Pipeline / build (push) Has been cancelled
AITBC CI/CD Pipeline / deploy-staging (push) Has been cancelled
AITBC CI/CD Pipeline / deploy-production (push) Has been cancelled
AITBC CI/CD Pipeline / performance-test (push) Has been cancelled
AITBC CI/CD Pipeline / docs (push) Has been cancelled
AITBC CI/CD Pipeline / release (push) Has been cancelled
AITBC CI/CD Pipeline / notify (push) Has been cancelled
Security Scanning / Bandit Security Scan (apps/coordinator-api/src) (push) Has been cancelled
Security Scanning / Bandit Security Scan (cli/aitbc_cli) (push) Has been cancelled
Security Scanning / Bandit Security Scan (packages/py/aitbc-core/src) (push) Has been cancelled
Security Scanning / Bandit Security Scan (packages/py/aitbc-crypto/src) (push) Has been cancelled
Security Scanning / Bandit Security Scan (packages/py/aitbc-sdk/src) (push) Has been cancelled
Security Scanning / Bandit Security Scan (tests) (push) Has been cancelled
Security Scanning / CodeQL Security Analysis (javascript) (push) Has been cancelled
Security Scanning / CodeQL Security Analysis (python) (push) Has been cancelled
Security Scanning / Dependency Security Scan (push) Has been cancelled
Security Scanning / Container Security Scan (push) Has been cancelled
Security Scanning / OSSF Scorecard (push) Has been cancelled
Security Scanning / Security Summary Report (push) Has been cancelled
fix: add missing database commit and remove unused agent service files
- Add conn.commit() to agent registration in agent-registry
- Remove unused integration_layer.py and coordinator.py from agent-services
- Fix blockchain RPC endpoint from /rpc/sync to /rpc/syncStatus
- Replace Annotated[Session, Depends(get_session)] with Session = Depends(get_session) for cleaner dependency injection syntax across marketplace routers
2026-03-24 13:20:56 +01:00

1.1 KiB

AITBC End-to-End Tests

This directory contains end-to-end tests for the AITBC GPU Marketplace platform.

Tests

test_aitbc_e2e.py

Complete end-to-end test covering:

  • User registration/authentication
  • GPU marketplace browsing
  • GPU booking
  • Task submission
  • Result retrieval
  • Cleanup

Usage

# Run the E2E test
python3 tests/e2e/test_aitbc_e2e.py

# Specify custom URL
python3 tests/e2e/test_aitbc_e2e.py --url http://your-aitbc-instance:8000

# Verbose output
python3 tests/e2e/test_aitbc_e2e.py -v

Prerequisites

  • AITBC services running (coordinator API, blockchain node)
  • Python 3.7+
  • requests library (pip install requests)

What This Tests

This E2E test validates the core user workflow:

  1. Authentication - Register/login to the platform
  2. Marketplace - Browse and book available GPU resources
  3. Compute - Submit a task to the booked GPU
  4. Validation - Verify the system responds correctly at each step
  5. Cleanup - Release resources after test completion

The test is designed to be safe and non-disruptive, using short-duration bookings and cleaning up after itself.