fix(tests): Normalize route configurations in tests to use name (remove id) and standardize route names

This commit is contained in:
2025-12-09 21:39:49 +00:00
parent 788fdd79c5
commit 05c5635a13
9 changed files with 25 additions and 24 deletions

View File

@@ -58,8 +58,7 @@ tap.test('should forward TCP connections correctly', async () => {
enableDetailedLogging: true,
routes: [
{
id: 'tcp-forward',
name: 'TCP Forward Route',
name: 'tcp-forward',
match: {
ports: 8080,
},
@@ -107,8 +106,7 @@ tap.test('should handle TLS passthrough correctly', async () => {
enableDetailedLogging: true,
routes: [
{
id: 'tls-passthrough',
name: 'TLS Passthrough Route',
name: 'tls-passthrough',
match: {
ports: 8443,
domains: 'test.example.com',
@@ -168,8 +166,7 @@ tap.test('should handle SNI-based forwarding', async () => {
enableDetailedLogging: true,
routes: [
{
id: 'domain-a',
name: 'Domain A Route',
name: 'domain-a',
match: {
ports: 8443,
domains: 'a.example.com',
@@ -186,8 +183,7 @@ tap.test('should handle SNI-based forwarding', async () => {
},
},
{
id: 'domain-b',
name: 'Domain B Route',
name: 'domain-b',
match: {
ports: 8443,
domains: 'b.example.com',