mirror of
https://github.com/ershisan99/coolify.git
synced 2025-12-16 20:49:28 +00:00
add Docker run command parse test
This commit is contained in:
9
tests/Feature/DockerRunTest.php
Normal file
9
tests/Feature/DockerRunTest.php
Normal 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();
|
||||
});
|
||||
@@ -1,7 +0,0 @@
|
||||
<?php
|
||||
|
||||
it('returns a successful response', function () {
|
||||
$response = $this->get('/api/health');
|
||||
|
||||
$response->assertStatus(200);
|
||||
});
|
||||
@@ -1,7 +0,0 @@
|
||||
<?php
|
||||
|
||||
|
||||
test('parse', function () {
|
||||
|
||||
expect($result)->toBe(3);
|
||||
});
|
||||
@@ -12,7 +12,7 @@
|
||||
*/
|
||||
|
||||
uses(
|
||||
Tests\TestCase::class,
|
||||
// Tests\TestCase::class,
|
||||
// Illuminate\Foundation\Testing\RefreshDatabase::class,
|
||||
)->in('Feature');
|
||||
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
<?php
|
||||
|
||||
test('that true is true', function () {
|
||||
expect(true)->toBeTrue();
|
||||
});
|
||||
@@ -1,5 +0,0 @@
|
||||
<?php
|
||||
|
||||
test('globals')
|
||||
->expect(['dd', 'dump'])
|
||||
->not->toBeUsed();
|
||||
Reference in New Issue
Block a user