mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-05 00:13:22 +00:00
chore: prepare for PR
This commit is contained in:
1 parent
9a4b4280be
commit
236745ede1
3 files changed
+66
-8
No files matched your search
@@ -198,3 +198,20 @@ test('ConvertEntrypointSingleQuotedWithDoubleQuotesInside', function () {
|
||||
'entrypoint' => 'python -c "print(\"hi\")"',
|
||||
]);
|
||||
});
|
||||
|
||||
test('ConvertIp6', function () {
|
||||
$input = '--ip6 2001:db8::1';
|
||||
$output = convertDockerRunToCompose($input);
|
||||
expect($output)->toBe([
|
||||
'ip6' => ['2001:db8::1'],
|
||||
]);
|
||||
});
|
||||
|
||||
test('ConvertIpAndIp6Together', function () {
|
||||
$input = '--ip 172.20.0.5 --ip6 2001:db8::1';
|
||||
$output = convertDockerRunToCompose($input);
|
||||
expect($output)->toBe([
|
||||
'ip' => ['172.20.0.5'],
|
||||
'ip6' => ['2001:db8::1'],
|
||||
]);
|
||||
});
|
||||
Reference in new issue
Block a user