浏览代码

Rename the policies in put autoscaling REST tests

The autoscaling REST tests use policies named "hot" in their test
cases. Instead, this commit changes the name of these policies to
"my_autoscaling_policy".
Jason Tedor 5 年之前
父节点
当前提交
d8b33e1d3a

+ 2 - 2
x-pack/plugin/autoscaling/qa/rest/src/test/resources/rest-api-spec/test/autoscaling/delete_autoscaling_policy.yml

@@ -2,7 +2,7 @@
 "Test delete autoscaling policy":
 "Test delete autoscaling policy":
   - do:
   - do:
       autoscaling.put_autoscaling_policy:
       autoscaling.put_autoscaling_policy:
-        name: hot
+        name: my_autoscaling_policy
         body:
         body:
           policy:
           policy:
             deciders:
             deciders:
@@ -12,7 +12,7 @@
 
 
   - do:
   - do:
       autoscaling.delete_autoscaling_policy:
       autoscaling.delete_autoscaling_policy:
-        name: hot
+        name: my_autoscaling_policy
 
 
   # TODO: add validation that the policy is removed after we have a get policy API
   # TODO: add validation that the policy is removed after we have a get policy API
 
 

+ 2 - 2
x-pack/plugin/autoscaling/qa/rest/src/test/resources/rest-api-spec/test/autoscaling/put_autoscaling_policy.yml

@@ -2,7 +2,7 @@
 "Test put autoscaling policy":
 "Test put autoscaling policy":
   - do:
   - do:
       autoscaling.put_autoscaling_policy:
       autoscaling.put_autoscaling_policy:
-        name: hot
+        name: my_autoscaling_policy
         body:
         body:
           policy:
           policy:
             deciders:
             deciders:
@@ -13,7 +13,7 @@
   - do:
   - do:
       catch: bad_request
       catch: bad_request
       autoscaling.put_autoscaling_policy:
       autoscaling.put_autoscaling_policy:
-        name: hot
+        name: my_autoscaling_policy
         body:
         body:
           policy:
           policy:
             deciders:
             deciders: