Search in sources :

Example 6 with CreateConditionWsResponse

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);
}
Also used : CreateConditionWsResponse(org.sonarqube.ws.WsQualityGates.CreateConditionWsResponse) Test(org.junit.Test)

Example 7 with CreateConditionWsResponse

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);
}
Also used : CreateConditionWsResponse(org.sonarqube.ws.WsQualityGates.CreateConditionWsResponse) Test(org.junit.Test)

Aggregations

CreateConditionWsResponse (org.sonarqube.ws.WsQualityGates.CreateConditionWsResponse)7 Test (org.junit.Test)6 QualityGateConditionDto (org.sonar.db.qualitygate.QualityGateConditionDto)1