N°3464: fix ci

This commit is contained in:
odain
2020-12-07 00:44:39 +01:00
parent 4d61c14f80
commit 0019595923

View File

@@ -141,7 +141,7 @@ JSON;
//'pass json_data as file' => [ 'bCallApiViaFile' => true]
];
}
private function UpdateTicketViaApi($iId, $description){
$sJsonUpdateContent = <<<JSON
{"operation": "core/update","comment": "test","class": "UserRequest","key":"$iId","output_fields": "description","fields":{"description": "$description"}}
@@ -202,13 +202,14 @@ JSON;
$aPostFields['json_data'] = $sJsonDataContent;
}
curl_setopt($ch, CURLOPT_URL, "http://localhost/iTop/webservices/rest.php");
curl_setopt($ch, CURLOPT_URL, "http://webserver/iTop/webservices/rest.php");
curl_setopt($ch, CURLOPT_POST, 1);// set post data to true
curl_setopt($ch, CURLOPT_POSTFIELDS, $aPostFields);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$sJson = curl_exec($ch);
curl_close ($ch);
var_dump($sJson);
return $sJson;
}