Skip to content

Commit dc10ed2

Browse files
authored
Merge pull request #5399 from magento-pangolin/MQE-2008-2.3-develop
[Pangolin] MQE-2008: Filter test generation and execution by severity
2 parents 84a808e + db9691b commit dc10ed2

File tree

6 files changed

+22
-14
lines changed

6 files changed

+22
-14
lines changed

app/code/Magento/Csp/Model/Collector/CspWhitelistXml/Converter.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ public function convert($source)
4343
}
4444
}
4545
$policyConfig[$id]['hosts'] = array_unique($policyConfig[$id]['hosts']);
46-
$policyConfig[$id]['hashes'] = array_unique($policyConfig[$id]['hashes']);
4746
}
4847

4948
return $policyConfig;

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
"friendsofphp/php-cs-fixer": "~2.14.0",
9090
"lusitanian/oauth": "~0.8.10",
9191
"magento/magento-coding-standard": "*",
92-
"magento/magento2-functional-testing-framework": "2.6.2",
92+
"magento/magento2-functional-testing-framework": "~2.6.3",
9393
"pdepend/pdepend": "2.5.2",
9494
"phpcompatibility/php-compatibility": "^9.3",
9595
"phpmd/phpmd": "@stable",

composer.lock

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

dev/tests/integration/_files/Magento/TestModuleCspConfig/etc/csp_whitelist.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
<values>
1212
<value id="mage-base" type="host">https://magento.com</value>
1313
<value id="hash" type="hash" algorithm="sha256">B2yPHKaXnvFWtRChIbabYmUBFZdVfKKXHbWtWidDVF8=</value>
14+
<value id="hash2" type="hash" algorithm="sha256">B3yPHKaXnvFWtRChIbabYmUBFZdVfKKXHbWtWidDVF8=</value>
1415
</values>
1516
</policy>
1617
<policy id="media-src">

dev/tests/integration/_files/Magento/TestModuleCspConfig2/etc/csp_whitelist.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
<values>
1212
<value id="devdocs-base" type="host">https://devdocs.magento.com</value>
1313
<value id="mage-base" type="host">http://magento.com</value>
14+
<value id="hash3" type="hash" algorithm="sha256">B4yPHKaXnvFWtRChIbabYmUBFZdVfKKXHbWtWidDVF8=</value>
1415
</values>
1516
</policy>
1617
</policies>

dev/tests/integration/testsuite/Magento/Csp/Model/Collector/CspWhitelistXmlCollectorTest.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,14 @@ public function testCollecting(): void
5353
if ($policy->getId() === 'object-src') {
5454
$this->assertInstanceOf(FetchPolicy::class, $policy);
5555
$this->assertEquals(['http://magento.com', 'https://devdocs.magento.com'], $policy->getHostSources());
56-
$this->assertEquals(['B2yPHKaXnvFWtRChIbabYmUBFZdVfKKXHbWtWidDVF8=' => 'sha256'], $policy->getHashes());
56+
$this->assertEquals(
57+
[
58+
'B2yPHKaXnvFWtRChIbabYmUBFZdVfKKXHbWtWidDVF8=' => 'sha256',
59+
'B3yPHKaXnvFWtRChIbabYmUBFZdVfKKXHbWtWidDVF8=' => 'sha256',
60+
'B4yPHKaXnvFWtRChIbabYmUBFZdVfKKXHbWtWidDVF8=' => 'sha256'
61+
],
62+
$policy->getHashes()
63+
);
5764
$objectSrcChecked = true;
5865
} elseif ($policy->getId() === 'media-src') {
5966
$this->assertInstanceOf(FetchPolicy::class, $policy);

0 commit comments

Comments
 (0)