|
@@ -12,7 +12,7 @@ import org.elasticsearch.action.admin.indices.rollover.RolloverConfigurationTest
|
|
|
import org.elasticsearch.cluster.metadata.AliasMetadata;
|
|
|
import org.elasticsearch.cluster.metadata.ComponentTemplate;
|
|
|
import org.elasticsearch.cluster.metadata.ComponentTemplateTests;
|
|
|
-import org.elasticsearch.cluster.metadata.DataStreamGlobalRetentionSerializationTests;
|
|
|
+import org.elasticsearch.cluster.metadata.DataStreamGlobalRetentionTests;
|
|
|
import org.elasticsearch.cluster.metadata.DataStreamLifecycle;
|
|
|
import org.elasticsearch.cluster.metadata.Template;
|
|
|
import org.elasticsearch.common.Strings;
|
|
@@ -47,7 +47,7 @@ public class GetComponentTemplateResponseTests extends AbstractWireSerializingTe
|
|
|
return new GetComponentTemplateAction.Response(
|
|
|
randomBoolean() ? Map.of() : randomTemplates(),
|
|
|
RolloverConfigurationTests.randomRolloverConditions(),
|
|
|
- DataStreamGlobalRetentionSerializationTests.randomGlobalRetention()
|
|
|
+ DataStreamGlobalRetentionTests.randomGlobalRetention()
|
|
|
);
|
|
|
}
|
|
|
|
|
@@ -59,10 +59,7 @@ public class GetComponentTemplateResponseTests extends AbstractWireSerializingTe
|
|
|
switch (randomInt(2)) {
|
|
|
case 0 -> templates = templates == null ? randomTemplates() : null;
|
|
|
case 1 -> rolloverConditions = randomValueOtherThan(rolloverConditions, RolloverConfigurationTests::randomRolloverConditions);
|
|
|
- case 2 -> globalRetention = randomValueOtherThan(
|
|
|
- globalRetention,
|
|
|
- DataStreamGlobalRetentionSerializationTests::randomGlobalRetention
|
|
|
- );
|
|
|
+ case 2 -> globalRetention = randomValueOtherThan(globalRetention, DataStreamGlobalRetentionTests::randomGlobalRetention);
|
|
|
}
|
|
|
return new GetComponentTemplateAction.Response(templates, rolloverConditions, globalRetention);
|
|
|
}
|
|
@@ -88,7 +85,7 @@ public class GetComponentTemplateResponseTests extends AbstractWireSerializingTe
|
|
|
null,
|
|
|
false
|
|
|
);
|
|
|
- var globalRetention = DataStreamGlobalRetentionSerializationTests.randomGlobalRetention();
|
|
|
+ var globalRetention = DataStreamGlobalRetentionTests.randomGlobalRetention();
|
|
|
var rolloverConfiguration = RolloverConfigurationTests.randomRolloverConditions();
|
|
|
var response = new GetComponentTemplateAction.Response(
|
|
|
Map.of(randomAlphaOfLength(10), template),
|