Exemple #1
0
 def test_get_nat_gateways_no_gateways_found(self):
     client = boto3.client('ec2', region_name=aws_region)
     success, err_msg, stream = (ng.get_nat_gateways(client,
                                                     'subnet-1234567',
                                                     check_mode=True))
     self.assertTrue(success)
     self.assertEqual(stream, [])
 def test_get_nat_gateways_no_gateways_found(self):
     client = boto3.client('ec2', region_name=aws_region)
     success, err_msg, stream = (
         ng.get_nat_gateways(client, 'subnet-1234567', check_mode=True)
     )
     self.assertTrue(success)
     self.assertEqual(stream, [])
Exemple #3
0
 def test_get_nat_gateways(self):
     client = boto3.client('ec2', region_name=aws_region)
     success, err_msg, stream = (ng.get_nat_gateways(client,
                                                     'subnet-123456789',
                                                     check_mode=True))
     should_return = ng.DRY_RUN_GATEWAYS
     self.assertTrue(success)
     self.assertEqual(stream, should_return)
 def test_get_nat_gateways(self):
     client = boto3.client('ec2', region_name=aws_region)
     success, err_msg, stream = (
         ng.get_nat_gateways(client, 'subnet-123456789', check_mode=True)
     )
     should_return = ng.DRY_RUN_GATEWAYS
     self.assertTrue(success)
     self.assertEqual(stream, should_return)