Skip to content

Commit 36b7fa4

Browse files
committed
MCP-903: Fix default connection = db setting after Magento installation
- Make db connection as a default for queues in integration and web api tests;
1 parent d22a1ea commit 36b7fa4

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

app/code/Magento/MessageQueue/Setup/ConfigOptionsList.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ public function getOptions()
6262
self::INPUT_KEY_QUEUE_DEFAULT_CONNECTION,
6363
TextConfigOption::FRONTEND_WIZARD_TEXT,
6464
self::CONFIG_PATH_QUEUE_DEFAULT_CONNECTION,
65-
'Message queues default connection. Can be \'db\', \'amqp\' or a custom queue system that is installed and configured. Otherwise messages won\'t be processed correctly.'
65+
'Message queues default connection. Can be \'db\', \'amqp\' or a custom queue system that is'
66+
. ' installed and configured. Otherwise messages won\'t be processed correctly.'
6667
),
6768
];
6869
}

dev/tests/api-functional/config/post-install-setup-command-config.php.dist

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,15 @@
66

77
// List of bin/magento setup CLI commands to run after setup:install
88
return [
9-
/*
109
[
1110
'command' => 'setup:config:set',
1211
'config' => [
12+
'--queue-default-connection' => 'db'
13+
/*
1314
'--remote-storage-driver' => 'aws-s3',
1415
'--remote-storage-bucket' => 'myBucket',
15-
'--remote-storage-region' => 'us-east-1'
16+
'--remote-storage-region' => 'us-east-1',
17+
*/
1618
]
1719
]
18-
*/
1920
];

dev/tests/integration/etc/post-install-setup-command-config.php.dist

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
66

77
// List of bin/magento setup CLI commands to run after setup:install
88
return [
9-
/*
109
[
1110
'command' => 'setup:config:set',
1211
'config' => [
12+
'--queue-default-connection' => 'db'
13+
/*
1314
'--remote-storage-driver' => 'aws-s3',
1415
'--remote-storage-bucket' => 'myBucket',
15-
'--remote-storage-region' => 'us-east-1',
16-
'--queue-default-connection' => 'db'
16+
'--remote-storage-region' => 'us-east-1'
17+
*/
1718
]
1819
]
19-
*/
2020
];

0 commit comments

Comments
 (0)