varias alteracoes
tests / ci (push) Canceled after 0s

This commit is contained in:
2026-10-06 14:50:12 +02:00
parent 4f35313d06
commit e65cb26901
333 changed files with 54656 additions and 2058 deletions
+3 -1
View File
@@ -49,7 +49,9 @@ class AiGatewayTest extends TestCase
Storage::disk('local')->put($key, $text);
$this->beforeApplicationDestroyed(fn () => Storage::disk('local')->delete($key));
DB::table('documents')->insert(['id' => $id, 'file_name' => $key, 'media_type' => 'text/plain', 'storage_key' => $key,
'sha256' => hash('sha256', $text), 'status' => 'active', 'data_classification' => $classification]);
'sha256' => hash('sha256', $text), 'status' => 'active', 'data_classification' => $classification,
'malware_scan_status' => 'clean', 'malware_scanned_sha256' => hash('sha256', $text), 'malware_engine' => 'ClamAV-Test-Double',
'malware_engine_version' => 'fixture', 'malware_scanned_at' => now(), 'malware_signatures_at' => now()]);
$response = $this->postJson('/api/v1/ai/sources', ['document_id' => $id, 'title' => 'Fonte sintética', 'language' => $language,
'nature' => 'illustrative', 'source_url' => 'https://example.org/synthetic', 'source_owner' => 'Entidade de teste',
'evidence_reference' => 'Autorização exclusivamente sintética.', 'source_date' => now()->toDateString(),