You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by br...@apache.org on 2013/05/27 21:23:02 UTC
[09/10] git commit: remove hardcoded hostname
remove hardcoded hostname
Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/12170190
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/12170190
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/12170190
Branch: refs/heads/db/6277
Commit: 121701902421aa39585532f0970e9ffb53b9089a
Parents: 941d83b
Author: Dave Brondsema <db...@slashdotmedia.com>
Authored: Sat May 25 13:29:05 2013 -0400
Committer: Dave Brondsema <db...@slashdotmedia.com>
Committed: Mon May 27 15:21:29 2013 -0400
----------------------------------------------------------------------
AlluraTest/alluratest/validation.py | 12 +-----------
1 files changed, 1 insertions(+), 11 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/12170190/AlluraTest/alluratest/validation.py
----------------------------------------------------------------------
diff --git a/AlluraTest/alluratest/validation.py b/AlluraTest/alluratest/validation.py
index 7a5fd0b..39f73c3 100644
--- a/AlluraTest/alluratest/validation.py
+++ b/AlluraTest/alluratest/validation.py
@@ -47,11 +47,6 @@ from ming.utils import LazyProperty
from allura.lib import utils
-ENABLE_CONTENT_VALIDATION = False
-# By default we want to run only validations which are fast,
-# but on special test hosts - all.
-COMPLETE_TESTS_HOST = 'sb-forge-4039'
-
log = logging.getLogger(__name__)
class Config(object):
@@ -93,9 +88,6 @@ class Config(object):
elif env_var is not None:
return val_type in env_var.split(',')
- if self.hostname == COMPLETE_TESTS_HOST:
- return True
-
enabled = self.test_ini.getboolean('validation', 'validate_' + val_type)
return enabled
@@ -103,9 +95,7 @@ class Config(object):
env_var = os.getenv('ALLURA_VALIDATION')
if env_var == 'all':
return True
- if self.hostname == COMPLETE_TESTS_HOST:
- return True
- return ENABLE_CONTENT_VALIDATION
+ return False
def report_validation_error(val_name, filename, message):