|
|
|
|
@ -26,6 +26,7 @@ namespace {
|
|
|
|
|
use App\Services\Cloud\CloudError;
|
|
|
|
|
use App\Services\Cloud\CloudInput;
|
|
|
|
|
use App\Services\Cloud\CloudJobService;
|
|
|
|
|
use App\Services\Cloud\CloudOperationCatalog;
|
|
|
|
|
use App\Services\Cloud\CloudOperationErrorCatalog;
|
|
|
|
|
use App\Services\Cloud\CloudSecrets;
|
|
|
|
|
use App\Services\Cloud\CloudSnapshotService;
|
|
|
|
|
@ -625,5 +626,16 @@ namespace {
|
|
|
|
|
$assert((string) $reinstallAfterDelete->status === 'queued',
|
|
|
|
|
'Deleting the final snapshot did not release reinstall admission.');
|
|
|
|
|
|
|
|
|
|
$operationLogIds = array_column(
|
|
|
|
|
CloudJobService::operationLogs($instance, 1, 50)['items'], 'id'
|
|
|
|
|
);
|
|
|
|
|
$assert(CloudOperationCatalog::instanceLogKinds() === [
|
|
|
|
|
'action', 'reinstall', 'instance_settings', 'network_change',
|
|
|
|
|
'firewall_apply', 'snapshot_create', 'snapshot_restore',
|
|
|
|
|
'snapshot_delete', 'rescue',
|
|
|
|
|
], 'The instance operation log does not cover every settings operation.');
|
|
|
|
|
$assert(in_array((string) $settingsAfterDelete->id, $operationLogIds, true),
|
|
|
|
|
'An instance-settings task was omitted from the instance operation log.');
|
|
|
|
|
|
|
|
|
|
echo "Cloud snapshot catalog, admission and worker state machine passed.\n";
|
|
|
|
|
}
|
|
|
|
|
|