diff --git a/x-pack/plugin/autoscaling/src/main/java/org/elasticsearch/xpack/autoscaling/action/DeleteAutoscalingPolicyAction.java b/x-pack/plugin/autoscaling/src/main/java/org/elasticsearch/xpack/autoscaling/action/DeleteAutoscalingPolicyAction.java index ecb573c449d..0d8412e9ee6 100644 --- a/x-pack/plugin/autoscaling/src/main/java/org/elasticsearch/xpack/autoscaling/action/DeleteAutoscalingPolicyAction.java +++ b/x-pack/plugin/autoscaling/src/main/java/org/elasticsearch/xpack/autoscaling/action/DeleteAutoscalingPolicyAction.java @@ -53,6 +53,19 @@ public class DeleteAutoscalingPolicyAction extends ActionType { + + @Override + protected Writeable.Reader instanceReader() { + return DeleteAutoscalingPolicyAction.Request::new; + } + + @Override + protected DeleteAutoscalingPolicyAction.Request createTestInstance() { + return new DeleteAutoscalingPolicyAction.Request(randomAlphaOfLength(8)); + } + +}