mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 07:23:13 +00:00
add configuration & service testes
This commit is contained in:
@@ -0,0 +1,60 @@
|
||||
## YAML Template.
|
||||
---
|
||||
phraseanet:
|
||||
servername: http://dev.phrasea.net/
|
||||
maintenance: false
|
||||
debug: false
|
||||
display_errors: false
|
||||
|
||||
# Twig Configuration
|
||||
twig:
|
||||
debug: false
|
||||
strict_variables: true
|
||||
|
||||
# Doctrine Configuration
|
||||
doctrine:
|
||||
dbal:
|
||||
driver: pdo_mysql
|
||||
host: localhost
|
||||
port: 3306
|
||||
dbname: ab_trunk
|
||||
user: root
|
||||
password: nicolas007
|
||||
charset: UTF8
|
||||
|
||||
orm:
|
||||
auto_generate_proxy_classes: %phraseanet.debug%
|
||||
auto_mapping: true
|
||||
cache:
|
||||
query: array
|
||||
result: array
|
||||
metadata: array
|
||||
|
||||
log:
|
||||
enable: true
|
||||
type: bad_logger
|
||||
handler: rotate
|
||||
output: json
|
||||
filename: doctrine-query.log
|
||||
max_day: 10
|
||||
|
||||
# Monolog LOG Configuration
|
||||
monolog:
|
||||
output: yaml
|
||||
handlers:
|
||||
main:
|
||||
type: stream
|
||||
level: debug
|
||||
rotate:
|
||||
type: rotatingFile
|
||||
level: debug
|
||||
max_day: 10
|
||||
|
||||
# Memchache Configuration
|
||||
memcached:
|
||||
host: 11211
|
||||
|
||||
|
||||
|
||||
|
||||
|
60
lib/unitTest/Core/Configuration/confTestFiles/config.yml
Normal file
60
lib/unitTest/Core/Configuration/confTestFiles/config.yml
Normal file
@@ -0,0 +1,60 @@
|
||||
## YAML Template.
|
||||
---
|
||||
phraseanet:
|
||||
servername: http://dev.phrasea.net/
|
||||
maintenance: false
|
||||
debug: false
|
||||
display_errors: false
|
||||
|
||||
# Twig Configuration
|
||||
twig:
|
||||
debug: false
|
||||
strict_variables: true
|
||||
|
||||
# Doctrine Configuration
|
||||
doctrine:
|
||||
dbal:
|
||||
driver: pdo_mysql
|
||||
host: localhost
|
||||
port: 3306
|
||||
dbname: ab_trunk
|
||||
user: root
|
||||
password: nicolas007
|
||||
charset: UTF8
|
||||
|
||||
orm:
|
||||
auto_generate_proxy_classes: %phraseanet.debug%
|
||||
auto_mapping: true
|
||||
cache:
|
||||
query: array
|
||||
result: array
|
||||
metadata: array
|
||||
|
||||
log:
|
||||
enable: false
|
||||
type: monolog
|
||||
handler: rotate
|
||||
output: json
|
||||
filename: doctrine-query.log
|
||||
max_day: 10
|
||||
|
||||
# Monolog LOG Configuration
|
||||
monolog:
|
||||
output: yaml
|
||||
handlers:
|
||||
main:
|
||||
type: stream
|
||||
level: debug
|
||||
rotate:
|
||||
type: rotatingFile
|
||||
level: debug
|
||||
max_day: 10
|
||||
|
||||
# Memchache Configuration
|
||||
memcached:
|
||||
host: 11211
|
||||
|
||||
|
||||
|
||||
|
||||
|
19
lib/unitTest/Core/Configuration/confTestFiles/config_dev.yml
Normal file
19
lib/unitTest/Core/Configuration/confTestFiles/config_dev.yml
Normal file
@@ -0,0 +1,19 @@
|
||||
## YAML Template.
|
||||
---
|
||||
extends: main
|
||||
|
||||
phraseanet:
|
||||
debug: true
|
||||
|
||||
|
||||
doctrine:
|
||||
orm:
|
||||
cache:
|
||||
query: array
|
||||
result: array
|
||||
metadata: array
|
||||
log:
|
||||
enable: true
|
||||
output: json
|
||||
rotate:
|
||||
max_day: 2
|
@@ -0,0 +1,2 @@
|
||||
## YAML Template.
|
||||
---
|
@@ -0,0 +1,12 @@
|
||||
## YAML Template.
|
||||
---
|
||||
|
||||
# Doctrine Configuration
|
||||
doctrine:
|
||||
orm:
|
||||
cache:
|
||||
query: apc
|
||||
result: memcached
|
||||
metadata: apc
|
||||
log:
|
||||
enable: true
|
@@ -0,0 +1,10 @@
|
||||
## YAML Template.
|
||||
---
|
||||
|
||||
extends: dev
|
||||
|
||||
doctrine:
|
||||
dbal:
|
||||
driver: pdo_sqlite
|
||||
path: /Users/nicolasl/workspace/phraseanet/lib/unitTest/tests.sqlite
|
||||
charset: UTF8
|
@@ -0,0 +1,5 @@
|
||||
## YAML Template.
|
||||
---
|
||||
|
||||
|
||||
extends: unknow
|
60
lib/unitTest/Core/Configuration/confTestFiles/good.yml
Normal file
60
lib/unitTest/Core/Configuration/confTestFiles/good.yml
Normal file
@@ -0,0 +1,60 @@
|
||||
## YAML Template.
|
||||
---
|
||||
phraseanet:
|
||||
servername: http://dev.phrasea.net/
|
||||
maintenance: false
|
||||
debug: false
|
||||
display_errors: false
|
||||
|
||||
# Twig Configuration
|
||||
twig:
|
||||
debug: false
|
||||
strict_variables: true
|
||||
|
||||
# Doctrine Configuration
|
||||
doctrine:
|
||||
dbal:
|
||||
driver: pdo_mysql
|
||||
host: localhost
|
||||
port: 3306
|
||||
dbname: ab_trunk
|
||||
user: root
|
||||
password: nicolas007
|
||||
charset: UTF8
|
||||
|
||||
orm:
|
||||
auto_generate_proxy_classes: %phraseanet.debug%
|
||||
auto_mapping: true
|
||||
cache:
|
||||
query: array
|
||||
result: array
|
||||
metadata: array
|
||||
|
||||
log:
|
||||
enable: true
|
||||
type: monolog
|
||||
handler: rotate
|
||||
output: json
|
||||
filename: doctrine-query.log
|
||||
max_day: 10
|
||||
|
||||
# Monolog LOG Configuration
|
||||
monolog:
|
||||
output: yaml
|
||||
handlers:
|
||||
main:
|
||||
type: stream
|
||||
level: debug
|
||||
rotate:
|
||||
type: rotatingFile
|
||||
level: debug
|
||||
max_day: 10
|
||||
|
||||
# Memchache Configuration
|
||||
memcached:
|
||||
host: 11211
|
||||
|
||||
|
||||
|
||||
|
||||
|
@@ -0,0 +1,59 @@
|
||||
## YAML Template.
|
||||
---
|
||||
phraseanet:
|
||||
servername: http://dev.phrasea.net/
|
||||
maintenance: false
|
||||
debug: false
|
||||
display_errors: false
|
||||
|
||||
# Twig Configuration
|
||||
twig:
|
||||
debug: false
|
||||
strict_variables: true
|
||||
|
||||
# Doctrine Configuration
|
||||
doctrine:
|
||||
dbal:
|
||||
driver: pdo_mysql
|
||||
host: localhost
|
||||
port: 3306
|
||||
dbname: ab_trunk
|
||||
user: root
|
||||
password: nicolas007
|
||||
charset: UTF8
|
||||
|
||||
orm:
|
||||
auto_generate_proxy_classes: %phraseanet.debug%
|
||||
auto_mapping: true
|
||||
cache:
|
||||
query: array
|
||||
result: array
|
||||
metadata: array
|
||||
|
||||
log:
|
||||
enable: true
|
||||
type: monolog
|
||||
handler: rotate
|
||||
filename: doctrine-query.log
|
||||
max_day: 10
|
||||
|
||||
# Monolog LOG Configuration
|
||||
monolog:
|
||||
output: yaml
|
||||
handlers:
|
||||
main:
|
||||
type: stream
|
||||
level: debug
|
||||
rotate:
|
||||
type: rotatingFile
|
||||
level: debug
|
||||
max_day: 10
|
||||
|
||||
# Memchache Configuration
|
||||
memcached:
|
||||
host: 11211
|
||||
|
||||
|
||||
|
||||
|
||||
|
@@ -0,0 +1,59 @@
|
||||
## YAML Template.
|
||||
---
|
||||
phraseanet:
|
||||
servername: http://dev.phrasea.net/
|
||||
maintenance: false
|
||||
debug: false
|
||||
display_errors: false
|
||||
|
||||
# Twig Configuration
|
||||
twig:
|
||||
debug: false
|
||||
strict_variables: true
|
||||
|
||||
# Doctrine Configuration
|
||||
doctrine:
|
||||
dbal:
|
||||
driver: pdo_mysql
|
||||
host: localhost
|
||||
port: 3306
|
||||
dbname: ab_trunk
|
||||
user: root
|
||||
password: nicolas007
|
||||
charset: UTF8
|
||||
|
||||
orm:
|
||||
auto_generate_proxy_classes: %phraseanet.debug%
|
||||
auto_mapping: true
|
||||
cache:
|
||||
query: array
|
||||
result: array
|
||||
metadata: array
|
||||
|
||||
log:
|
||||
enable: true
|
||||
type: monolog
|
||||
handler: rotate
|
||||
filename: doctrine-query.log
|
||||
max_day: 10
|
||||
|
||||
# Monolog LOG Configuration
|
||||
monolog:
|
||||
output: yaml
|
||||
handlers:
|
||||
main:
|
||||
type: stream
|
||||
level: debug
|
||||
rotate:
|
||||
type: rotatingFile
|
||||
level: debug
|
||||
max_day: 10
|
||||
|
||||
# Memchache Configuration
|
||||
memcached:
|
||||
host: 11211
|
||||
|
||||
|
||||
|
||||
|
||||
|
12
lib/unitTest/Core/Configuration/confTestFiles/test.json
Normal file
12
lib/unitTest/Core/Configuration/confTestFiles/test.json
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"meta": {
|
||||
"api_version": "1.0",
|
||||
"request": "GET /api/v1/feeds/288/content/",
|
||||
"response_time": "2011-07-27T15:52:04+02:00",
|
||||
"http_code": 200,
|
||||
"error_message": null,
|
||||
"error_details": null,
|
||||
"charset": "UTF-8"
|
||||
},
|
||||
"response": {}
|
||||
}
|
Reference in New Issue
Block a user