CLI-1212: [auth:logout] remove secrets #2005
Annotations
6 warnings
Run Infection for added files only:
src/Command/Auth/AuthLoginCommand.php#L32
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
$activeKeyLabel = $keys[$activeKey]['label'];
$output->write("The following Cloud Platform API key is active: <options=bold>{$activeKeyLabel}</>");
} else {
- $output->write('No Cloud Platform API key is active');
+
}
// If keys already are saved locally, prompt to select.
if ($keys && $input->isInteractive()) {
|
Run Infection for added files only:
src/Command/Auth/AuthLoginCommand.php#L36
Escaped Mutant for Mutator "LogicalAnd":
--- Original
+++ New
@@ @@
$output->write('No Cloud Platform API key is active');
}
// If keys already are saved locally, prompt to select.
- if ($keys && $input->isInteractive()) {
+ if ($keys || $input->isInteractive()) {
foreach ($keys as $uuid => $key) {
$keys[$uuid]['uuid'] = $uuid;
}
|
Run Infection for added files only:
src/Command/Auth/AuthLoginCommand.php#L36
Escaped Mutant for Mutator "LogicalAndSingleSubExprNegation":
--- Original
+++ New
@@ @@
$output->write('No Cloud Platform API key is active');
}
// If keys already are saved locally, prompt to select.
- if ($keys && $input->isInteractive()) {
+ if (!$keys && $input->isInteractive()) {
foreach ($keys as $uuid => $key) {
$keys[$uuid]['uuid'] = $uuid;
}
|
Run Infection for added files only:
src/Command/Auth/AuthLoginCommand.php#L36
Escaped Mutant for Mutator "LogicalAndSingleSubExprNegation":
--- Original
+++ New
@@ @@
$output->write('No Cloud Platform API key is active');
}
// If keys already are saved locally, prompt to select.
- if ($keys && $input->isInteractive()) {
+ if ($keys && !$input->isInteractive()) {
foreach ($keys as $uuid => $key) {
$keys[$uuid]['uuid'] = $uuid;
}
|
Run Infection for added files only:
src/Command/Auth/AuthLogoutCommand.php#L38
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
$action = 'deleted';
}
$output->writeln("<info>The active Cloud Platform API credentials were {$action}</info>");
- $output->writeln('<info>No Cloud Platform API key is active. Run <options=bold>acli auth:login</> to continue using the Cloud Platform API.</info>');
+
return Command::SUCCESS;
}
}
|
Run Infection for added files only:
src/Command/CommandBase.php#L1353
Escaped Mutant for Mutator "FalseValue":
--- Original
+++ New
@@ @@
* explicitly or by default. In other words, we can't prompt for the value of
* an option that already has a default value.
*/
- protected function determineOption(string $optionName, bool $hidden = FALSE, ?Closure $validator = NULL, ?Closure $normalizer = NULL, string|bool|null $default = NULL) : string|int|bool|null
+ protected function determineOption(string $optionName, bool $hidden = true, ?Closure $validator = NULL, ?Closure $normalizer = NULL, string|bool|null $default = NULL) : string|int|bool|null
{
if ($optionValue = $this->input->getOption($optionName)) {
if (isset($normalizer)) {
|
The logs for this run have expired and are no longer available.
Loading