Example #1
0
 def test_valid_envs(self):
   """Does valid_envs return correct envs?"""
   sr = EFServiceRegistry(service_registry_file="test_data/test_service_registry_1.json")
   self.assertIn("proto0",sr.valid_envs("test-instance"))
   self.assertIn("staging",sr.valid_envs("test-instance"))
   self.assertIn("mgmt.ellationeng",sr.valid_envs("test-instance"))
   self.assertNotIn("mgmt.ellation",sr.valid_envs("test-instance"))
 def test_valid_envs(self):
     """Does valid_envs return correct envs?"""
     sr = EFServiceRegistry(
         service_registry_file=self.service_registry_file)
     self.assertIn("alpha0", sr.valid_envs("test-instance"))
     self.assertIn("staging", sr.valid_envs("test-instance"))
     self.assertIn("mgmt.ellationeng", sr.valid_envs("test-instance"))
     self.assertNotIn("mgmt.ellation", sr.valid_envs("test-instance"))