Acceptance tests use random ports

This commit is contained in:
JonahStanley
2013-07-09 12:18:30 -04:00
parent a21303ba96
commit 0bd1e78e03
3 changed files with 6 additions and 3 deletions

View File

@@ -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')

View File

@@ -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'

View File

@@ -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'