CLI-1330: TypeError for SSH commands on Node environments #2276
Annotations
1 error and 2 warnings
Run Infection for added files only
Process completed with exit code 1.
|
Run Infection for added files only:
src/Command/CommandBase.php#L1333
Escaped Mutant for Mutator "ProtectedVisibility":
--- Original
+++ New
@@ @@
/**
* @return array<mixed>
*/
- protected function getAcsfSites(EnvironmentResponse $cloudEnvironment) : array
+ private function getAcsfSites(EnvironmentResponse $cloudEnvironment) : array
{
$envAlias = self::getEnvironmentAlias($cloudEnvironment);
$command = ['cat', "/var/www/site-php/{$envAlias}/multisite-config.json"];
|
Run Infection for added files only:
src/Command/Push/PushDatabaseCommand.php#L86
Escaped Mutant for Mutator "GreaterThan":
--- Original
+++ New
@@ @@
{
$this->logger->debug("Importing {$remoteDumpFilepath} to MySQL on remote machine");
$command = "pv {$remoteDumpFilepath} --bytes --rate | gunzip | MYSQL_PWD={$database->password} mysql --host={$this->getHostFromDatabaseResponse($environment, $database)} --user={$database->user_name} {$this->getNameFromDatabaseResponse($database)}";
- $process = $this->sshHelper->executeCommand($environment->sshUrl, [$command], $this->output->getVerbosity() > OutputInterface::VERBOSITY_NORMAL);
+ $process = $this->sshHelper->executeCommand($environment->sshUrl, [$command], $this->output->getVerbosity() >= OutputInterface::VERBOSITY_NORMAL);
if (!$process->isSuccessful()) {
throw new AcquiaCliException('Unable to import database on remote machine. {message}', ['message' => $process->getErrorOutput()]);
}
|
Loading