Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
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
edx-platform
Commits
0bd1e78e
Commit
0bd1e78e
authored
Jul 09, 2013
by
JonahStanley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Acceptance tests use random ports
parent
a21303ba
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
3 deletions
+6
-3
cms/djangoapps/contentstore/features/upload.py
+1
-1
cms/envs/acceptance.py
+2
-1
lms/envs/acceptance.py
+3
-1
No files found.
cms/djangoapps/contentstore/features/upload.py
View file @
0bd1e78e
...
...
@@ -9,7 +9,7 @@ import random
import
os
TEST_ROOT
=
settings
.
COMMON_TEST_DATA_ROOT
HTTP_PREFIX
=
"http://localhost:
8001"
HTTP_PREFIX
=
"http://localhost:
%
s"
%
settings
.
LETTUCE_SERVER_PORT
@step
(
u'I go to the files and uploads page'
)
...
...
cms/envs/acceptance.py
View file @
0bd1e78e
...
...
@@ -17,6 +17,7 @@ DEBUG = True
import
logging
logging
.
disable
(
logging
.
ERROR
)
import
os
import
random
def
seed
():
...
...
@@ -74,5 +75,5 @@ DATABASES = {
# Include the lettuce app for acceptance testing, including the 'harvest' django-admin command
INSTALLED_APPS
+=
(
'lettuce.django'
,)
LETTUCE_APPS
=
(
'contentstore'
,)
LETTUCE_SERVER_PORT
=
8001
LETTUCE_SERVER_PORT
=
random
.
randint
(
1024
,
65535
)
LETTUCE_BROWSER
=
'chrome'
lms/envs/acceptance.py
View file @
0bd1e78e
...
...
@@ -17,6 +17,7 @@ DEBUG = True
import
logging
logging
.
disable
(
logging
.
ERROR
)
import
os
import
random
def
seed
():
...
...
@@ -64,7 +65,7 @@ DATABASES = {
# Set up XQueue information so that the lms will send
# requests to a mock XQueue server running locally
XQUEUE_PORT
=
8027
XQUEUE_PORT
=
random
.
randint
(
1024
,
65535
)
XQUEUE_INTERFACE
=
{
"url"
:
"http://127.0.0.1:
%
d"
%
XQUEUE_PORT
,
"django_auth"
:
{
...
...
@@ -81,4 +82,5 @@ MITX_FEATURES['STUB_VIDEO_FOR_TESTING'] = True
# Include the lettuce app for acceptance testing, including the 'harvest' django-admin command
INSTALLED_APPS
+=
(
'lettuce.django'
,)
LETTUCE_APPS
=
(
'courseware'
,)
LETTUCE_SERVER_PORT
=
random
.
randint
(
1024
,
65535
)
LETTUCE_BROWSER
=
'chrome'
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