Skip to content

Commit cff322f

Browse files
committed
B2B-1816: AWS Managed Queue: Get Cloud-Native-Testing Integration Test Builds to Work Against AWS Managed Queue
1 parent 6b173bd commit cff322f

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

dev/tests/integration/testsuite/Magento/Framework/MessageQueue/TopologyTest.php

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,12 @@ public function testTopologyInstallation(array $expectedConfig, array $bindingCo
8383
*/
8484
public function exchangeDataProvider(): array
8585
{
86+
$virtualHost = defined('RABBITMQ_VIRTUALHOST') ? RABBITMQ_VIRTUALHOST : Amqp::DEFAULT_VIRTUALHOST;
8687
return [
8788
'magento-topic-based-exchange1' => [
8889
'exchangeConfig' => [
8990
'name' => 'magento-topic-based-exchange1',
90-
'vhost' => '/',
91+
'vhost' => $virtualHost,
9192
'type' => 'topic',
9293
'durable' => true,
9394
'auto_delete' => false,
@@ -99,7 +100,7 @@ public function exchangeDataProvider(): array
99100
'bindingConfig' => [
100101
[
101102
'source' => 'magento-topic-based-exchange1',
102-
'vhost' => '/',
103+
'vhost' => $virtualHost,
103104
'destination' => 'topic-queue1',
104105
'destination_type' => 'queue',
105106
'routing_key' => 'anotherTopic1',
@@ -112,7 +113,7 @@ public function exchangeDataProvider(): array
112113
'magento-topic-based-exchange2' => [
113114
'exchangeConfig' => [
114115
'name' => 'magento-topic-based-exchange2',
115-
'vhost' => '/',
116+
'vhost' => $virtualHost,
116117
'type' => 'topic',
117118
'durable' => true,
118119
'auto_delete' => false,
@@ -125,7 +126,7 @@ public function exchangeDataProvider(): array
125126
'bindingConfig' => [
126127
[
127128
'source' => 'magento-topic-based-exchange2',
128-
'vhost' => '/',
129+
'vhost' => $virtualHost,
129130
'destination' => 'topic-queue2',
130131
'destination_type' => 'queue',
131132
'routing_key' => 'anotherTopic2',
@@ -140,7 +141,7 @@ public function exchangeDataProvider(): array
140141
'magento-topic-based-exchange3' => [
141142
'exchangeConfig' => [
142143
'name' => 'magento-topic-based-exchange3',
143-
'vhost' => '/',
144+
'vhost' => $virtualHost,
144145
'type' => 'topic',
145146
'durable' => false,
146147
'auto_delete' => true,
@@ -152,7 +153,7 @@ public function exchangeDataProvider(): array
152153
'magento-topic-based-exchange4' => [
153154
'exchangeConfig' => [
154155
'name' => 'magento-topic-based-exchange4',
155-
'vhost' => '/',
156+
'vhost' => $virtualHost,
156157
'type' => 'topic',
157158
'durable' => true,
158159
'auto_delete' => false,
@@ -162,7 +163,7 @@ public function exchangeDataProvider(): array
162163
'bindingConfig' => [
163164
[
164165
'source' => 'magento-topic-based-exchange4',
165-
'vhost' => '/',
166+
'vhost' => $virtualHost,
166167
'destination' => 'topic-queue1',
167168
'destination_type' => 'queue',
168169
'routing_key' => '#',
@@ -172,7 +173,7 @@ public function exchangeDataProvider(): array
172173
],
173174
[
174175
'source' => 'magento-topic-based-exchange4',
175-
'vhost' => '/',
176+
'vhost' => $virtualHost,
176177
'destination' => 'topic-queue2',
177178
'destination_type' => 'queue',
178179
'routing_key' => '*.*.*',

0 commit comments

Comments
 (0)