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

@@ -32,8 +32,7 @@ tap.test('setup test server', async () => {
tap.test('regular forward route should work correctly', async () => {
smartProxy = new SmartProxy({
routes: [{
id: 'test-forward',
name: 'Test Forward Route',
name: 'test-forward',
match: { ports: 7890 },
action: {
type: 'forward',
@@ -100,8 +99,7 @@ tap.test('regular forward route should work correctly', async () => {
tap.skip.test('NFTables forward route should not terminate connections (requires root)', async () => {
smartProxy = new SmartProxy({
routes: [{
id: 'nftables-test',
name: 'NFTables Test Route',
name: 'nftables-test',
match: { ports: 7891 },
action: {
type: 'forward',