Skip to content

Commit 8230d8b

Browse files
authored
Merge pull request #461 from magento-commerce/master
Sync PR to develop
2 parents 56db66b + 5bcec8a commit 8230d8b

File tree

9 files changed

+21
-39
lines changed

9 files changed

+21
-39
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
Magento Functional Testing Framework Changelog
22
================================================
33

4+
5.0.4
5+
---------
6+
### Enhancements
7+
* Bumped aws/aws-sdk-php package to 3.342.28
8+
* Bumped composer/composer to 2.8.8
9+
* Bumped codeception/codeception to 5.2.1
10+
* Bumped codeception/module-webdriver to 4.0.3
11+
* Bumped guzzlehttp/guzzle to 7.9.3
12+
* Bumped monolog/monolog to 3.9.0
13+
* Updated cache package version to @v4
14+
415
5.0.3
516
---------
617
### Fixes

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "magento/magento2-functional-testing-framework",
33
"description": "Magento2 Functional Testing Framework",
44
"type": "library",
5-
"version": "5.0.3",
5+
"version": "5.0.4",
66
"license": "AGPL-3.0",
77
"keywords": ["magento", "automation", "functional", "testing"],
88
"config": {

composer.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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)