fix(typescript): Refactor types and interfaces to use consistent I prefix and update related tests
This commit is contained in:
@ -282,10 +282,20 @@ tap.test('should support optional source IP preservation in chained proxies', as
|
||||
// Test round-robin behavior for multiple target hosts in a domain config.
|
||||
tap.test('should use round robin for multiple target hosts in domain config', async () => {
|
||||
// Create a domain config with multiple hosts in the target
|
||||
const domainConfig = {
|
||||
const domainConfig: {
|
||||
domains: string[];
|
||||
forwarding: {
|
||||
type: 'http-only';
|
||||
target: {
|
||||
host: string[];
|
||||
port: number;
|
||||
};
|
||||
http: { enabled: boolean };
|
||||
}
|
||||
} = {
|
||||
domains: ['rr.test'],
|
||||
forwarding: {
|
||||
type: 'http-only',
|
||||
type: 'http-only' as const,
|
||||
target: {
|
||||
host: ['hostA', 'hostB'], // Array of hosts for round-robin
|
||||
port: 80
|
||||
|
Reference in New Issue
Block a user