Skip to content

Commit 0d2d01f

Browse files
MCLOUD-13311: Added health check fix for Integration test & fixed composer test class
1 parent 55f8374 commit 0d2d01f

File tree

21 files changed

+62
-22
lines changed

21 files changed

+62
-22
lines changed

src/Test/Integration/BuildComposeTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,12 @@ public function testBuild(string $directory, array $options): void
5151
);
5252

5353
/** @var MockObject|InputInterface $inputMock */
54-
$inputMock = $this->getMockForAbstractClass(InputInterface::class);
54+
$inputMock = $this->createMock(InputInterface::class);
5555

5656
$inputMock->method('getOption')
5757
->willReturnMap($options);
5858
/** @var MockObject|OutputInterface $outputMock */
59-
$outputMock = $this->getMockForAbstractClass(OutputInterface::class);
59+
$outputMock = $this->createMock(OutputInterface::class);
6060

6161
$command->execute($inputMock, $outputMock);
6262

src/Test/Integration/_files/cloud_base/docker-compose.exp.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ services:
1717
- 'magento-magento-db:/var/lib/mysql'
1818
- '.docker/mysql/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d'
1919
healthcheck:
20-
test: 'mysqladmin ping -h localhost -pmagento2'
20+
test:
21+
- CMD-SHELL
22+
- 'mariadb-admin ping -h localhost -pmagento2'
2123
interval: 30s
2224
timeout: 30s
2325
retries: 3

src/Test/Integration/_files/cloud_base_developer/docker-compose.exp.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ services:
1717
- '.docker/mysql/mariadb.conf.d:/etc/mysql/mariadb.conf.d'
1818
- '.docker/mysql/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d'
1919
healthcheck:
20-
test: 'mysqladmin ping -h localhost -pmagento2'
20+
test:
21+
- CMD-SHELL
22+
- 'mariadb-admin ping -h localhost -pmagento2'
2123
interval: 30s
2224
timeout: 30s
2325
retries: 3

src/Test/Integration/_files/cloud_base_developer_manual/docker-compose.exp.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ services:
1515
- 'magento-app:/app'
1616
- 'magento-magento-db:/var/lib/mysql'
1717
healthcheck:
18-
test: 'mysqladmin ping -h localhost -pmagento2'
18+
test:
19+
- CMD-SHELL
20+
- 'mariadb-admin ping -h localhost -pmagento2'
1921
interval: 30s
2022
timeout: 30s
2123
retries: 3

src/Test/Integration/_files/cloud_base_mftf/docker-compose.exp.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ services:
1717
- 'magento-magento-db:/var/lib/mysql'
1818
- '.docker/mysql/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d'
1919
healthcheck:
20-
test: 'mysqladmin ping -h localhost -pmagento2'
20+
test:
21+
- CMD-SHELL
22+
- 'mariadb-admin ping -h localhost -pmagento2'
2123
interval: 30s
2224
timeout: 30s
2325
retries: 3

src/Test/Integration/_files/cloud_base_os_2.3_cli/docker-compose.exp.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ services:
1717
- 'magento-magento-db:/var/lib/mysql'
1818
- '.docker/mysql/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d'
1919
healthcheck:
20-
test: 'mysqladmin ping -h localhost -pmagento2'
20+
test:
21+
- CMD-SHELL
22+
- 'mariadb-admin ping -h localhost -pmagento2'
2123
interval: 30s
2224
timeout: 30s
2325
retries: 3

src/Test/Integration/_files/cloud_base_os_2_cli/docker-compose.exp.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ services:
1717
- 'magento-magento-db:/var/lib/mysql'
1818
- '.docker/mysql/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d'
1919
healthcheck:
20-
test: 'mysqladmin ping -h localhost -pmagento2'
20+
test:
21+
- CMD-SHELL
22+
- 'mariadb-admin ping -h localhost -pmagento2'
2123
interval: 30s
2224
timeout: 30s
2325
retries: 3

src/Test/Integration/_files/cloud_base_test/docker-compose.exp.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ services:
1717
- 'mymagento-magento-db:/var/lib/mysql'
1818
- '.docker/mysql/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d'
1919
healthcheck:
20-
test: 'mysqladmin ping -h localhost -pmagento2'
20+
test:
21+
- CMD-SHELL
22+
- 'mariadb-admin ping -h localhost -pmagento2'
2123
interval: 30s
2224
timeout: 30s
2325
retries: 3

src/Test/Integration/_files/cloud_base_with_custom_zookeeper_image/docker-compose.exp.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ services:
1515
- '.docker/mnt:/mnt:rw,delegated'
1616
- 'mymagento-magento-db:/var/lib/mysql'
1717
healthcheck:
18-
test: 'mysqladmin ping -h localhost -pmagento2'
18+
test:
19+
- CMD-SHELL
20+
- 'mariadb-admin ping -h localhost -pmagento2'
1921
interval: 30s
2022
timeout: 30s
2123
retries: 3

src/Test/Integration/_files/cloud_base_with_custom_zookeeper_image_and_version/docker-compose.exp.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ services:
1515
- '.docker/mnt:/mnt:rw,delegated'
1616
- 'mymagento-magento-db:/var/lib/mysql'
1717
healthcheck:
18-
test: 'mysqladmin ping -h localhost -pmagento2'
18+
test:
19+
- CMD-SHELL
20+
- 'mariadb-admin ping -h localhost -pmagento2'
1921
interval: 30s
2022
timeout: 30s
2123
retries: 3

0 commit comments

Comments
 (0)