From 363b25e6da0b94d53b664cb05cdad390bc079c4f Mon Sep 17 00:00:00 2001 From: ErickSkrauch Date: Sun, 4 Dec 2016 15:49:45 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9A=D0=BE=D0=BC=D0=BF=D0=BE=D0=BD=D0=B5?= =?UTF-8?q?=D0=BD=D1=82=20RabbitMQ=20=D0=B4=D0=BB=D1=8F=20=D1=82=D0=B5?= =?UTF-8?q?=D1=81=D1=82=D0=BE=D0=B2=20=D0=B7=D0=B0=D0=BC=D0=B5=D0=BD=D1=91?= =?UTF-8?q?=D0=BD=20=D0=BD=D0=B0=20=D0=B7=D0=B0=D0=B3=D0=BB=D1=83=D1=88?= =?UTF-8?q?=D0=BA=D1=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/codeception/api/functional.suite.yml | 8 ----- .../common/_support/RabbitMQComponent.php | 33 +++++++++++++++++++ tests/codeception/config/config.php | 3 ++ tests/docker-compose.yml | 14 -------- 4 files changed, 36 insertions(+), 22 deletions(-) create mode 100644 tests/codeception/common/_support/RabbitMQComponent.php diff --git a/tests/codeception/api/functional.suite.yml b/tests/codeception/api/functional.suite.yml index 5d52ea1..01d3dc2 100644 --- a/tests/codeception/api/functional.suite.yml +++ b/tests/codeception/api/functional.suite.yml @@ -5,7 +5,6 @@ modules: - Yii2 - tests\codeception\common\_support\FixtureHelper - Redis - - AMQP - Asserts - REST: depends: Yii2 @@ -17,10 +16,3 @@ modules: host: testredis port: 6379 database: 0 - AMQP: - host: testrabbit - port: 5672 - username: 'ely-accounts-tester' - password: 'tester-password' - vhost: '/account.ely.by/tests' - queues: [] diff --git a/tests/codeception/common/_support/RabbitMQComponent.php b/tests/codeception/common/_support/RabbitMQComponent.php new file mode 100644 index 0000000..4c8fc3a --- /dev/null +++ b/tests/codeception/common/_support/RabbitMQComponent.php @@ -0,0 +1,33 @@ + 4, ], + 'amqp' => [ + 'class' => tests\codeception\common\_support\RabbitMQComponent::class, + ], ], ]; diff --git a/tests/docker-compose.yml b/tests/docker-compose.yml index a9e8054..66ea17f 100644 --- a/tests/docker-compose.yml +++ b/tests/docker-compose.yml @@ -9,7 +9,6 @@ services: depends_on: - testdb - testredis - - testrabbit volumes: - ./..:/var/www/html environment: @@ -22,11 +21,6 @@ services: DB_PASSWORD: "ely_accounts_tester_password" # Redis config REDIS_HOST: "testredis" - # RabbitMQ config - RABBITMQ_HOST: "testrabbit" - RABBITMQ_USER: "ely-accounts-tester" - RABBITMQ_PASS: "tester-password" - RABBITMQ_VHOST: "/account.ely.by/tests" # Это я потом, когда-нибудь, уберу XDEBUG_CONFIG: "remote_host=10.254.254.254" PHP_IDE_CONFIG: "serverName=docker" @@ -45,11 +39,3 @@ services: testredis: container_name: accountelyby_testredis image: redis:3.0-alpine - - testrabbit: - container_name: accountelyby_testrabbit - image: rabbitmq:3.6 - environment: - RABBITMQ_DEFAULT_USER: "ely-accounts-tester" - RABBITMQ_DEFAULT_PASS: "tester-password" - RABBITMQ_DEFAULT_VHOST: "/account.ely.by/tests"