Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cs_comments_service
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
cs_comments_service
Commits
96ab170b
Commit
96ab170b
authored
Jul 02, 2013
by
Your Name
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
deep search performance testing working with duct tape to avoid 401 error in development
parent
60aa389b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
9 deletions
+2
-9
app.rb
+2
-0
config/mongoid.yml
+0
-9
No files found.
app.rb
View file @
96ab170b
...
...
@@ -48,6 +48,8 @@ DEFAULT_PER_PAGE = 20
if
RACK_ENV
.
to_s
!=
"test"
# disable api_key auth in test environment
before
do
#duct tape to avoid 401 on deep search performance test
#error 401 unless params[:api_key] == CommentService.config[:api_key] or true
error
401
unless
params
[
:api_key
]
==
CommentService
.
config
[
:api_key
]
end
end
...
...
config/mongoid.yml
View file @
96ab170b
...
...
@@ -5,15 +5,6 @@ development:
hosts
:
-
localhost:27017
nothing
:
sessions
:
default
:
database
:
comments-prod-clone
hosts
:
-
charlotte.mongohq.com:10035
username
:
kevinchugh@edx.org
password
:
mitxisnowedx
test
:
sessions
:
default
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment