@Test public void testConvertFromS3Request() { TelemetryRequest telemetryRequest = new TelemetryRequest(); LoggingRequest logging = new LoggingRequest(); logging.setS3(new S3CloudStorageV1Parameters()); logging.setStorageLocation("s3: telemetryRequest.setLogging(logging); Backup result = underTest.convert(telemetryRequest); assertThat(result.getStorageLocation(), is("s3: }
public Backup convert(TelemetryRequest request) { Backup backup = null; if (freeIpaBackupEnabled && request != null && request.getLogging() != null) { backup = new Backup(); backup.setMonthlyFullEnabled(backupConfiguration.isMonthlyFullEnabled()); backup.setInitialFullEnabled(backupConfiguration.isRunInitialFullAfterInstall()); backup.setHourlyEnabled(backupConfiguration.isHourlyEnabled()); decorateBackupFromLoggingRequest(backup, request.getLogging()); } return backup; }
BackupConverter { public Backup convert(TelemetryRequest request) { Backup backup = null; if (freeIpaBackupEnabled && request != null && request.getLogging() != null) { backup = new Backup(); backup.setMonthlyFullEnabled(backupConfiguration.isMonthlyFullEnabled()); backup.setInitialFullEnabled(backupConfiguration.isRunInitialFullAfterInstall()); backup.setHourlyEnabled(backupConfiguration.isHourlyEnabled()); decorateBackupFromLoggingRequest(backup, request.getLogging()); } return backup; } }
BackupConverter { public Backup convert(TelemetryRequest request) { Backup backup = null; if (freeIpaBackupEnabled && request != null && request.getLogging() != null) { backup = new Backup(); backup.setMonthlyFullEnabled(backupConfiguration.isMonthlyFullEnabled()); backup.setInitialFullEnabled(backupConfiguration.isRunInitialFullAfterInstall()); backup.setHourlyEnabled(backupConfiguration.isHourlyEnabled()); decorateBackupFromLoggingRequest(backup, request.getLogging()); } return backup; } BackupConverter(BackupConfiguration backupConfiguration,
            @Value("${freeipa.backup.enabled:true}") boolean freeIpaBackupEnabled); }
BackupConverter { public Backup convert(TelemetryRequest request) { Backup backup = null; if (freeIpaBackupEnabled && request != null && request.getLogging() != null) { backup = new Backup(); backup.setMonthlyFullEnabled(backupConfiguration.isMonthlyFullEnabled()); backup.setInitialFullEnabled(backupConfiguration.isRunInitialFullAfterInstall()); backup.setHourlyEnabled(backupConfiguration.isHourlyEnabled()); decorateBackupFromLoggingRequest(backup, request.getLogging()); } return backup; } BackupConverter(BackupConfiguration backupConfiguration,
            @Value("${freeipa.backup.enabled:true}") boolean freeIpaBackupEnabled); Backup convert(TelemetryRequest request); }
BackupConverter { public Backup convert(TelemetryRequest request) { Backup backup = null; if (freeIpaBackupEnabled && request != null && request.getLogging() != null) { backup = new Backup(); backup.setMonthlyFullEnabled(backupConfiguration.isMonthlyFullEnabled()); backup.setInitialFullEnabled(backupConfiguration.isRunInitialFullAfterInstall()); backup.setHourlyEnabled(backupConfiguration.isHourlyEnabled()); decorateBackupFromLoggingRequest(backup, request.getLogging()); } return backup; } BackupConverter(BackupConfiguration backupConfiguration,
            @Value("${freeipa.backup.enabled:true}") boolean freeIpaBackupEnabled); Backup convert(TelemetryRequest request);  }