|
|
|
|
@ -20,6 +20,7 @@ $assert = static function ($condition, string $message): void {
|
|
|
|
|
|
|
|
|
|
$assert(str_contains($service, "'GET', 'host/capacity'")
|
|
|
|
|
&& str_contains($service, "'GET', 'host/network-options'")
|
|
|
|
|
&& str_contains($service, 'private const ENGINE_TIMEOUT_SECONDS = 8.0;')
|
|
|
|
|
&& str_contains($service, 'public_ip_available_count')
|
|
|
|
|
&& str_contains($service, "['available', 'disabled']")
|
|
|
|
|
&& str_contains($service, 'self::LOCAL_IP_HOLDS')
|
|
|
|
|
@ -34,7 +35,7 @@ $assert(str_contains($service, "'GET', 'host/capacity'")
|
|
|
|
|
&& str_contains($service, '$snapshot->last_attempt_at = $attemptedAt;')
|
|
|
|
|
&& str_contains($service, "\$host->last_seen_at = \$now;")
|
|
|
|
|
&& substr_count($service, "\$host->last_seen_at =") === 1,
|
|
|
|
|
'Capacity/IP observation, local-state preservation or last-seen boundary changed.');
|
|
|
|
|
'Capacity/IP timeout, observation, local-state preservation or last-seen boundary changed.');
|
|
|
|
|
|
|
|
|
|
$assert(str_contains($service, 'private const MAX_PUBLIC_POOLS = 32;')
|
|
|
|
|
&& str_contains($service, 'private const MAX_PUBLIC_IPS_PER_POOL = 254;')
|
|
|
|
|
|