Skip to content

Commit 61030f7

Browse files
authored
Merge branch 'develop' into MCLOUD-7197
2 parents bbedd52 + c17952b commit 61030f7

File tree

2 files changed

+53
-3
lines changed

2 files changed

+53
-3
lines changed

src/Service/Validator.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,17 @@ class Validator
4343
'>=2.3.3' => '^4.0 || ^5.0 || ^6.2',
4444
],
4545
ServiceInterface::NAME_REDIS => [
46-
'*' => '~3.2.0 || ~4.0.0 || ~5.0.0',
46+
'*' => '~3.2.0 || ~4.0.0 || ~5.0.0 || ~6.0.0',
4747
],
4848
ServiceInterface::NAME_ELASTICSEARCH => [
4949
'<2.2.0' => '~1.7.0 || ~2.4.0',
5050
'>=2.2.0 <2.2.8 || 2.3.0' => '~1.7.0 || ~2.4.0 || ~5.2.0',
5151
'>=2.2.8 <2.3.0 || >=2.3.1 <2.3.5' => '~1.7.0 || ~2.4.0 || ~5.2.0 || ~6.5.0',
52-
'>=2.3.5 <2.4.0' => '~1.7.0 || ~2.4.0 || ~5.2.0 || ~6.5.0 || ~6.8.0 || ~7.5.0 || ~7.6.0 || ~7.7.0',
53-
'>=2.4.0' => '~7.5.0 || ~7.6.0 || ~7.7.0',
52+
'>=2.3.5 <2.3.7' => '~1.7.0 || ~2.4.0 || ~5.2.0 || ~6.5.0 || ~6.8.0 || ~7.5.0 || ~7.6.0 || ~7.7.0',
53+
'>=2.3.7 <2.4.0' => '~1.7.0 || ~2.4.0 || ~5.2.0 || ~6.5.0 || ~6.8.0 || ~7.5.0 || ~7.6.0 || ~7.7.0' .
54+
' || ~7.9.0',
55+
'>=2.4.0 <2.4.2' => '~7.5.0 || ~7.6.0 || ~7.7.0',
56+
'>=2.4.2' => '~7.5.0 || ~7.6.0 || ~7.7.0 || ~7.9.0',
5457
],
5558
ServiceInterface::NAME_RABBITMQ => [
5659
'<2.3.0' => '~3.5.0',

src/Test/Unit/Service/ValidatorTest.php

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ public function testValidateNonexistentService()
107107

108108
/**
109109
* @return array
110+
*
111+
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
110112
*/
111113
public function validateVersionsDataProvider(): array
112114
{
@@ -180,6 +182,51 @@ public function validateVersionsDataProvider(): array
180182
],
181183
0
182184
],
185+
[
186+
'2.4.1',
187+
[
188+
ServiceInterface::NAME_PHP => '7.4',
189+
ServiceInterface::NAME_DB => '10.4',
190+
ServiceInterface::NAME_NGINX => '1.9',
191+
ServiceInterface::NAME_VARNISH => '6.2',
192+
ServiceInterface::NAME_REDIS => '5.0',
193+
ServiceInterface::NAME_ELASTICSEARCH => '7.9', // wrong
194+
ServiceInterface::NAME_RABBITMQ => '3.8'
195+
],
196+
1
197+
],
198+
[
199+
'2.4.2',
200+
[
201+
ServiceInterface::NAME_PHP => '7.4',
202+
ServiceInterface::NAME_DB => '10.4',
203+
ServiceInterface::NAME_NGINX => '1.9',
204+
ServiceInterface::NAME_VARNISH => '6.2',
205+
ServiceInterface::NAME_REDIS => '5.0',
206+
ServiceInterface::NAME_ELASTICSEARCH => '7.9',
207+
ServiceInterface::NAME_RABBITMQ => '3.8'
208+
],
209+
0
210+
],
211+
[
212+
'2.3.6',
213+
[
214+
ServiceInterface::NAME_PHP => '7.4', // wrong
215+
ServiceInterface::NAME_DB => '10.2',
216+
ServiceInterface::NAME_NGINX => '1.19',
217+
ServiceInterface::NAME_VARNISH => '6.2',
218+
ServiceInterface::NAME_REDIS => '5.0',
219+
ServiceInterface::NAME_ELASTICSEARCH => '7.9', //wrong
220+
],
221+
2
222+
],
223+
[
224+
'2.3.7',
225+
[
226+
ServiceInterface::NAME_ELASTICSEARCH => '7.9',
227+
],
228+
0
229+
],
183230
[
184231
'2.1.4',
185232
[ServiceInterface::NAME_PHP => '5.6'],

0 commit comments

Comments
 (0)