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:
parent
f24d1b54f8
commit
f2f52996d4
|
@ -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 *
|
||||
|
|
|
@ -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))
|
||||
|
||||
|
|
Loading…
Reference in a new issue