Use local configuration in tests
This way the tests should really run out of the box with what is described in TESTING.md.
This commit is contained in:
parent
625f92fe44
commit
1ca47d67d5
6 changed files with 41 additions and 10 deletions
35
airtime_mvc/tests/conf/airtime.conf
Normal file
35
airtime_mvc/tests/conf/airtime.conf
Normal file
|
@ -0,0 +1,35 @@
|
|||
[database]
|
||||
|
||||
host = postgresql
|
||||
dbname = libretime_test
|
||||
dbuser = libretime
|
||||
dbpass = libretime
|
||||
|
||||
[rabbitmq]
|
||||
host = 127.0.0.1
|
||||
port = 5672
|
||||
user = airtime_tests
|
||||
password = airtime_tests
|
||||
vhost = /airtime_tests
|
||||
|
||||
[general]
|
||||
dev_env = testing
|
||||
api_key = H2NRICX6CM8F50CU123C
|
||||
web_server_user = www-data
|
||||
airtime_dir = /usr/share/airtime
|
||||
base_url = localhost
|
||||
base_port = 80
|
||||
base_dir = /
|
||||
cache_ahead_hours = 1
|
||||
station_id = teststation
|
||||
|
||||
[monit]
|
||||
monit_user = guest
|
||||
monit_password = airtime
|
||||
|
||||
[soundcloud]
|
||||
connection_retries = 3
|
||||
time_between_retries = 60
|
||||
soundcloud_client_id = 0
|
||||
soundcloud_client_secret = 0
|
||||
soundcloud_redirect_uri = http://soundcloud.example.org/redirect
|
35
airtime_mvc/tests/conf/testing/airtime.conf
Normal file
35
airtime_mvc/tests/conf/testing/airtime.conf
Normal file
|
@ -0,0 +1,35 @@
|
|||
[database]
|
||||
|
||||
host = postgresql
|
||||
dbname = libretime_test
|
||||
dbuser = libretime
|
||||
dbpass = libretime
|
||||
|
||||
[rabbitmq]
|
||||
host = 127.0.0.1
|
||||
port = 5672
|
||||
user = airtime_tests
|
||||
password = airtime_tests
|
||||
vhost = /airtime_tests
|
||||
|
||||
[general]
|
||||
dev_env = testing
|
||||
api_key = H2NRICX6CM8F50CU123C
|
||||
web_server_user = www-data
|
||||
airtime_dir = /usr/share/airtime
|
||||
base_url = localhost
|
||||
base_port = 80
|
||||
base_dir = /
|
||||
cache_ahead_hours = 1
|
||||
station_id = teststation
|
||||
|
||||
[monit]
|
||||
monit_user = guest
|
||||
monit_password = airtime
|
||||
|
||||
[soundcloud]
|
||||
connection_retries = 3
|
||||
time_between_retries = 60
|
||||
soundcloud_client_id = 0
|
||||
soundcloud_client_secret = 0
|
||||
soundcloud_redirect_uri = http://soundcloud.example.org/redirect
|
3
airtime_mvc/tests/conf/testing/cloud_storage.conf
Normal file
3
airtime_mvc/tests/conf/testing/cloud_storage.conf
Normal file
|
@ -0,0 +1,3 @@
|
|||
[amazon_S3]
|
||||
[current_backend]
|
||||
storage_backend=file
|
Loading…
Add table
Add a link
Reference in a new issue