Skip to content

Commit 5bcec8a

Browse files
committed
Revert "Merge branch 'develop' into master"
This reverts commit 66e2290, reversing changes made to d43d2a4.
1 parent 66e2290 commit 5bcec8a

File tree

6 files changed

+7
-36
lines changed

6 files changed

+7
-36
lines changed

etc/config/command.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ function escapeCommand($command)
9696
*/
9797
function validateCommand($magentoBinary, $command)
9898
{
99-
// phpcs:ignore Magento2.Security.InsecureFunction
10099
exec($magentoBinary . ' list', $commandList);
101100
// Trim list of commands after first whitespace
102101
$commandList = array_map("trimAfterWhitespace", $commandList);

src/Magento/FunctionalTestingFramework/Allure/AllureHelper.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ public static function addAttachmentToCurrentStep($data, $caption): void
2424
{
2525
if (!is_string($data)) {
2626
try {
27-
// phpcs:ignore Magento2.Security.InsecureFunction
2827
$data = serialize($data);
2928
} catch (\Exception $exception) {
3029
throw new \Exception($data->getMessage());
@@ -49,7 +48,6 @@ public static function addAttachmentToCurrentStep($data, $caption): void
4948
public static function addAttachmentToLastStep($data, $caption): void
5049
{
5150
if (!is_string($data)) {
52-
// phpcs:ignore Magento2.Security.InsecureFunction
5351
$data = serialize($data);
5452
}
5553
if (@file_exists($data) && is_file($data)) {

src/Magento/FunctionalTestingFramework/DataGenerator/Handlers/SecretStorage/VaultStorage.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,6 @@ private function getTokenHelperScript($lines)
251251
*/
252252
private function execVaultTokenHelper($cmd)
253253
{
254-
// phpcs:ignore Magento2.Security.InsecureFunction
255254
exec($cmd, $out, $status);
256255
if ($status === 0 && isset($out[0]) && !empty($out[0])) {
257256
return $out[0];

src/Magento/FunctionalTestingFramework/DataTransport/Auth/Tfa/Clock.php

Lines changed: 0 additions & 24 deletions
This file was deleted.

src/Magento/FunctionalTestingFramework/DataTransport/Auth/Tfa/OTP.php

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,7 @@ private static function create($path)
5757
throw new TestFrameworkException('Unable to get OTP' . PHP_EOL . $e->getMessage());
5858
}
5959

60-
self::$totps[$path] = TOTP::create(
61-
$secret,
62-
TOTP::DEFAULT_PERIOD,
63-
TOTP::DEFAULT_DIGEST,
64-
TOTP::DEFAULT_DIGITS,
65-
TOTP::DEFAULT_EPOCH,
66-
new Clock()
67-
);
60+
self::$totps[$path] = TOTP::create($secret);
6861
self::$totps[$path]->setIssuer('MFTF');
6962
self::$totps[$path]->setLabel('MFTF Testing');
7063
}

src/Magento/FunctionalTestingFramework/Extension/TestContextExtension.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,7 @@ public function stepName(\Codeception\Event\StepEvent $e)
383383
//Hard set to 200; we don't expose this config in MFTF
384384
$argumentsLength = 200;
385385
$stepKey = null;
386+
386387
if (!($e->getStep() instanceof Comment)) {
387388
$stepKey = $this->retrieveStepKeyForAllure($e->getStep(), $e->getTest()->getMetadata()->getFilename());
388389
$isActionGroup = (
@@ -400,10 +401,15 @@ public function stepName(\Codeception\Event\StepEvent $e)
400401
}
401402
// DO NOT alter action if actionGroup is starting, need the exact actionGroup name for good logging
402403
if (strpos($stepAction, ActionGroupObject::ACTION_GROUP_CONTEXT_START) === false
404+
&& !($e->getStep() instanceof Comment)
403405
) {
404406
$stepAction = $e->getStep()->getHumanizedActionWithoutArguments();
405407
}
406408
$stepArgs = $e->getStep()->getArgumentsAsString($argumentsLength);
409+
if (!trim($stepAction)) {
410+
$stepAction = $e->getStep()->getMetaStep()->getHumanizedActionWithoutArguments();
411+
$stepArgs = $e->getStep()->getMetaStep()->getArgumentsAsString($argumentsLength);
412+
}
407413
$stepName = '';
408414

409415
if (isset($stepName)) {

0 commit comments

Comments
 (0)