use of org.sonarqube.ws.WsQualityGates.CreateConditionWsResponse in project sonarqube by SonarSource.
the class CreateConditionActionTest method create_condition_over_leak_period.
@Test
public void create_condition_over_leak_period() throws Exception {
logInAsQualityGateAdmin();
CreateConditionWsResponse response = executeRequest(qualityGateDto.getId(), coverageMetricDto.getKey(), "LT", null, "90", 1);
assertCondition(response, "LT", null, "90", 1);
}
use of org.sonarqube.ws.WsQualityGates.CreateConditionWsResponse in project sonarqube by SonarSource.
the class CreateConditionActionTest method create_warning_condition.
@Test
public void create_warning_condition() throws Exception {
logInAsQualityGateAdmin();
CreateConditionWsResponse response = executeRequest(qualityGateDto.getId(), coverageMetricDto.getKey(), "LT", "90", null, null);
assertCondition(response, "LT", "90", null, null);
}
Aggregations