Skip to content

Commit 0789599

Browse files
authored
Merge pull request #139 from magento-commerce/MCLOUD-12080
MCLOUD-12080: Fix Redis and RabbitMQ version validator
2 parents 246422b + f01197c commit 0789599

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

src/Service/Validator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class Validator
2020
* Supported version constraints of Redis services
2121
*/
2222
private const REDIS_SUPPORT_VERSIONS = [
23-
'*' => '~3.2.0 || ~4.0.0 || ~5.0.0 || ~6.0.0 || ~6.2.0 || ~7.0.0',
23+
'*' => '~3.2.0 || ~4.0.0 || ~5.0.0 || ~6.0.0 || ~6.2.0 || ~7.0.0 || ~7.2.0',
2424
];
2525

2626
/**
@@ -91,7 +91,7 @@ class Validator
9191
'>=2.3.0 <2.3.7-p4 || >=2.4.0 <2.4.3-p3' => '~3.5.0 || ~3.7.0 || ~3.8.0',
9292
'>=2.4.3-p3 <2.4.5-p3 || ~2.3.7-p4' => '~3.5.0 || ~3.7.0 || ~3.8.0 || ~3.9.0',
9393
'>=2.4.5-p3 <2.4.7' => '~3.9.0 || ~3.11.0',
94-
'>=2.4.7' => '~3.11.0',
94+
'>=2.4.7' => '~3.12.0 || ~3.13.0',
9595
],
9696
ServiceInterface::NAME_NODE => [
9797
'*' => '^6 || ^8 || ^10 || ^11',

src/Test/Unit/Service/ValidatorTest.php

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ public function validateVersionsDataProvider(): array
516516
ServiceInterface::NAME_PHP => '8.2.0',
517517
ServiceInterface::NAME_DB_MARIA => '10.6.0',
518518
ServiceInterface::NAME_VARNISH => '7.1.1',
519-
ServiceInterface::NAME_REDIS => '7.0.0',
519+
ServiceInterface::NAME_REDIS => '7.2.0',
520520
ServiceInterface::NAME_OPENSEARCH => '2.3.0',
521521
ServiceInterface::NAME_RABBITMQ => '3.9.0' // wrong
522522
],
@@ -528,9 +528,16 @@ public function validateVersionsDataProvider(): array
528528
ServiceInterface::NAME_PHP => '8.2.0',
529529
ServiceInterface::NAME_DB_MARIA => '10.6.0',
530530
ServiceInterface::NAME_VARNISH => '7.1.1',
531-
ServiceInterface::NAME_REDIS => '7.0.0',
531+
ServiceInterface::NAME_REDIS => '7.2.0',
532532
ServiceInterface::NAME_OPENSEARCH => '2.3.0',
533-
ServiceInterface::NAME_RABBITMQ => '3.11.0'
533+
ServiceInterface::NAME_RABBITMQ => '3.12.0'
534+
],
535+
0
536+
],
537+
[
538+
'2.4.7',
539+
[
540+
ServiceInterface::NAME_RABBITMQ => '3.13.0'
534541
],
535542
0
536543
],

0 commit comments

Comments
 (0)