Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

0x0F Admin Dashboard - Testing Guide

This document contains detailed test cases and scripts for the Admin Dashboard. For architecture overview, see Admin Dashboard.


Test Scripts

One-Click Testing

# Run all tests (Rust + Admin Unit + E2E)
./scripts/run_admin_full_suite.sh

# Quick mode (skip Unit Tests)
./scripts/run_admin_full_suite.sh --quick

# Run only Admin → Gateway propagation E2E
./scripts/run_admin_gateway_e2e.sh

Script Reference

ScriptPurpose
run_admin_full_suite.shUnified entry (Rust + Admin Unit + E2E)
run_admin_gateway_e2e.shAdmin → Gateway propagation tests
run_admin_tests_standalone.shOne-click full test (install deps + start server)

Port Configuration

EnvironmentAdmin PortGateway Port
Dev (local)80028080
CI80018080

Test Files

ScriptFunction
verify_e2e.pyAdmin login/logout, health check
test_admin_login.pyAuthentication tests
test_constraints.pyDatabase constraint validation
test_core_flow.pyAsset/Symbol CRUD workflows
test_input_validation.pyInvalid input rejection
test_security.pySecurity and authentication
tests/e2e/test_asset_lifecycle.pyAsset enable/disable lifecycle
tests/e2e/test_symbol_lifecycle.pySymbol trading status management
tests/e2e/test_fee_update.pyFee configuration updates
tests/e2e/test_audit_log.pyAudit trail verification
tests/test_ux10_trace_id.pyUX-10 Trace ID verification

Running Individual Tests

cd admin && source venv/bin/activate
pytest tests/test_core_flow.py -v
pytest tests/e2e/test_asset_lifecycle.py -v
pytest tests/test_ux10_trace_id.py -v

Test Coverage

Total: 198+ tests

  • Rust unit tests: 5 passed
  • Admin unit tests: 178+ passed
  • Admin E2E tests: 4/4 passed
  • UX-10 Trace ID tests: 16/16 passed

UX Requirements Test Matrix

UX IDRequirementTest File
UX-06Base ≠ Quote validationtest_constraints.py
UX-07ID Auto-Generationtest_id_mapping.py
UX-08Status String Displaytest_ux08_status_strings.py
UX-09Default Descending Sorttest_core_flow.py
UX-10Trace ID Evidence Chaintest_ux10_trace_id.py

Acceptance Criteria

#DeliverableVerification
1Admin UI accessibleBrowser at localhost:$ADMIN_PORT
2One-click E2E test./scripts/run_admin_full_suite.sh passes
3All tests pass198+ tests green
4Audit log queryableAdmin UI audit page
5Gateway hot-reloadConfig change without restart