mirror of
https://github.com/coollabsio/coolify.git
synced 2026-08-24 10:05:47 -05:00
Add secret manager integration links and API support, resolve referenced credentials in database startup commands, and improve environment variable handling and filtering.
17 lines
542 B
PHP
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();
|
|
});
|