Skip to content

Commit

Permalink
Fix error in alerts tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Valentin Hamon committed Jan 17, 2017
1 parent 9178b29 commit 0394b59
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/2_Integration/05-Results/ApiAlertsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function POSTrequests()

protected function insertOrUpdateAlert($agentid, $detection_time, $malware_type, $uuid)
{
$rawdata = '{
$json_alert = '{
"job_id": 1,
"name" : "'.$malware_type.'",
"filepath" : "/home/malwares/X",
Expand All @@ -54,7 +54,8 @@ protected function insertOrUpdateAlert($agentid, $detection_time, $malware_type,
"agent_id":'.$agentid.',
"uuid": "'.$uuid.'"}';

PluginArmaditoAlert::manageApiRequest($rawdata);

PluginArmaditoAlert::manageApiRequest($json);
}
}

0 comments on commit 0394b59

Please sign in to comment.