Example #1
0
 def test_pre_create(self):
     client = boto3.client('ec2', region_name=aws_region)
     success, changed, err_msg, results = (ng.pre_create(client,
                                                         'subnet-123456',
                                                         check_mode=True))
     self.assertTrue(success)
     self.assertTrue(changed)
Example #2
0
 def test_pre_create_idemptotent_if_exist_do_not_create(self):
     client = boto3.client('ec2', region_name=aws_region)
     success, changed, err_msg, results = (ng.pre_create(
         client,
         'subnet-123456789',
         if_exist_do_not_create=True,
         check_mode=True))
     self.assertTrue(success)
     self.assertFalse(changed)
Example #3
0
 def test_pre_create_idemptotent_with_eip_address(self):
     client = boto3.client('ec2', region_name=aws_region)
     success, changed, err_msg, results = (ng.pre_create(
         client,
         'subnet-123456789',
         eip_address='55.55.55.55',
         check_mode=True))
     self.assertTrue(success)
     self.assertFalse(changed)
 def test_pre_create_idemptotent_if_exist_do_not_create(self):
     client = boto3.client('ec2', region_name=aws_region)
     success, changed, err_msg, results = (
         ng.pre_create(
             client, 'subnet-123456789', if_exist_do_not_create=True, check_mode=True
         )
     )
     self.assertTrue(success)
     self.assertFalse(changed)
 def test_pre_create_idemptotent_with_eip_address(self):
     client = boto3.client('ec2', region_name=aws_region)
     success, changed, err_msg, results = (
         ng.pre_create(
             client, 'subnet-123456789', eip_address='55.55.55.55', check_mode=True
         )
     )
     self.assertTrue(success)
     self.assertFalse(changed)
 def test_pre_create(self):
     client = boto3.client('ec2', region_name=aws_region)
     success, changed, err_msg, results = (
         ng.pre_create(
             client, 'subnet-123456', check_mode=True
         )
     )
     self.assertTrue(success)
     self.assertTrue(changed)