Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 78df4ca

Browse files
minor #36704 Configure services additionally required by the master branch (jakzal)
This PR was merged into the 5.1-dev branch. Discussion ---------- Configure services additionally required by the master branch | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | Re #36647 | License | MIT | Doc PR | - Additionally run tests for: * couchbase * sqs * kafka * mongodb (although currently skipped due to #36702) Before: Tests: 1893, Assertions: 5178, Skipped: 105. After: Tests: 2042, Assertions: 5407, Skipped: 120. Commits ------- dc7ac57 Configure services additionally required by the master branch
2 parents 7e8d87b + dc7ac57 commit 78df4ca

File tree

5 files changed

+62
-2
lines changed

5 files changed

+62
-2
lines changed

.github/workflows/tests.yml

Lines changed: 56 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,19 +40,69 @@ jobs:
4040
image: rabbitmq:3.8.3
4141
ports:
4242
- 5672:5672
43+
mongodb:
44+
image: mongo
45+
ports:
46+
- 27017:27017
47+
couchbase:
48+
image: couchbase:6.5.1
49+
ports:
50+
- 8091:8091
51+
- 8092:8092
52+
- 8093:8093
53+
- 8094:8094
54+
- 11210:11210
55+
sqs:
56+
image: asyncaws/testing-sqs
57+
ports:
58+
- 9494:9494
59+
zookeeper:
60+
image: wurstmeister/zookeeper:3.4.6
61+
kafka:
62+
image: wurstmeister/kafka:2.12-2.4.1
63+
ports:
64+
- 9092:9092
65+
env:
66+
KAFKA_AUTO_CREATE_TOPICS_ENABLE: false
67+
KAFKA_CREATE_TOPICS: 'test-topic:1:1:compact'
68+
KAFKA_ADVERTISED_HOST_NAME: localhost
69+
KAFKA_ZOOKEEPER_CONNECT: 'zookeeper:2181'
70+
KAFKA_ADVERTISED_PORT: 9092
4371

4472
steps:
4573
- name: Checkout
4674
uses: actions/checkout@v2
4775

76+
- name: Install system dependencies
77+
run: |
78+
echo "::group::add apt sources"
79+
sudo wget -O - http://packages.couchbase.com/ubuntu/couchbase.key | sudo apt-key add -
80+
echo "deb http://packages.couchbase.com/ubuntu bionic bionic/main" | sudo tee /etc/apt/sources.list.d/couchbase.list
81+
echo "::endgroup::"
82+
83+
echo "::group::apt-get update"
84+
sudo apt-get update
85+
echo "::endgroup::"
86+
87+
echo "::group::install tools & libraries"
88+
sudo apt-get install libcouchbase-dev librdkafka-dev
89+
echo "::endgroup::"
90+
91+
- name: Configure Couchbase
92+
run: |
93+
curl -s -u 'username=Administrator&password=111111' -X POST http://localhost:8091/node/controller/setupServices -d 'services=kv%2Cn1ql%2Cindex%2Cfts'
94+
curl -s -X POST http://localhost:8091/settings/web -d 'username=Administrator&password=111111&port=SAME'
95+
curl -s -u Administrator:111111 -X POST http://localhost:8091/pools/default/buckets -d 'ramQuotaMB=100&bucketType=ephemeral&name=cache'
96+
curl -s -u Administrator:111111 -X POST http://localhost:8091/pools/default -d 'memoryQuota=256'
97+
4898
- name: Setup PHP
4999
uses: shivammathur/setup-php@v2
50100
with:
51101
coverage: "none"
52-
extensions: "memcached,redis,xsl"
102+
extensions: "json,couchbase,memcached,mongodb,redis,rdkafka,xsl"
53103
ini-values: "memory_limit=-1"
54104
php-version: "${{ matrix.php }}"
55-
tools: flex
105+
tools: flex,pecl
56106

57107
- name: Configure composer
58108
run: |
@@ -89,7 +139,11 @@ jobs:
89139
REDIS_CLUSTER_HOSTS: 'localhost:7000 localhost:7001 localhost:7002 localhost:7003 localhost:7004 localhost:7005'
90140
MESSENGER_REDIS_DSN: redis://127.0.0.1:7006/messages
91141
MESSENGER_AMQP_DSN: amqp://localhost/%2f/messages
142+
MESSENGER_SQS_DSN: "sqs://localhost:9494/messages?sslmode=disable&poll_timeout=0.01"
143+
MESSENGER_SQS_FIFO_QUEUE_DSN: "sqs://localhost:9494/messages.fifo?sslmode=disable&poll_timeout=0.01"
92144
MEMCACHED_HOST: localhost
145+
MONGODB_HOST: localhost
146+
KAFKA_BROKER: localhost:9092
93147

94148
- name: Run HTTP push tests
95149
if: matrix.php == '7.4'

src/Symfony/Component/Cache/Tests/Adapter/CouchbaseBucketAdapterTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
/**
1919
* @requires extension couchbase 2.6.0
20+
* @group integration
2021
*
2122
* @author Antonio Jose Cerezo Aranda <[email protected]>
2223
*/

src/Symfony/Component/Lock/Tests/Store/MongoDbStoreTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
* @author Joe Bennett <[email protected]>
2424
*
2525
* @requires function \MongoDB\Client::__construct
26+
* @group integration
2627
*/
2728
class MongoDbStoreTest extends AbstractStoreTest
2829
{

src/Symfony/Component/Messenger/Bridge/AmazonSqs/Tests/Transport/AmazonSqsIntegrationTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
use Symfony\Component\Messenger\Bridge\AmazonSqs\Tests\Fixtures\DummyMessage;
1717
use Symfony\Component\Messenger\Bridge\AmazonSqs\Transport\Connection;
1818

19+
/**
20+
* @group integration
21+
*/
1922
class AmazonSqsIntegrationTest extends TestCase
2023
{
2124
public function testConnectionSendToFifoQueueAndGet(): void

src/Symfony/Component/VarDumper/Tests/Caster/RdKafkaCasterTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
/**
2222
* @requires extension rdkafka
23+
* @group integration
2324
*/
2425
class RdKafkaCasterTest extends TestCase
2526
{

0 commit comments

Comments
 (0)