fix(tests): Normalize route configurations in tests to use name (remove id) and standardize route names
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user