Files
coolify/tests/Feature/SecretManagerLinkMigrationTest.php
T
Andras Bacsai 91d4467322 feat(secrets): resolve integrations across deployments and databases
Add secret manager integration links and API support, resolve referenced credentials in database startup commands, and improve environment variable handling and filtering.
2026-08-23 21:33:00 +02:00

17 lines
542 B
PHP

<?php
use Illuminate\Foundation\Testing\RefreshDatabase;
use Illuminate\Support\Facades\Schema;
uses(RefreshDatabase::class);
test('resourceable columns have one composite unique index', function () {
$resourceableIndexes = collect(Schema::getIndexes('secret_manager_links'))
->filter(fn (array $index): bool => $index['columns'] === ['resourceable_type', 'resourceable_id'])
->values();
expect($resourceableIndexes)
->toHaveCount(1)
->and($resourceableIndexes->first()['unique'])->toBeTrue();
});