Remove all references of packs from the Panel
This commit is contained in:
parent
f1978683cc
commit
3c7ffaaadb
60 changed files with 129 additions and 2517 deletions
|
@ -42,7 +42,6 @@ class ServerConfigurationStructureServiceTest extends TestCase
|
|||
{
|
||||
/** @var \Pterodactyl\Models\Server $model */
|
||||
$model = factory(Server::class)->make();
|
||||
$model->setRelation('pack', null);
|
||||
$model->setRelation('allocation', factory(Allocation::class)->make());
|
||||
$model->setRelation('allocations', collect(factory(Allocation::class)->times(2)->make()));
|
||||
$model->setRelation('egg', factory(Egg::class)->make());
|
||||
|
@ -82,7 +81,6 @@ class ServerConfigurationStructureServiceTest extends TestCase
|
|||
|
||||
$this->assertSame([
|
||||
'egg' => $model->egg->uuid,
|
||||
'pack' => null,
|
||||
'skip_scripts' => $model->skip_scripts,
|
||||
], $response['service']);
|
||||
|
||||
|
|
|
@ -140,12 +140,10 @@ class StartupModificationServiceTest extends TestCase
|
|||
'installed' => 0,
|
||||
'nest_id' => $eggModel->nest_id,
|
||||
'egg_id' => $eggModel->id,
|
||||
'pack_id' => 789,
|
||||
'image' => 'docker:image',
|
||||
]))->once()->andReturn($model);
|
||||
$this->repository->shouldReceive('getDaemonServiceData')->with($model, true)->once()->andReturn([
|
||||
'egg' => 'abcd1234',
|
||||
'pack' => 'xyz987',
|
||||
]);
|
||||
|
||||
$this->environmentService->shouldReceive('handle')->with($model)->once()->andReturn(['env']);
|
||||
|
@ -158,7 +156,6 @@ class StartupModificationServiceTest extends TestCase
|
|||
],
|
||||
'service' => [
|
||||
'egg' => 'abcd1234',
|
||||
'pack' => 'xyz987',
|
||||
'skip_scripts' => false,
|
||||
],
|
||||
])->once()->andReturn(new Response);
|
||||
|
@ -170,7 +167,6 @@ class StartupModificationServiceTest extends TestCase
|
|||
$response = $service->handle($model, [
|
||||
'docker_image' => 'docker:image',
|
||||
'egg_id' => $eggModel->id,
|
||||
'pack_id' => 789,
|
||||
'environment' => ['test' => 'abcd1234'],
|
||||
]);
|
||||
|
||||
|
|
Reference in a new issue