Permalink
Browse files

renamed rules to be consistent with the zookeeper documentation

  • Loading branch information...
1 parent dd77c63 commit 32f07902eebccc7233a5cff5e4feb9a895eb15b1 @andreisavu committed Jul 16, 2010
Showing with 4 additions and 4 deletions.
  1. +1 −1 test.py
  2. +3 −3 zoocfg.py
View
2 test.py
@@ -108,7 +108,7 @@ def test_file_param_is_mandatory(self):
class TestRules(unittest.TestCase):
def test_absolute_dataDir(self):
- w, e = zoocfg.Rules.AbsoluteDataDir.check(
+ w, e = zoocfg.Rules.DataDir.check(
dotdict(dataDir='./relative-path'))
assert len(w) == 1 and len(e) == 0
View
6 zoocfg.py
@@ -157,7 +157,7 @@ def check(cls, cfg):
return warnings, errors
- class AbsoluteDataDir(BaseRule):
+ class DataDir(BaseRule):
""" The dataDir should be absolute because ZooKeeper runs as a daemon """
@classmethod
@@ -173,7 +173,7 @@ def check(cls, cfg):
return warnings, errors
- class DataLogDirOnAnotherPartition(BaseRule):
+ class DataLogDir(BaseRule):
""" Warn that dataLogDir should be on another partition """
@classmethod
@@ -190,7 +190,7 @@ def check(cls, cfg):
return warnings, errors
- class ElectionAlgorithm(BaseRule):
+ class ElectionAlg(BaseRule):
""" Check the selected election algorithm """
@classmethod

0 comments on commit 32f0790

Please sign in to comment.