TenantAtlas/apps/platform/tests/Unit/Artifacts/ArtifactSourceTaxonomyCatalogTest.php
Ahmed Darrazi bf8d59e034
Some checks failed
PR Fast Feedback / fast-feedback (pull_request) Failing after 1m36s
feat: implement provider-neutral artifact source taxonomy
2026-05-09 01:45:12 +02:00

33 lines
1017 B
PHP

<?php
declare(strict_types=1);
use App\Support\Artifacts\ArtifactSourceTaxonomy;
it('pins the provider-neutral artifact source inventories for spec 284', function (): void {
expect(ArtifactSourceTaxonomy::sourceFamilies())->toBe([
'finding',
'stored_report',
'evidence_snapshot',
'inventory',
'operation_run',
])
->and(ArtifactSourceTaxonomy::sourceKinds())->toBe([
'model_summary',
'stored_report',
'operation_rollup',
'inventory_projection',
])
->and(ArtifactSourceTaxonomy::sourceTargetKinds())->toBe([
'managed_environment',
'governed_subject',
'provider_connection',
'operation_run',
]);
});
it('does not introduce a detector catalog in spec 284', function (): void {
expect(ArtifactSourceTaxonomy::hasDetectorCatalog())->toBeFalse()
->and(method_exists(ArtifactSourceTaxonomy::class, 'detectorKeys'))->toBeFalse();
});