Implement Keystone environment deployments
This commit is contained in:
33
database/factories/ServiceReplicaFactory.php
Normal file
33
database/factories/ServiceReplicaFactory.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Factories;
|
||||
|
||||
use App\Models\Server;
|
||||
use App\Models\Service;
|
||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||
|
||||
/**
|
||||
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\ServiceReplica>
|
||||
*/
|
||||
class ServiceReplicaFactory extends Factory
|
||||
{
|
||||
/**
|
||||
* Define the model's default state.
|
||||
*
|
||||
* @return array<string, mixed>
|
||||
*/
|
||||
public function definition(): array
|
||||
{
|
||||
return [
|
||||
'service_id' => Service::factory(),
|
||||
'server_id' => Server::factory(),
|
||||
'container_name' => $this->faker->slug(),
|
||||
'image_digest' => 'sha256:'.$this->faker->sha256(),
|
||||
'internal_host' => $this->faker->domainWord(),
|
||||
'internal_port' => 8080,
|
||||
'status' => 'running',
|
||||
'health_status' => 'healthy',
|
||||
'config' => [],
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user