CLI-1330: TypeError for SSH commands on Node environments #2280
Annotations
1 error and 9 warnings
Run Infection for added files only
Process completed with exit code 1.
|
Run Infection for added files only:
src/Command/CommandBase.php#L1688
Escaped Mutant for Mutator "LogicalAnd":
--- Original
+++ New
@@ @@
protected function getAnyNonProdAhEnvironment(string $cloudAppUuid) : EnvironmentResponse|false
{
return $this->getAnyAhEnvironment($cloudAppUuid, function (EnvironmentResponse $environment) {
- return !$environment->flags->production && $environment->type === 'drupal';
+ return !$environment->flags->production || $environment->type === 'drupal';
});
}
/**
|
Run Infection for added files only:
src/Command/Pull/PullDatabaseCommand.php#L43
Escaped Mutant for Mutator "FalseValue":
--- Original
+++ New
@@ @@
// $noImport implies $noScripts.
$noScripts = $noImport || $noScripts;
$this->setDirAndRequireProjectCwd($input);
- $sourceEnvironment = $this->determineEnvironment($input, $output, TRUE, FALSE);
+ $sourceEnvironment = $this->determineEnvironment($input, $output, TRUE, true);
$this->pullDatabase($input, $output, $sourceEnvironment, $onDemand, $noImport, $multipleDbs);
if (!$noScripts) {
$this->runDrushCacheClear($this->getOutputCallback($output, $this->checklist), $this->checklist);
|
Run Infection for added files only:
src/Command/Pull/PullFilesCommand.php#L25
Escaped Mutant for Mutator "TrueValue":
--- Original
+++ New
@@ @@
protected function execute(InputInterface $input, OutputInterface $output) : int
{
$this->setDirAndRequireProjectCwd($input);
- $sourceEnvironment = $this->determineEnvironment($input, $output, TRUE, FALSE);
+ $sourceEnvironment = $this->determineEnvironment($input, $output, false, FALSE);
$this->pullFiles($input, $output, $sourceEnvironment);
return Command::SUCCESS;
}
}
|
Run Infection for added files only:
src/Command/Pull/PullFilesCommand.php#L25
Escaped Mutant for Mutator "FalseValue":
--- Original
+++ New
@@ @@
protected function execute(InputInterface $input, OutputInterface $output) : int
{
$this->setDirAndRequireProjectCwd($input);
- $sourceEnvironment = $this->determineEnvironment($input, $output, TRUE, FALSE);
+ $sourceEnvironment = $this->determineEnvironment($input, $output, TRUE, true);
$this->pullFiles($input, $output, $sourceEnvironment);
return Command::SUCCESS;
}
}
|
Run Infection for added files only:
src/Command/Push/PushDatabaseCommand.php#L30
Escaped Mutant for Mutator "FalseValue":
--- Original
+++ New
@@ @@
}
protected function execute(InputInterface $input, OutputInterface $output) : int
{
- $destinationEnvironment = $this->determineEnvironment($input, $output, FALSE, FALSE);
+ $destinationEnvironment = $this->determineEnvironment($input, $output, true, FALSE);
$acquiaCloudClient = $this->cloudApiClientService->getClient();
$databases = $this->determineCloudDatabases($acquiaCloudClient, $destinationEnvironment, $input->getArgument('site'));
// We only support pushing a single database.
|
Run Infection for added files only:
src/Command/Push/PushDatabaseCommand.php#L30
Escaped Mutant for Mutator "FalseValue":
--- Original
+++ New
@@ @@
}
protected function execute(InputInterface $input, OutputInterface $output) : int
{
- $destinationEnvironment = $this->determineEnvironment($input, $output, FALSE, FALSE);
+ $destinationEnvironment = $this->determineEnvironment($input, $output, FALSE, true);
$acquiaCloudClient = $this->cloudApiClientService->getClient();
$databases = $this->determineCloudDatabases($acquiaCloudClient, $destinationEnvironment, $input->getArgument('site'));
// We only support pushing a single database.
|
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()]);
}
|
Run Infection for added files only:
src/Command/Push/PushFilesCommand.php#L27
Escaped Mutant for Mutator "FalseValue":
--- Original
+++ New
@@ @@
protected function execute(InputInterface $input, OutputInterface $output) : int
{
$this->setDirAndRequireProjectCwd($input);
- $destinationEnvironment = $this->determineEnvironment($input, $output, FALSE, FALSE);
+ $destinationEnvironment = $this->determineEnvironment($input, $output, true, FALSE);
$chosenSite = $input->getArgument('site');
if (!$chosenSite) {
$chosenSite = $this->promptChooseDrupalSite($destinationEnvironment);
|
Run Infection for added files only:
src/Command/Push/PushFilesCommand.php#L27
Escaped Mutant for Mutator "FalseValue":
--- Original
+++ New
@@ @@
protected function execute(InputInterface $input, OutputInterface $output) : int
{
$this->setDirAndRequireProjectCwd($input);
- $destinationEnvironment = $this->determineEnvironment($input, $output, FALSE, FALSE);
+ $destinationEnvironment = $this->determineEnvironment($input, $output, FALSE, true);
$chosenSite = $input->getArgument('site');
if (!$chosenSite) {
$chosenSite = $this->promptChooseDrupalSite($destinationEnvironment);
|
Loading