Skip to content

Commit 63d7602

Browse files
Merge branch 'master' into datadome-2.19.4
2 parents 6ae7fae + e8dfde5 commit 63d7602

File tree

110 files changed

+304
-138
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

110 files changed

+304
-138
lines changed

.github/workflows/code_quality.yml

Lines changed: 22 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
branches: [master]
66

77
env:
8-
MAGENTO_CODING_STANDARD: "v25"
8+
MAGENTO_CODING_STANDARD: "v30"
99

1010
jobs:
1111
static_code_check:
@@ -47,16 +47,17 @@ jobs:
4747
--health-interval=10s
4848
--health-timeout=5s
4949
--health-retries=3
50-
es:
51-
image: docker.elastic.co/elasticsearch/elasticsearch:${{ matrix.elasticsearch }}
50+
os:
51+
image: opensearchproject/opensearch:${{ matrix.opensearch }}
5252
env:
53-
ES_JAVA_OPTS: "-Xms512m -Xmx512m"
53+
OPENSEARCH_JAVA_OPTS: "-Xms512m -Xmx512m"
5454

5555
ports:
5656
- 9200:9200
5757
options: >-
5858
-e "discovery.type=single-node"
59-
-e "xpack.security.enabled=false"
59+
-e "plugins.security.disabled=true"
60+
--name "opensearch-node"
6061
--health-cmd="curl --silent --fail localhost:9200/_cluster/health || exit 1"
6162
--health-interval=30s
6263
--health-timeout=30s
@@ -66,20 +67,28 @@ jobs:
6667
matrix:
6768
# https://experienceleague.adobe.com/docs/commerce-operations/installation-guide/system-requirements.html
6869
include:
69-
- magento: "2.4.3"
70-
php: "7.4"
71-
composer: "v1"
72-
elasticsearch: "7.10.2"
70+
# Higher matching version 4.6.1 of magento/magento2-functional-testing-framework was found in public repository packagist.org
71+
# than 4.4.2 in private https://mirror.mage-os.org. Public package might've been taken over by a malicious entity,
72+
# please investigate and update package requirement to match the version from the private repository
73+
#- magento: "2.4.3-p3"
74+
# php: "7.4"
75+
# composer: "v1"
76+
# elasticsearch: "7.10.2"
7377

7478
- magento: "2.4.4"
7579
php: "8.1"
7680
composer: "v2"
77-
elasticsearch: "7.16.3"
81+
opensearch: "1.2.0"
7882

7983
- magento: "2.4.5"
8084
php: "8.1"
8185
composer: "v2"
82-
elasticsearch: "7.17.5"
86+
opensearch: "1.2.0"
87+
88+
- magento: "2.4.6"
89+
php: "8.2"
90+
composer: "v2"
91+
opensearch: "2.5.0"
8392

8493
steps:
8594
- name: Setup PHP
@@ -144,4 +153,5 @@ jobs:
144153
run: echo "::add-matcher::${{ github.workspace }}/app/code/Fastly/Cdn/.github/tests/phpunit_matcher.json"
145154

146155
- name: Run tests
147-
run: vendor/bin/phpunit -c dev/tests/unit/phpunit.xml.dist --teamcity app/code/Fastly/Cdn/
156+
run: ../../../vendor/bin/phpunit -c ../unit/phpunit.xml.dist --teamcity ../../../app/code/Fastly/Cdn/
157+
working-directory: dev/tests/integration

Controller/Adminhtml/FastlyCdn/Advanced/CheckTlsSetting.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@
3434
*/
3535
class CheckTlsSetting extends Action
3636
{
37+
const ADMIN_RESOURCE = 'Magento_Config::config';
38+
3739
/**
3840
* @var Api
3941
*/

Controller/Adminhtml/FastlyCdn/Advanced/ForceTls.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@
3535
*/
3636
class ForceTls extends Action
3737
{
38+
const ADMIN_RESOURCE = 'Magento_Config::config';
39+
3840
/**
3941
* @var Http
4042
*/

Controller/Adminhtml/FastlyCdn/Backend/ConfigureBackend.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@
3535
*/
3636
class ConfigureBackend extends Action
3737
{
38+
const ADMIN_RESOURCE = 'Magento_Config::config';
39+
3840
use ValidationTrait;
3941

4042
/**

Controller/Adminhtml/FastlyCdn/Backend/CreateBackend.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@
3939
*/
4040
class CreateBackend extends Action
4141
{
42+
const ADMIN_RESOURCE = 'Magento_Config::config';
43+
4244
use ValidationTrait;
4345

4446
/**

Controller/Adminhtml/FastlyCdn/Backend/DeleteBackend.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@
3434
*/
3535
class DeleteBackend extends Action
3636
{
37+
const ADMIN_RESOURCE = 'Magento_Config::config';
38+
3739
/**
3840
* @var Http
3941
*/

Controller/Adminhtml/FastlyCdn/Backend/GetBackends.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@
3737
*/
3838
class GetBackends extends Action
3939
{
40+
const ADMIN_RESOURCE = 'Magento_Config::config';
41+
4042
/**
4143
* @var Http
4244
*/

Controller/Adminhtml/FastlyCdn/BasicAuthentication/CheckAuthDictionary.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@
3333
*/
3434
class CheckAuthDictionary extends Action
3535
{
36+
const ADMIN_RESOURCE = 'Magento_Config::config';
37+
3638
/**
3739
* @var Api
3840
*/

Controller/Adminhtml/FastlyCdn/BasicAuthentication/CheckAuthSetting.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@
3333
*/
3434
class CheckAuthSetting extends Action
3535
{
36+
const ADMIN_RESOURCE = 'Magento_Config::config';
37+
3638
/**
3739
* @var Api
3840
*/

Controller/Adminhtml/FastlyCdn/BasicAuthentication/CheckAuthUsersAvailable.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@
3333
*/
3434
class CheckAuthUsersAvailable extends Action
3535
{
36+
const ADMIN_RESOURCE = 'Magento_Config::config';
37+
3638
/**
3739
* @var Api
3840
*/

0 commit comments

Comments
 (0)