|
|
|
|
@ -43,7 +43,36 @@ $state = [
|
|
|
|
|
];
|
|
|
|
|
$cleanupDebt = [
|
|
|
|
|
'summary' => ['count' => 2, 'bytes' => 4096, 'attention_count' => 1],
|
|
|
|
|
'items' => [],
|
|
|
|
|
'items' => [
|
|
|
|
|
[
|
|
|
|
|
'id' => '31',
|
|
|
|
|
'name' => 'automatic-31',
|
|
|
|
|
'source_instance_id' => '41',
|
|
|
|
|
'user_id' => '5',
|
|
|
|
|
'state' => 'delete_uncertain',
|
|
|
|
|
'object_size_bytes' => 1024,
|
|
|
|
|
'delete_generation' => 1,
|
|
|
|
|
'cycle_attempts' => 1,
|
|
|
|
|
'next_check_at' => 1792877100,
|
|
|
|
|
'attention_at' => null,
|
|
|
|
|
'error_code' => 'delete_effect_unknown',
|
|
|
|
|
'can_retry' => false,
|
|
|
|
|
],
|
|
|
|
|
[
|
|
|
|
|
'id' => '32',
|
|
|
|
|
'name' => 'automatic-32',
|
|
|
|
|
'source_instance_id' => '42',
|
|
|
|
|
'user_id' => '6',
|
|
|
|
|
'state' => 'delete_attention',
|
|
|
|
|
'object_size_bytes' => 3072,
|
|
|
|
|
'delete_generation' => 2,
|
|
|
|
|
'cycle_attempts' => 3,
|
|
|
|
|
'next_check_at' => 0,
|
|
|
|
|
'attention_at' => 1792877200,
|
|
|
|
|
'error_code' => 'reconciliation_limit_reached',
|
|
|
|
|
'can_retry' => true,
|
|
|
|
|
],
|
|
|
|
|
],
|
|
|
|
|
'pagination' => [
|
|
|
|
|
'page' => 1,
|
|
|
|
|
'per_page' => 20,
|
|
|
|
|
@ -88,6 +117,11 @@ $assert($xpath->query('//*[@role="tab" and @data-os-tab]')->length === 2
|
|
|
|
|
&& $xpath->query('//*[@role="tabpanel" and @data-os-panel]')->length === 2
|
|
|
|
|
&& $one($xpath, '//*[@data-os-panel="cleanup"]')->hasAttribute('hidden'),
|
|
|
|
|
'Object-storage overview and cleanup workspaces are not accessible tabs.');
|
|
|
|
|
$assert($xpath->query('//*[@class="os-debt-list"]/*[@role="listitem"]')->length === 2
|
|
|
|
|
&& $xpath->query('//table')->length === 0
|
|
|
|
|
&& str_contains($html, '下次核对')
|
|
|
|
|
&& str_contains($html, '停止于'),
|
|
|
|
|
'Cleanup debt did not render its responsive state and scheduling list.');
|
|
|
|
|
$form = $one($xpath, '//form[@id="objectStorageForm"]');
|
|
|
|
|
$assert($form->getAttribute('action') === '/admin/object-storage/config'
|
|
|
|
|
&& $form->getAttribute('method') === 'post'
|
|
|
|
|
|