You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by jo...@apache.org on 2013/07/16 22:17:18 UTC

[17/27] 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/ff725898
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/ff725898
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/ff725898

Branch: refs/heads/cj/4656
Commit: ff725898642c6fa729b94a0038350eb03b3daca4
Parents: 94b75f0
Author: Dave Brondsema <db...@slashdotmedia.com>
Authored: Sat May 25 13:29:05 2013 -0400
Committer: Dave Brondsema <db...@slashdotmedia.com>
Committed: Thu Jul 11 21:30:46 2013 +0000

----------------------------------------------------------------------
 AlluraTest/alluratest/validation.py | 12 +-----------
 1 file changed, 1 insertion(+), 11 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/ff725898/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):