Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ subprojects {

configure(subprojects.findAll {it.name != 'data-prepper-api'}) {
dependencies {
implementation platform('software.amazon.awssdk:bom:2.17.209')
implementation platform('software.amazon.awssdk:bom:2.17.266')
implementation 'jakarta.validation:jakarta.validation-api:3.0.1'
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,11 @@ else if (preppers != null) {
@JsonProperty("sink")
private final List<PluginModel> sinks;

@JsonProperty("workers")
@JsonInclude(JsonInclude.Include.NON_NULL)
private final Integer workers;

@JsonProperty("delay")
@JsonInclude(JsonInclude.Include.NON_NULL)
private final Integer readBatchDelay;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ void setup() {
}

@Test
void testSerializing_PipelinesDataFlowModel_empty_Plugins() throws JsonProcessingException {
void testSerializing_PipelinesDataFlowModel_empty_Plugins_with_nonEmpty_delay_and_workers() throws JsonProcessingException {
String pipelineName = "test-pipeline";

final PluginModel source = new PluginModel("testSource", null);
final List<PluginModel> preppers = Collections.singletonList(new PluginModel("testPrepper", null));
final List<PluginModel> sinks = Collections.singletonList(new PluginModel("testSink", null));
final PipelineModel pipelineModel = new PipelineModel(source, null, preppers, sinks, null, null);
final PipelineModel pipelineModel = new PipelineModel(source, null, preppers, sinks, 8, 50);

final PipelinesDataFlowModel pipelinesDataFlowModel = new PipelinesDataFlowModel(Collections.singletonMap(pipelineName, pipelineModel));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ test-pipeline:
- testPrepper: null
sink:
- testSink: null
workers: 8
delay: 50