Overview
L8Test is the integration testing framework for the Layer 8 ecosystem. It spins up a full distributed topology with 3 VNets connected in a mesh, each with 4 VNics (12 total), and validates health propagation, service discovery, transaction coordination, Map-Reduce readiness, and replication.
Topology
Three VNets on ports 20000, 30000, and 40000 connected in a full mesh. Each VNet has 4 VNics: 3 service-bearing (all handler types registered) and 1 observer node. Total: 12 network interfaces, 9 service-bearing nodes, 15 expected health points per VNic.
What It Validates
Health propagation
Every VNic must see exactly 15 health points (all peers across all VNets)
Service discovery
All 9 service-bearing VNics are discovered by every node
Transaction coordination
Leader election and participant registration across VNets
MapReduce
Participant readiness for distributed map-reduce operations
Replication
Distributed cache replication with configurable replica count
Service Handler Types
Three handler types exercise different service configurations.
TestServiceHandler (Area 0)
Basic stateless CRUD. No transactions, no replication.
TestServiceTransactionHandler (Area 1)
Distributed transaction coordination. Voter role.
TestServiceReplicationHandler (Area 2)
Full replication with distributed cache. 2 replicas. Voter role.
All handlers support POST, PUT, PATCH, DELETE, and GET with atomic counters for tracking invocations.
Initialization Sequence
- Create 3 VNets on designated ports
- Connect VNets in full mesh (each sees 2 external peers)
- Wait for VNet connectivity
- Create 4 VNics per VNet (3 with services, 1 without)
- Wait for health propagation (15 health points per VNic)
- Wait for service discovery (9 service instances visible to all)
- Wait for transaction leader election and participant registration
- Wait for MapReduce participant readiness
Project Structure
infra/t_topology/
Topology orchestration: VNet mesh, VNic creation, health checks
infra/t_service/
Three service handler types
infra/t_resources/
Test data and resource setup
infra/t_plugin/
Plugin-based service and registry registration
tests/
Test files and initialization