Make it configurable which host (and path prefix) we'll use to retrieve legacy page content for diff testing. Add a setting in settings.py pointing to http://compost.research.att.com/old/.

- Legacy-Id: 767
This commit is contained in:
Henrik Levkowetz 2007-06-29 16:05:14 +00:00
parent f24d1b54f8
commit f2f52996d4
2 changed files with 4 additions and 0 deletions

View file

@ -157,6 +157,8 @@ TEST_RUNNER = 'ietf.tests.run_tests'
IPR_DOCUMENT_PATH = '/home/master-site/ftp/data/ietf/IPR'
TEST_REFERENCE_URL_PREFIX = 'http://compost.research.att.com/old/'
# Put SECRET_KEY in here, or any other sensitive or site-specific
# changes. DO NOT commit settings_local.py to svn.
from settings_local import *

View file

@ -90,6 +90,8 @@ def read_testurls(filename):
goodurl = None
elif len(urlspec) == 3:
codes, testurl, goodurl = urlspec
# strip protocol and host -- we're making that configurable
goodurl = re.sub("^https?://[a-z0-9.]/", "", goodurl)
else:
raise ValueError("Expected 'HTTP_CODE TESTURL [GOODURL]' in %s line, found '%s'." % (filename, line))