예제 #1
0
파일: test_config.py 프로젝트: pabit/anchor
 def test_registration_authority_names(self):
     """Instances should be listed once config is loaded."""
     jsonloader.conf = jsonloader.AnchorConf(logger)
     jsonloader.conf.load_str_data(json.dumps(self.sample_conf))
     self.assertEqual(list(jsonloader.registration_authority_names()),
                      ['default_ra'])
예제 #2
0
파일: test_config.py 프로젝트: agh/anchor
 def test_registration_authority_names(self):
     """Instances should be listed once config is loaded."""
     jsonloader.conf = jsonloader.AnchorConf(logger)
     jsonloader.conf.load_str_data(json.dumps(self.sample_conf))
     self.assertEqual(list(jsonloader.registration_authority_names()),
                      ['default_ra'])
예제 #3
0
 def _lookup(self, ra_name, *remaining):
     if ra_name in jsonloader.registration_authority_names():
         return SignInstanceController(ra_name), remaining
     pecan.abort(404)
예제 #4
0
 def _lookup(self, ra_name, *remaining):
     if ra_name in jsonloader.registration_authority_names():
         return self._subcontroller(ra_name), remaining
     pecan.abort(404)