Skip to content

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

CLI-1330: TypeError for SSH commands on Node environments

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

Triggered via pull request May 3, 2024 22:35
Status Failure
Total duration 1m 10s
Artifacts

mutation.yml

on: pull_request
Mutation Testing
1m 2s
Mutation Testing
Fit to window
Zoom out
Zoom in

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);