Exemplo n.º 1
0
 def test_get_lb_failure(self):
   if sys.version_info >= (2, 7):
     self.setUpELB()
     with self.assertRaises(SystemExit) as rolling_deploy:
       bad_rolling_deploy = RollingDeploy('stg', 'fake-gms-extender', '0', 'bad', None, './regions.yml')
       bad_rolling_deploy.load_balancer = bad_rolling_deploy.get_lb()
     self.assertEqual(2, rolling_deploy.exception.code)
Exemplo n.º 2
0
 def test_get_lb_failure(self):
   if sys.version_info >= (2, 7):
     self.setUpELB()
     with self.assertRaises(SystemExit) as rolling_deploy:
       bad_rolling_deploy = RollingDeploy('stg', 'fake-gms-extender', '0', 'bad', None, './regions.yml')
       bad_rolling_deploy.load_balancer = bad_rolling_deploy.get_lb()
     self.assertEqual(2, rolling_deploy.exception.code)