Exemplo n.º 1
0
 def test_wait_for_status_to_timeout(self):
     client = boto3.client('ec2', region_name=aws_region)
     success, err_msg, gws = (ng.wait_for_status(client,
                                                 2,
                                                 'nat-12345678',
                                                 'available',
                                                 check_mode=True))
     self.assertFalse(success)
     self.assertEqual(gws, {})
 def test_wait_for_status_to_timeout(self):
     client = boto3.client('ec2', region_name=aws_region)
     success, err_msg, gws = (
         ng.wait_for_status(
             client, 2, 'nat-12345678', 'available', check_mode=True
         )
     )
     self.assertFalse(success)
     self.assertEqual(gws, {})
Exemplo n.º 3
0
 def test_wait_for_status(self):
     client = boto3.client('ec2', region_name=aws_region)
     success, err_msg, gws = (ng.wait_for_status(client,
                                                 5,
                                                 'nat-123456789',
                                                 'available',
                                                 check_mode=True))
     should_return = ng.DRY_RUN_GATEWAYS[0]
     self.assertTrue(success)
     self.assertEqual(gws, should_return)
 def test_wait_for_status(self):
     client = boto3.client('ec2', region_name=aws_region)
     success, err_msg, gws = (
         ng.wait_for_status(
             client, 5, 'nat-123456789', 'available', check_mode=True
         )
     )
     should_return = ng.DRY_RUN_GATEWAYS[0]
     self.assertTrue(success)
     self.assertEqual(gws, should_return)