def setUp(self): self.logger = console_logger.ConsoleLogger() self.distro_patcher = patch.GetDistroPatcher(self.logger) self.hutil = HandlerUtil.HandlerUtility(self.logger.log, self.logger.error, "AzureDiskEncryptionForLinux") self.hutil.patching = self.distro_patcher # invoke unit test from within main for setup (to avoid having to change dependencies) # then move cwd to parent to emulate calling convention of guest agent if os.getcwd().endswith('main'): os.chdir(os.path.dirname(os.getcwd())) else: self.logger.log(os.getcwd())
def setUp(self): self.logger = console_logger.ConsoleLogger() self.cutil = check_util.CheckUtil(self.logger)
def setUp(self): self.logger = console_logger.ConsoleLogger() self.distro_patcher = patch.GetDistroPatcher(self.logger) self.resource_disk = ResourceDiskUtil.ResourceDiskUtil( self.logger, self.logger, self.distro_patcher)