Skip to content

Commit f5ed7a9

Browse files
author
Hendrik Muhs
authored
[Test][Transform] fix UpdateTransformActionRequestTests failure (#79787)
fix corner case when description gets too long fixes #79783
1 parent 489dc01 commit f5ed7a9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/transform/action/UpdateTransformActionRequestTests.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ protected Request mutateInstance(Request instance) throws IOException {
5757
case 1:
5858
String description = update.getDescription() == null ? "" : update.getDescription();
5959
description += randomAlphaOfLengthBetween(1, 5);
60+
// fix corner case that description gets too long
61+
if (description.length() > 1000) {
62+
description = description.substring(description.length() - 1000, description.length());
63+
}
6064
update = new TransformConfigUpdate(
6165
update.getSource(),
6266
update.getDestination(),

0 commit comments

Comments
 (0)