File tree 3 files changed +17
-3
lines changed
Test/Unit/Config/Validator/Deploy
3 files changed +17
-3
lines changed Original file line number Diff line number Diff line change 2
2
"name" : " magento/ece-tools" ,
3
3
"description" : " Provides tools to build and deploy Magento 2 Enterprise Edition" ,
4
4
"type" : " magento2-component" ,
5
- "version" : " 2002.1.3 " ,
5
+ "version" : " 2002.1.4 " ,
6
6
"license" : " OSL-3.0" ,
7
7
"repositories" : {
8
8
"repo.magento.com" : {
Original file line number Diff line number Diff line change 10
10
use Magento \MagentoCloud \App \Error ;
11
11
use Magento \MagentoCloud \App \GenericException ;
12
12
use Magento \MagentoCloud \Config \ConfigMerger ;
13
+ use Magento \MagentoCloud \Config \SearchEngine ;
13
14
use Magento \MagentoCloud \Config \Stage \DeployInterface ;
14
15
use Magento \MagentoCloud \Config \Validator ;
15
16
use Magento \MagentoCloud \Config \Validator \ResultFactory ;
16
17
use Magento \MagentoCloud \Config \ValidatorException ;
17
18
use Magento \MagentoCloud \Config \ValidatorInterface ;
18
19
use Magento \MagentoCloud \Package \MagentoVersion ;
19
- use Magento \MagentoCloud \Service \ElasticSearch ;
20
20
21
21
/**
22
22
* Validates SEARCH_CONFIGURATION variable
@@ -74,7 +74,7 @@ public function validate(): Validator\ResultInterface
74
74
75
75
if ($ this ->magentoVersion ->isGreaterOrEqual ('2.4.0 ' )
76
76
&& isset ($ searchConfig ['engine ' ])
77
- && $ searchConfig ['engine ' ] != ElasticSearch:: ENGINE_NAME
77
+ && $ searchConfig ['engine ' ] == SearchEngine:: ENGINE_MYSQL
78
78
) {
79
79
return $ this ->resultFactory ->errorByCode (Error::DEPLOY_WRONG_SEARCH_ENGINE );
80
80
}
Original file line number Diff line number Diff line change @@ -174,6 +174,20 @@ public function validateDataProvider(): array
174
174
Success::class,
175
175
true
176
176
],
177
+ [
178
+ [
179
+ 'engine ' => 'elasticsearch7 ' ,
180
+ ],
181
+ Success::class,
182
+ true
183
+ ],
184
+ [
185
+ [
186
+ 'engine ' => 'elasticsuite ' ,
187
+ ],
188
+ Success::class,
189
+ true
190
+ ],
177
191
];
178
192
}
179
193
You can’t perform that action at this time.
0 commit comments