feat(docker): add HTTP Basic Authentication support and enhance hostname parsing in Docker run conversion

This commit is contained in:
Andras Bacsai
2025-04-23 11:57:26 +02:00
parent d6d76ade48
commit e4648bcf9c
2 changed files with 15 additions and 2 deletions

View File

@@ -1,11 +1,11 @@
<?php
test('ConvertCapAdd', function () {
$input = '--cap-add=NET_ADMIN --cap-add=NET_RAW --cap-add SYS_ADMIN --hostname=test';
$input = '--cap-add=NET_ADMIN --cap-add=NET_RAW --cap-add SYS_ADMIN --hostname=my-super-host';
$output = convertDockerRunToCompose($input);
expect($output)->toBe([
'cap_add' => ['NET_ADMIN', 'NET_RAW', 'SYS_ADMIN'],
'hostname' => 'test',
'hostname' => 'my-super-host',
]);
});