CB-2396 add tests for disabled anonymous access

This commit is contained in:
yagudin10
2022-08-16 13:15:12 +03:00
parent c54aa4ae68
commit 85f411f1f3
4 changed files with 4 additions and 7 deletions
@@ -37,8 +37,6 @@ public abstract class BaseWebAppConfiguration implements WebAppConfiguration {
public BaseWebAppConfiguration() {
this.plugins = new LinkedHashMap<>();
this.anonymousAccessEnabled = true;
this.anonymousUserRole = DEFAULT_APP_ANONYMOUS_ROLE_NAME;
this.defaultUserRole = DEFAULT_APP_ANONYMOUS_ROLE_NAME;
this.resourceManagerEnabled = true;
this.enabledFeatures = null;
@@ -46,8 +44,6 @@ public abstract class BaseWebAppConfiguration implements WebAppConfiguration {
public BaseWebAppConfiguration(BaseWebAppConfiguration src) {
this.plugins = new LinkedHashMap<>(src.plugins);
this.anonymousAccessEnabled = src.anonymousAccessEnabled;
this.anonymousUserRole = src.anonymousUserRole;
this.defaultUserRole = src.defaultUserRole;
this.resourceManagerEnabled = src.resourceManagerEnabled;
this.enabledFeatures = src.enabledFeatures;
@@ -112,8 +112,6 @@ public abstract class BaseWebApplication extends BaseApplicationImpl implements
protected abstract void loadConfiguration(String configPath) throws DBException;
protected abstract void validateConfiguration(Map<String, Object> appConfig) throws DBException;
@Override
public VirtualProjectImpl createProjectImpl(
@NotNull RMProject project,
@@ -56,6 +56,8 @@ public class CBAppConfig extends BaseAuthWebAppConfiguration implements WebAuthC
public CBAppConfig() {
super();
this.anonymousAccessEnabled = false;
this.anonymousUserRole = DEFAULT_APP_ANONYMOUS_ROLE_NAME;
this.supportsCustomConnections = true;
this.supportsConnectionBrowser = false;
this.supportsUserWorkspaces = false;
@@ -73,6 +75,8 @@ public class CBAppConfig extends BaseAuthWebAppConfiguration implements WebAuthC
public CBAppConfig(CBAppConfig src) {
super(src);
this.anonymousAccessEnabled = src.anonymousAccessEnabled;
this.anonymousUserRole = src.anonymousUserRole;
this.supportsCustomConnections = src.supportsCustomConnections;
this.supportsConnectionBrowser = src.supportsConnectionBrowser;
this.supportsUserWorkspaces = src.supportsUserWorkspaces;
@@ -589,7 +589,6 @@ public class CBApplication extends BaseWebApplication implements WebAuthApplicat
patchConfigurationWithProperties(productConfiguration);
}
@Override
protected void validateConfiguration(Map<String, Object> appConfig) throws DBException {
}