Fix / improves management of the Rollout's total target counter (#2449)

Signed-off-by: Avgustin Marinov <Avgustin.Marinov@bosch.com>
This commit is contained in:
Avgustin Marinov
2025-06-12 15:15:25 +03:00
committed by GitHub
parent 2098dc6223
commit 103a0dade0
2 changed files with 69 additions and 129 deletions

View File

@@ -417,18 +417,15 @@ class RolloutManagementTest extends AbstractJpaIntegrationTest {
}
@Test
// @Title("Deleting targets of a rollout")
@Description("Verifying that next group is started when targets of the group have been deleted.")
void checkRunningRolloutsStartsNextGroupIfTargetsDeleted() {
final int amountTargetsForRollout = 15;
final int amountOtherTargets = 0;
final int amountGroups = 3;
final String successCondition = "100";
final String errorCondition = "80";
final Rollout createdRollout = testdataFactory.createAndStartRollout(amountTargetsForRollout,
amountOtherTargets, amountGroups,
successCondition, errorCondition);
final Rollout createdRollout = testdataFactory.createAndStartRollout(
amountTargetsForRollout, amountOtherTargets, amountGroups, successCondition, errorCondition);
finishActionAndDeleteTargetsOfFirstRunningGroup(createdRollout);
checkSecondGroupStatusIsRunning(createdRollout);