/
test.rb
51 lines (38 loc) · 1.81 KB
/
test.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Settings specified here will take precedence over those in config/environment.rb
OBSApi::Application.configure do
# The test environment is used exclusively to run your application's
# test suite. You never need to work with it otherwise. Remember that
# your test database is "scratch space" for the test suite and is wiped
# and recreated between test runs. Don't rely on the data there!
config.cache_classes = true
# Log error messages when you accidentally call methods on nil.
config.whiny_nils = true
# Show full error reports and disable caching
# local requests don't trigger the global exception handler -> set to false
config.consider_all_requests_local = false
config.action_controller.perform_caching = false
# Tell ActionMailer not to deliver emails to the real world.
# The :test delivery method accumulates sent emails in the
# ActionMailer::Base.deliveries array.
config.action_mailer.delivery_method = :test
config.active_record.mass_assignment_sanitizer = :strict
config.cache_store = :memory_store
config.active_support.deprecation = :log
end
CONFIG['source_host'] = "localhost"
CONFIG['source_port'] = 3200
SOURCE_PROTOCOL = "http"
CONFIG['proxy_auth_mode']=:off
CONFIG['download_url'] = 'http://example.com/download'
CONFIG['ldap_mode'] = :off
# LDAP Servers separated by ':'.
# OVERRIDE with your company's ldap servers. Servers are picked randomly for
# each connection to distribute load.
LDAP_SERVERS = "ldap1.mycompany.com:ldap2.mycompany.com"
# OVERRIDE with your company's ldap search base for the users who will use OBS
LDAP_SEARCH_BASE = "OU=Organizational Unit,DC=Domain Component"
# Sam Account Name is the login name for LDAP
LDAP_SEARCH_ATTR = "sAMAccountName"
# Max number of times to attempt to contact the LDAP servers
MAX_LDAP_ATTEMPTS = 10
CONFIG['response_schema_validation'] = true