.build(),
PropertyDefinition.builder(GROUP_NAME_ATTRIBUTE)
.name("SAML group attribute")
- .description("Attribute defining the user groups in SAML, used to synchronize group memberships. If you leave this field empty, group memberships are managed locally by SonarQube administrators.")
+ .description("Attribute defining the user groups in SAML, used to synchronize group memberships. If you leave this field empty, " +
+ "group memberships are managed locally by SonarQube administrators.")
.category(CATEGORY)
.subCategory(SUBCATEGORY)
.index(10)
import org.sonar.api.issue.Issue;
import org.sonar.api.resources.Qualifiers;
import org.sonar.api.rule.Severity;
-import org.sonar.api.rules.RuleType;
-import org.sonar.api.utils.DateUtils;
import org.sonar.core.util.UuidFactoryFast;
import org.sonar.core.util.Uuids;
import org.sonar.db.component.ComponentDto;
return protobuf.build();
}
- private void includeSetting(Builder protobuf, PropertyDefinitions definitions, Entry<String, String> prop) {
+ private static void includeSetting(Builder protobuf, PropertyDefinitions definitions, Entry<String, String> prop) {
String key = prop.getKey();
String value = obfuscateValue(definitions, key, prop.getValue());
setAttribute(protobuf, key, value);
db.users().insertPermissionOnGroup(aGroup, GlobalPermission.PROVISION_PROJECTS);
loginAsAdmin();
+ String administerPermission = GlobalPermission.ADMINISTER.getKey();
assertThatThrownBy(() -> {
- executeRequest(aGroup, GlobalPermission.ADMINISTER.getKey());
+ executeRequest(aGroup, administerPermission);
})
.isInstanceOf(BadRequestException.class)
.hasMessage("Last group with permission 'admin'. Permission cannot be removed.");
import java.util.List;
import org.sonar.api.Startable;
-import org.sonar.api.config.Configuration;
import org.sonar.api.platform.ServerUpgradeStatus;
import org.sonar.api.server.ServerSide;
import org.sonar.api.utils.log.Logger;