<<: *GITLAB_PROVISIONING_TASK_TEMPLATE
<<: *JAR_CACHE_TEMPLATE
<<: *GRADLE_CACHE_TEMPLATE
+ env:
+ QA_CATEGORY: GITLAB_PROVISIONING
+ matrix:
+ - name: qa_gitlab_provisioning_latest
+ env:
+ - GITLAB_VERSION: latest
+ - name: qa_gitlab_provisioning_oldest
+ env:
+ - GITLAB_VERSION: 15.6.2-ce.0
eks_container:
<<: *CONTAINER_TEMPLATE
- cpu: 4
+ cpu: 2.4
memory: 7Gb
- env:
- QA_CATEGORY: GITLAB_PROVISIONING
+ use_in_memory_disk: true
+ additional_containers:
+ - <<: *GITLAB_CONTAINER_TEMPLATE
script:
- ./private/cirrus/cirrus-qa.sh h2
<<: *DEFAULT_ARTIFACTS_TEMPLATE
*/
package org.sonar.db.alm.setting;
+import java.util.Collections;
import java.util.List;
import java.util.Locale;
import java.util.Optional;
}
public List<ProjectAlmSettingDto> selectByProjectUuidsAndAlm(DbSession dbSession, Set<String> projectUuids, ALM alm) {
+ if (projectUuids.isEmpty()) {
+ return Collections.emptyList();
+ }
return getMapper(dbSession).selectByProjectUuidsAndAlm(projectUuids, alm.getId().toLowerCase(Locale.ROOT));
}
private String ps;
private String q;
private Boolean deactivated;
+ private Boolean managed;
/**
* Example value: "42"
this.deactivated = deactivated;
return this;
}
+
+ public Boolean getManaged() {
+ return managed;
+ }
+
+ public SearchRequest setManaged(Boolean managed) {
+ this.managed = managed;
+ return this;
+ }
}
.setParam("p", request.getP())
.setParam("ps", request.getPs())
.setParam("q", request.getQ())
- .setParam("deactivated", request.getDeactivated()),
+ .setParam("deactivated", request.getDeactivated())
+ .setParam("managed", request.getManaged()),
SearchWsResponse.parser());
}
return queryForUser(name, t -> t.getName().equals(name));
}
+ public List<Users.SearchWsResponse.User> getAllManagedUsers() {
+ return service().search(new SearchRequest().setManaged(true)).getUsersList();
+ }
+
public void changePassword(String login, String previousPassword, String newPassword) {
service().changePassword(new ChangePasswordRequest().setLogin(login).setPreviousPassword(previousPassword).setPassword(newPassword));
}