tests pass!

This commit is contained in:
2025-04-07 19:06:37 +01:00
parent a5854c7a04
commit e8c8eeab18
8 changed files with 33 additions and 27 deletions

View File

@@ -105,12 +105,14 @@ class ServerController extends Controller
'external_id' => $createdServer->id,
'ipv4' => $createdServer->ipv4,
'ipv6' => $createdServer->ipv6,
'private_ip' => $createdServer->privateIp,
'provider_status' => $createdServer->status,
'status' => ServerStatus::WAITING_FOR_PROVIDER,
'region' => $request->location,
'os' => $request->image,
'plan' => $request->server_type,
'user' => 'keystone',
'external_network_id' => $network->id,
]);
dispatch(new WaitForServerToConnect(

View File

@@ -7,11 +7,6 @@ use Saloon\Http\Connector;
class HetznerConnector extends Connector
{
public function __construct(protected readonly Provider $provider)
{
//
}
public function resolveBaseUrl(): string
{
return 'https://api.hetzner.cloud/v1';
@@ -22,7 +17,6 @@ class HetznerConnector extends Connector
return [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'Authorization' => 'Bearer '.$this->provider->token,
];
}
}