Expose rollout group dynamic flag via REST (#1691)
Signed-off-by: Marinov Avgustin <Avgustin.Marinov@bosch.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 ||
|
||||
|
||||
Reference in New Issue
Block a user