Отделены параметры конфигурации для приложения от параметров конфигурации необходимых контейнеров

This commit is contained in:
ErickSkrauch
2016-12-04 15:34:32 +03:00
parent 6fc558c3c8
commit 9274155cfc
6 changed files with 85 additions and 64 deletions

View File

@@ -23,4 +23,4 @@ modules:
username: 'ely-accounts-tester'
password: 'tester-password'
vhost: '/account.ely.by/tests'
queues: ['account-operations']
queues: []

View File

@@ -10,26 +10,9 @@ return [
],
],
'components' => [
'db' => [
'dsn' => 'mysql:host=testdb;dbname=ely_accounts_test',
'username' => 'ely_accounts_tester',
'password' => 'ely_accounts_tester_password',
],
'mailer' => [
'useFileTransport' => true,
],
'urlManager' => [
'showScriptName' => true,
],
'redis' => [
'hostname' => 'testredis',
],
'amqp' => [
'host' => 'testrabbit',
'user' => 'ely-accounts-tester',
'password' => 'tester-password',
'vhost' => '/account.ely.by/tests',
],
'security' => [
// Для тестов нам не сильно важна безопасность, а вот время прохождения тестов значительно сокращается
'passwordHashCost' => 4,