@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user