Bug fixes

This commit is contained in:
U-BASIS\dsmyda 2020-11-17 16:27:41 -05:00
parent 3c89137dfb
commit aa74064998
2 changed files with 9 additions and 9 deletions

View File

@ -384,8 +384,6 @@ public class CentralRepoDbManager {
}
public void setupPostgresDb(CentralRepoDbChoice choice) throws CentralRepoException {
assert UserPreferences.getIsMultiUserModeEnabled();
selectedDbChoice = choice;
DatabaseTestResult curStatus = testStatus();
if (curStatus == DatabaseTestResult.DB_DOES_NOT_EXIST) {

View File

@ -105,12 +105,14 @@ public class RegressionTest extends TestCase {
Timeouts.setDefault("ComponentOperator.WaitComponentTimeout", 1000000);
try {
if (Boolean.parseBoolean(System.getProperty("isMultiUser"))) {
CentralRepoDbManager manager = new CentralRepoDbManager();
manager.getDbSettingsPostgres().setHost(System.getProperty("crHost"));
manager.getDbSettingsPostgres().setPort(Integer.parseInt(System.getProperty("crPort")));
manager.getDbSettingsPostgres().setUserName(System.getProperty("crUserName"));
manager.getDbSettingsPostgres().setPassword(System.getProperty("crPassword"));
manager.setupPostgresDb(CentralRepoDbChoice.POSTGRESQL_CUSTOM);
}
} catch (CentralRepoException ex) {
throw new RuntimeException("Error setting up multi user CR", ex);
}