Skip to content

Commit c51c395

Browse files
authored
Merge pull request #404 from asilgalis/sqs-transport-factory-config
Update sqs transport factory with missing endpoint parameter
2 parents 3a868bd + b174327 commit c51c395

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

bin/test

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ waitForService beanstalkd 11300 50
3737
waitForService gearmand 4730 50
3838
waitForService kafka 9092 50
3939

40-
php pkg/job-queue/Tests/Functional/app/console doctrine:database:create
40+
php pkg/job-queue/Tests/Functional/app/console doctrine:database:create --if-not-exists
4141
php pkg/job-queue/Tests/Functional/app/console doctrine:schema:update --force
4242

4343
#php pkg/enqueue-bundle/Tests/Functional/app/console.php config:dump-reference enqueue

pkg/sqs/Symfony/SqsTransportFactory.php

+1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ public function addConfiguration(ArrayNodeDefinition $builder)
4444
->defaultTrue()
4545
->info('the connection will be performed as later as possible, if the option set to true')
4646
->end()
47+
->scalarNode('endpoint')->defaultNull()->end()
4748
;
4849
}
4950

pkg/sqs/Tests/Symfony/SqsTransportFactoryTest.php

+2
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ public function testShouldAllowAddConfiguration()
5252
'retries' => 5,
5353
'version' => 'theVersion',
5454
'lazy' => false,
55+
'endpoint' => 'theEndpoint',
5556
]]);
5657

5758
$this->assertEquals([
@@ -62,6 +63,7 @@ public function testShouldAllowAddConfiguration()
6263
'retries' => 5,
6364
'version' => 'theVersion',
6465
'lazy' => false,
66+
'endpoint' => 'theEndpoint',
6567
], $config);
6668
}
6769

0 commit comments

Comments
 (0)