'save', 'test' => 'test', 'disable' => 'disable'] as $path => $action) { $needle = "post('/object-storage/{$path}', 'App\\Controllers\\Admin\\ObjectStorageController:{$action}')->add(new SuperAdmin())"; $assert(str_contains($routes, $needle), 'Object-storage mutation lost SuperAdmin/CSRF middleware: ' . $action); } $assert(str_contains($routes, "get('/object-storage/cleanup-debts', 'App\\Controllers\\Admin\\ObjectStorageController:cleanupDebt')") && str_contains($routes, "post('/object-storage/cleanup-debts/{backup_id:[0-9]+}/retry', 'App\\Controllers\\Admin\\ObjectStorageController:retryCleanup')->add(new SuperAdmin())"), 'Object cleanup debt list or protected manual retry route is missing.'); $assert(str_contains($sidebar, 'href="/admin/object-storage"') && str_contains($sidebar, '对象存储'), 'Object-storage navigation entry is missing.'); $assert(str_contains($service, "CloudSecrets::encrypt([") && str_contains($service, "'object-storage-credentials'") && str_contains($service, "lockForUpdate()") && str_contains($service, "tested_revision") && str_contains($service, "expected_revision"), 'Object-storage encryption, revision, or readiness gate is missing.'); $headBucket = preg_match( '/public function headBucket\(.*?\n \}/s', $client, $headBucketMatch ) === 1 ? $headBucketMatch[0] : ''; $assert(str_contains($headBucket, "request('HEAD'") && str_contains($headBucket, "'allow_redirects' => false") && str_contains($headBucket, "'verify' => true") && str_contains($headBucket, "'proxy' => ''") && !str_contains($headBucket, "request('PUT'") && !str_contains($headBucket, "request('DELETE'"), 'Connectivity test is no longer a bounded, read-only, TLS-strict HeadBucket call.'); $assert(str_contains($template, "admin_title value='对象存储'") && substr_count($template, 'name="access_key_id" type="password" value=""') === 1 && substr_count($template, 'name="secret_access_key" type="password" value=""') === 1 && !str_contains($template, '$object_storage.access_key_id') && !str_contains($template, '$object_storage.secret_access_key') && str_contains($template, 'data-can-manage=') && str_contains($template, 's3:ListBucket') && str_contains($template, '对象清理异常') && str_contains($template, 'os-cleanup-retry') && str_contains($template, 'data-object-storage-page') && str_contains($template, 'data-os-tab="overview"') && str_contains($template, 'data-os-tab="cleanup"') && str_contains($template, '云备份就绪检查') && str_contains($template, 'id="osConfigDrawer"') && str_contains($template, 'id="osReplaceCredentials"') && str_contains($template, '保存任何连接字段都会使当前验证失效') && str_contains($template, 'class="os-debt-list"') && str_contains($template, '$item.next_check_at') && str_contains($template, '$item.attention_at') && !str_contains($template, '') && str_contains($template, '/cloud/admin-object-storage.css?v={$venix_asset_version}') && str_contains($template, '/cloud/admin-object-storage.js?v={$venix_asset_version}') && !str_contains($template, '