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"