Implement Keystone environment deployments
This commit is contained in:
37
database/factories/ServiceFactory.php
Normal file
37
database/factories/ServiceFactory.php
Normal file
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Factories;
|
||||
|
||||
use App\Enums\DeployPolicy;
|
||||
use App\Enums\ServiceCategory;
|
||||
use App\Enums\ServiceStatus;
|
||||
use App\Enums\ServiceType;
|
||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||
|
||||
/**
|
||||
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Service>
|
||||
*/
|
||||
class ServiceFactory extends Factory
|
||||
{
|
||||
/**
|
||||
* Define the model's default state.
|
||||
*
|
||||
* @return array<string, mixed>
|
||||
*/
|
||||
public function definition(): array
|
||||
{
|
||||
return [
|
||||
'name' => $this->faker->word(),
|
||||
'status' => ServiceStatus::NOT_INSTALLED,
|
||||
'category' => ServiceCategory::DATABASE,
|
||||
'type' => ServiceType::POSTGRES,
|
||||
'version' => '18',
|
||||
'version_track' => '18',
|
||||
'driver_name' => 'postgres.18',
|
||||
'desired_replicas' => 1,
|
||||
'deploy_policy' => DeployPolicy::DEPENDENCY_ONLY,
|
||||
'process_roles' => [],
|
||||
'config' => [],
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user