CLI-1330: TypeError for SSH commands on Node environments #2286
mutation.yml
on: pull_request
Mutation Testing
1m 2s
Annotations
1 error and 7 warnings
Mutation Testing
Process completed with exit code 1.
|
Mutation Testing:
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;
}
}
|
Mutation Testing:
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;
}
}
|
Mutation Testing:
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.
|
Mutation Testing:
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.
|
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()]);
}
|
Mutation Testing:
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);
|
Mutation Testing:
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);
|