def setUp(self): self.jclient = client.Client() self.vpc_manager = vpc_manager.VpcManager(self.jclient) self.subnet_manager = subnet_manager.SubnetManager(self.jclient) self.security_group_manager = security_group_manager.SecurityGroupManager( self.jclient) self.instance_manager = instance_manager.InstanceManager(self.jclient) self.vpc_manager.delete_all_vpcs(force=True)
def __init__(self, jclient, config): self.jclient = jclient self.config = config log_file_name = config.get("name") + ".log" self.logger = utils.initialize_logger(log_file_name) self.vpc_manager = vpc_manager.VpcManager(self.jclient) self.subnet_manager = subnet_manager.SubnetManager(self.jclient) self.address_manager = address_manager.AddressManager(self.jclient) self.security_group_manager = security_group_manager.SecurityGroupManager( self.jclient) self.security_group_rule_manager = security_group_rule_manager.SecurityGroupRuleManager( self.jclient) self.route_table_manager = route_table_manager.RouteTableManager( self.jclient) self.vpc_cidrs = [] self.image_id = self.get_image_id(self.config) self.instance_type_id = self.get_instance_type_id(self.config)
def setUp(self): self.jclient = client.Client() self.vpc_manager = vpc_manager.VpcManager(self.jclient) self.security_group_manager = security_group_manager.SecurityGroupManager(self.jclient) self.vpc_id = self.vpc_manager.create_vpc(cidr_block='172.0.0.0/24')
def setUp(self): self.jclient = client.Client() self.vpc_manager = vpc_manager.VpcManager(self.jclient) self.vpc_manager.delete_all_vpcs(force=True)
def setUp(self): self.jclient = client.Client() self.vpc_manager = vpc_manager.VpcManager(self.jclient) self.security_group_manager = security_group_manager.SecurityGroupManager( self.jclient) self.vpc_manager.delete_all_vpcs(force=True)
def setUp(self): self.jclient = client.Client() self.vpc_manager = vpc_manager.VpcManager(self.jclient) self.subnet_manager = subnet_manager.SubnetManager(self.jclient) self.vpc_manager.delete_all_vpcs(force=True) self.vpc_id = None