Skip to content

CLI-1330: TypeError for SSH commands on Node environments #2277

CLI-1330: TypeError for SSH commands on Node environments

CLI-1330: TypeError for SSH commands on Node environments #2277

Triggered via pull request April 25, 2024 21:51
Status Failure
Total duration 8m 2s
Artifacts

mutation.yml

on: pull_request
Mutation Testing
7m 52s
Mutation Testing
Fit to window
Zoom out
Zoom in

Annotations

1 error and 2 warnings
Mutation Testing
Process completed with exit code 1.
Mutation Testing: 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"];
Mutation Testing: 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()]); }