Expose rollout group dynamic flag via REST (#1691)

Signed-off-by: Marinov Avgustin <Avgustin.Marinov@bosch.com>
This commit is contained in:
Avgustin Marinov
2024-03-15 16:20:16 +02:00
committed by GitHub
parent 0dcf646385
commit 50d34dd81e
4 changed files with 7 additions and 5 deletions

View File

@@ -84,6 +84,9 @@ public class MgmtRolloutGroupResponseBody extends MgmtRolloutGroup {
@Schema(description = "Rollouts id", example = "63")
private Long rolloutGroupId;
@Schema(description = "If the rollout group is dynamic", example = "false")
private boolean dynamic;
@JsonProperty(required = true)
@Schema(description = "The status of this rollout", example = "ready")
private String status;

View File

@@ -211,6 +211,8 @@ final class MgmtRolloutMapper {
body.setConfirmationRequired(rolloutGroup.isConfirmationRequired());
}
body.setDynamic(rolloutGroup.isDynamic());
body.setSuccessCondition(new MgmtRolloutCondition(map(rolloutGroup.getSuccessCondition()),
rolloutGroup.getSuccessConditionExp()));
body.setSuccessAction(

View File

@@ -35,12 +35,8 @@ import java.util.Random;
@Slf4j
public class SetupHelper {
private static final String AUTHENTICATION_MODE_GATEWAY_SECURITY_TOKEN_ENABLED = "authentication.gatewaytoken.enabled";
/**
* Gateway token value.
*/
private static final String AUTHENTICATION_MODE_GATEWAY_SECURITY_TOKEN_KEY = "authentication.gatewaytoken.key";
private static final String AUTHENTICATION_MODE_GATEWAY_SECURITY_TOKEN_ENABLED = "authentication.gatewaytoken.enabled";
private static final String AUTHENTICATION_MODE_TARGET_SECURITY_TOKEN_ENABLED = "authentication.targettoken.enabled";
// if gateway toke is configured then the gateway auth is enabled key is set

View File

@@ -217,6 +217,7 @@ public class DdiController {
}
void sendFeedback(final UpdateStatus updateStatus) {
log.debug(LOG_PREFIX + "Send feedback {} -> {}", getTenantId(), getControllerId(), currentActionId, updateStatus);
getDdiApi().postDeploymentBaseActionFeedback(
updateStatus.feedback(), getTenantId(), getControllerId(), currentActionId);
if (updateStatus.status() == UpdateStatus.Status.SUCCESSFUL ||