add Docker run command parse test

This commit is contained in:
Andras Bacsai committed 2024-02-09 13:38:17 +01:00
1 parent 29676ffb22
commit 798d747164
7 files changed
+13 -39

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
<?php
it('ConvertDockerTunCommand', function () {
$input = '--cap-add=NET_ADMIN --cap-add=NET_RAW --cap-add SYS_ADMIN';
$output = convert_docker_run_to_compose($input);
expect($output)->toBe([
'cap_add' => ['NET_ADMIN', 'NET_RAW', 'SYS_ADMIN'],
])->ray();
});
-7
View File
@@ -1,7 +0,0 @@
<?php
it('returns a successful response', function () {
$response = $this->get('/api/health');
$response->assertStatus(200);
});
-7
View File
@@ -1,7 +0,0 @@
<?php
test('parse', function () {
expect($result)->toBe(3);
});