-
Notifications
You must be signed in to change notification settings - Fork 24.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Autoscaling capacity API and structure (#63905)
Renamed decision API to capacity. Responses now prefer objects/maps over arrays. Removed mention of tier, using policies as the outer map and total for the policy-wide total capacity.
- Loading branch information
1 parent
81b3349
commit d573fde
Showing
34 changed files
with
328 additions
and
337 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
...st/src/yamlRestTest/resources/rest-api-spec/test/autoscaling/get_autoscaling_capacity.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
--- | ||
"Test get empty autoscaling capacity": | ||
- do: | ||
autoscaling.get_autoscaling_capacity: {} | ||
|
||
- match: { "policies": {} } | ||
|
||
--- | ||
"Test get fixed autoscaling capacity": | ||
- do: | ||
autoscaling.put_autoscaling_policy: | ||
name: my_autoscaling_policy | ||
body: | ||
policy: | ||
deciders: | ||
fixed: | ||
storage: 1337b | ||
memory: 7331b | ||
nodes: 10 | ||
|
||
- match: { "acknowledged": true } | ||
|
||
- do: | ||
autoscaling.get_autoscaling_capacity: {} | ||
|
||
- match: { policies.my_autoscaling_policy.required_capacity.total.storage: 13370b } | ||
- match: { policies.my_autoscaling_policy.required_capacity.total.memory: 73310b } | ||
- match: { policies.my_autoscaling_policy.required_capacity.node.storage: 1337b } | ||
- match: { policies.my_autoscaling_policy.required_capacity.node.memory: 7331b } | ||
- match: { policies.my_autoscaling_policy.deciders.fixed.required_capacity.total.storage: 13370b } | ||
- match: { policies.my_autoscaling_policy.deciders.fixed.required_capacity.total.memory: 73310b } | ||
- match: { policies.my_autoscaling_policy.deciders.fixed.required_capacity.node.storage: 1337b } | ||
- match: { policies.my_autoscaling_policy.deciders.fixed.required_capacity.node.memory: 7331b } | ||
- match: { policies.my_autoscaling_policy.deciders.fixed.reason_summary: "fixed storage [1.3kb] memory [7.1kb] nodes [10]" } | ||
|
||
# test cleanup | ||
- do: | ||
autoscaling.delete_autoscaling_policy: | ||
name: my_autoscaling_policy |
41 changes: 0 additions & 41 deletions
41
...st/src/yamlRestTest/resources/rest-api-spec/test/autoscaling/get_autoscaling_decision.yml
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.