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