Skip to content

Commit

Permalink
Added logs and provided support for 7.4
Browse files Browse the repository at this point in the history
  • Loading branch information
manjusha729 committed Nov 19, 2024
1 parent fc4fdfb commit f162f95
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"sort-packages": true
},
"require": {
"php": ">7.4",
"php": ">=7.4",
"ext-curl": "*",
"ext-dom": "*",
"ext-iconv": "*",
Expand Down
4 changes: 2 additions & 2 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions etc/config/command.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
try {
$process->run();
$output = $process->getOutput();
echo $output;
if (!$process->isSuccessful()) {
$failureOutput = $process->getErrorOutput();
if (!empty($failureOutput)) {
Expand All @@ -47,6 +48,7 @@
}

if (checkForFilePath($output)) {
echo __LINE__.$output;
$output = "CLI output suppressed, filepath detected in output.";
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ public function write($url, $body = [], $method = CurlInterface::POST, $headers
public function read($successRegex = null, $returnRegex = null, $returnIndex = null)
{
$response = curl_exec($this->getResource());

print_r($response);
if ($response === false) {
throw new TestFrameworkException(curl_error($this->getResource()));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -571,6 +571,9 @@ public function magentoCLI($command, $timeout = null, $arguments = null)
);

$executor = new CurlTransport();
echo "api url".$apiURL;
echo "token ".WebApiAuth::getAdminToken();
echo "arguments" .$arguments;
$executor->write(
$apiURL,
[
Expand Down

0 comments on commit f162f95

Please sign in to comment.