Fix docker utils tests for docker v25

From docker 25, the engine will validate IPAM config. This would cause
the docker utils test to fail since the network/subnet configuration was
incorrect.

Change-type: patch
This commit is contained in:
Felipe Lalanne 2024-01-25 14:31:48 -03:00
parent 23fae633ca
commit 6ee606806d

View File

@ -21,8 +21,8 @@ describe('lib/docker-utils', () => {
Driver: 'default',
Config: [
{
Gateway: '10.0.105.1',
Subnet: '10.0.105.0/16',
Gateway: '10.105.0.1',
Subnet: '10.105.0.0/16',
},
],
},
@ -36,7 +36,7 @@ describe('lib/docker-utils', () => {
// test using existing data...
it('should return the correct gateway address for supervisor0', async () => {
const gateway = await dockerUtils.getNetworkGateway('supervisor0');
expect(gateway).to.equal('10.0.105.1');
expect(gateway).to.equal('10.105.0.1');
});
it('should return the correct gateway address for host', async () => {