diff --git a/core/src/main/java/io/kestra/core/models/Label.java b/core/src/main/java/io/kestra/core/models/Label.java index 4ca80a49201..99c6cd3c610 100644 --- a/core/src/main/java/io/kestra/core/models/Label.java +++ b/core/src/main/java/io/kestra/core/models/Label.java @@ -18,6 +18,7 @@ public record Label(@NotNull String key, @NotNull String value) { public static final String RESTARTED = SYSTEM_PREFIX + "restarted"; public static final String REPLAY = SYSTEM_PREFIX + "replay"; public static final String REPLAYED = SYSTEM_PREFIX + "replayed"; + public static final String TEST = SYSTEM_PREFIX + "test"; /** * Static helper method for converting a list of labels to a nested map. diff --git a/core/src/main/java/io/kestra/core/models/executions/Execution.java b/core/src/main/java/io/kestra/core/models/executions/Execution.java index 4696b28f3fe..af8d2c8ef58 100644 --- a/core/src/main/java/io/kestra/core/models/executions/Execution.java +++ b/core/src/main/java/io/kestra/core/models/executions/Execution.java @@ -21,7 +21,9 @@ import io.kestra.core.serializers.ListOrMapOfLabelDeserializer; import io.kestra.core.serializers.ListOrMapOfLabelSerializer; import io.kestra.core.services.LabelService; +import io.kestra.core.test.Fixture; import io.kestra.core.utils.IdUtils; +import io.kestra.core.utils.ListUtils; import io.kestra.core.utils.MapUtils; import io.micronaut.core.annotation.Nullable; import io.swagger.v3.oas.annotations.Hidden; @@ -111,6 +113,10 @@ public class Execution implements DeletedInterface, TenantInterface { @Setter String traceParent; + @With + @Nullable + List fixtures; + /** * Factory method for constructing a new {@link Execution} object for the given {@link Flow}. * @@ -205,7 +211,8 @@ public Execution withState(State.Type state) { this.deleted, this.metadata, this.scheduleDate, - this.traceParent + this.traceParent, + this.fixtures ); } @@ -229,7 +236,8 @@ public Execution withLabels(List