aboutsummaryrefslogtreecommitdiffhomepage
path: root/app/config/tests
diff options
context:
space:
mode:
authorJeremy Benoist <jeremy.benoist@gmail.com>2016-04-12 22:00:26 +0200
committerJeremy Benoist <jeremy.benoist@gmail.com>2016-04-12 22:14:22 +0200
commit86732aa01cf0ad0fb5279f38ce75a9bedbbb66e1 (patch)
treeb0e35a7c53bc865bd2b437b1e8017003b1412363 /app/config/tests
parent443cff98405adfa7f27b5181f4aaa29bd7d050dc (diff)
downloadwallabag-86732aa01cf0ad0fb5279f38ce75a9bedbbb66e1.tar.gz
wallabag-86732aa01cf0ad0fb5279f38ce75a9bedbbb66e1.tar.zst
wallabag-86732aa01cf0ad0fb5279f38ce75a9bedbbb66e1.zip
Move test parameters out of parameters.yml
The end user doesn't care to about the test database.
Diffstat (limited to 'app/config/tests')
-rw-r--r--app/config/tests/parameters.yml.dist.mysql37
-rw-r--r--app/config/tests/parameters.yml.dist.pgsql37
-rw-r--r--app/config/tests/parameters.yml.dist.sqlite37
-rw-r--r--app/config/tests/parameters_test.mysql.yml8
-rw-r--r--app/config/tests/parameters_test.pgsql.yml8
-rw-r--r--app/config/tests/parameters_test.sqlite.yml8
6 files changed, 24 insertions, 111 deletions
diff --git a/app/config/tests/parameters.yml.dist.mysql b/app/config/tests/parameters.yml.dist.mysql
deleted file mode 100644
index 1951f021..00000000
--- a/app/config/tests/parameters.yml.dist.mysql
+++ /dev/null
@@ -1,37 +0,0 @@
1# This file is a "template" of what your parameters.yml file should look like
2parameters:
3 database_driver: pdo_sqlite
4 database_host: 127.0.0.1
5 database_port: ~
6 database_name: symfony
7 database_user: root
8 database_password: ~
9 database_path: "%kernel.root_dir%/../data/db/wallabag.sqlite"
10 database_table_prefix: wallabag_
11
12 test_database_driver: pdo_mysql
13 test_database_host: localhost
14 test_database_port: 3306
15 test_database_name: wallabag_test
16 test_database_user: root
17 test_database_password: ~
18 test_database_path: ~
19
20 mailer_transport: smtp
21 mailer_host: 127.0.0.1
22 mailer_user: ~
23 mailer_password: ~
24
25 locale: en
26
27 # A secret key that's used to generate certain security-related tokens
28 secret: ThisTokenIsNotSoSecretChangeIt
29
30 # two factor stuff
31 twofactor_auth: true
32 twofactor_sender: no-reply@wallabag.org
33
34 # fosuser stuff
35 fosuser_confirmation: true
36
37 from_email: no-reply@wallabag.org
diff --git a/app/config/tests/parameters.yml.dist.pgsql b/app/config/tests/parameters.yml.dist.pgsql
deleted file mode 100644
index 36ad6cde..00000000
--- a/app/config/tests/parameters.yml.dist.pgsql
+++ /dev/null
@@ -1,37 +0,0 @@
1# This file is a "template" of what your parameters.yml file should look like
2parameters:
3 database_driver: pdo_sqlite
4 database_host: 127.0.0.1
5 database_port: ~
6 database_name: symfony
7 database_user: root
8 database_password: ~
9 database_path: "%kernel.root_dir%/../data/db/wallabag.sqlite"
10 database_table_prefix: wallabag_
11
12 test_database_driver: pdo_pgsql
13 test_database_host: localhost
14 test_database_port:
15 test_database_name: wallabag_test
16 test_database_user: travis
17 test_database_password: ~
18 test_database_path: ~
19
20 mailer_transport: smtp
21 mailer_host: 127.0.0.1
22 mailer_user: ~
23 mailer_password: ~
24
25 locale: en
26
27 # A secret key that's used to generate certain security-related tokens
28 secret: ThisTokenIsNotSoSecretChangeIt
29
30 # two factor stuff
31 twofactor_auth: true
32 twofactor_sender: no-reply@wallabag.org
33
34 # fosuser stuff
35 fosuser_confirmation: true
36
37 from_email: no-reply@wallabag.org
diff --git a/app/config/tests/parameters.yml.dist.sqlite b/app/config/tests/parameters.yml.dist.sqlite
deleted file mode 100644
index 6564014a..00000000
--- a/app/config/tests/parameters.yml.dist.sqlite
+++ /dev/null
@@ -1,37 +0,0 @@
1# This file is a "template" of what your parameters.yml file should look like
2parameters:
3 database_driver: pdo_sqlite
4 database_host: 127.0.0.1
5 database_port: ~
6 database_name: symfony
7 database_user: root
8 database_password: ~
9 database_path: "%kernel.root_dir%/../data/db/wallabag.sqlite"
10 database_table_prefix: wallabag_
11
12 test_database_driver: pdo_sqlite
13 test_database_host: localhost
14 test_database_port:
15 test_database_name: ~
16 test_database_user: ~
17 test_database_password: ~
18 test_database_path: "%kernel.root_dir%/../data/db/wallabag_test.sqlite"
19
20 mailer_transport: smtp
21 mailer_host: 127.0.0.1
22 mailer_user: ~
23 mailer_password: ~
24
25 locale: en
26
27 # A secret key that's used to generate certain security-related tokens
28 secret: ThisTokenIsNotSoSecretChangeIt
29
30 # two factor stuff
31 twofactor_auth: true
32 twofactor_sender: no-reply@wallabag.org
33
34 # fosuser stuff
35 fosuser_confirmation: true
36
37 from_email: no-reply@wallabag.org
diff --git a/app/config/tests/parameters_test.mysql.yml b/app/config/tests/parameters_test.mysql.yml
new file mode 100644
index 00000000..d8512845
--- /dev/null
+++ b/app/config/tests/parameters_test.mysql.yml
@@ -0,0 +1,8 @@
1parameters:
2 test_database_driver: pdo_mysql
3 test_database_host: localhost
4 test_database_port: 3306
5 test_database_name: wallabag_test
6 test_database_user: root
7 test_database_password: ~
8 test_database_path: ~
diff --git a/app/config/tests/parameters_test.pgsql.yml b/app/config/tests/parameters_test.pgsql.yml
new file mode 100644
index 00000000..41383868
--- /dev/null
+++ b/app/config/tests/parameters_test.pgsql.yml
@@ -0,0 +1,8 @@
1parameters:
2 test_database_driver: pdo_pgsql
3 test_database_host: localhost
4 test_database_port:
5 test_database_name: wallabag_test
6 test_database_user: travis
7 test_database_password: ~
8 test_database_path: ~
diff --git a/app/config/tests/parameters_test.sqlite.yml b/app/config/tests/parameters_test.sqlite.yml
new file mode 100644
index 00000000..6e9f98de
--- /dev/null
+++ b/app/config/tests/parameters_test.sqlite.yml
@@ -0,0 +1,8 @@
1parameters:
2 test_database_driver: pdo_sqlite
3 test_database_host: localhost
4 test_database_port:
5 test_database_name: ~
6 test_database_user: ~
7 test_database_password: ~
8 test_database_path: "%kernel.root_dir%/../data/db/wallabag_testHU.sqlite"