Skip to content

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

CLI-1330: TypeError for SSH commands on Node environments

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

Triggered via pull request May 7, 2024 04:06
Status Failure
Total duration 12m 4s
Artifacts

mutation.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

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