From f8986a803248b0f30a40b9dea101d9aee91b230e Mon Sep 17 00:00:00 2001 From: Henning Andersen Date: Mon, 10 Aug 2020 13:20:50 +0200 Subject: [PATCH] Fix autoscaling policy test cleanup Ensure that the put autoscaling policy rest test cleans up its policies so that they do not interfere with subsequent tests. Relates #59005 --- .../test/autoscaling/put_autoscaling_policy.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/x-pack/plugin/autoscaling/qa/rest/src/test/resources/rest-api-spec/test/autoscaling/put_autoscaling_policy.yml b/x-pack/plugin/autoscaling/qa/rest/src/test/resources/rest-api-spec/test/autoscaling/put_autoscaling_policy.yml index b7213c64fded8..37a2f3df06aa9 100644 --- a/x-pack/plugin/autoscaling/qa/rest/src/test/resources/rest-api-spec/test/autoscaling/put_autoscaling_policy.yml +++ b/x-pack/plugin/autoscaling/qa/rest/src/test/resources/rest-api-spec/test/autoscaling/put_autoscaling_policy.yml @@ -10,6 +10,11 @@ - match: { "acknowledged": true } + # test cleanup + - do: + autoscaling.delete_autoscaling_policy: + name: my_autoscaling_policy + --- "Test put autoscaling policy with non-existent decider": - do: