CLI-1330: TypeError for SSH commands on Node environments #2287
Annotations
1 error and 3 warnings
Run Infection for added files only
Process completed with exit code 1.
|
Run Infection for added files only:
src/Command/Env/EnvCertCreateCommand.php#L34
Escaped Mutant for Mutator "FalseValue":
--- Original
+++ New
@@ @@
protected function execute(InputInterface $input, OutputInterface $output) : int
{
$acquiaCloudClient = $this->cloudApiClientService->getClient();
- $environment = $this->determineEnvironment($input, $output, FALSE, TRUE);
+ $environment = $this->determineEnvironment($input, $output, true, TRUE);
$certificate = $input->getArgument('certificate');
$privateKey = $input->getArgument('private-key');
$label = $this->determineOption('label');
|
Run Infection for added files only:
src/Command/Env/EnvCertCreateCommand.php#L34
Escaped Mutant for Mutator "TrueValue":
--- Original
+++ New
@@ @@
protected function execute(InputInterface $input, OutputInterface $output) : int
{
$acquiaCloudClient = $this->cloudApiClientService->getClient();
- $environment = $this->determineEnvironment($input, $output, FALSE, TRUE);
+ $environment = $this->determineEnvironment($input, $output, FALSE, false);
$certificate = $input->getArgument('certificate');
$privateKey = $input->getArgument('private-key');
$label = $this->determineOption('label');
|
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