-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add unit tests for fleet manager when using capacity block
Signed-off-by: Enrico Usai <[email protected]>
- Loading branch information
1 parent
bda941f
commit 22b3a9b
Showing
3 changed files
with
141 additions
and
1 deletion.
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
33 changes: 33 additions & 0 deletions
33
...FleetManager/test_evaluate_launch_params/fleet_capacity_block/expected_launch_params.json
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,33 @@ | ||
{ | ||
"LaunchTemplateConfigs":[ | ||
{ | ||
"LaunchTemplateSpecification":{ | ||
"LaunchTemplateName":"hit-queue-cb-fleet-capacity-block", | ||
"Version":"$Latest" | ||
}, | ||
"Overrides":[ | ||
{ | ||
"InstanceType":"t2.medium", | ||
"SubnetId":"1234567" | ||
}, | ||
{ | ||
"InstanceType":"t2.large", | ||
"SubnetId":"1234567" | ||
} | ||
] | ||
} | ||
], | ||
"OnDemandOptions":{ | ||
"SingleInstanceType":false, | ||
"SingleAvailabilityZone":true, | ||
"MinTargetCapacity":1, | ||
"CapacityReservationOptions":{ | ||
"UsageStrategy":"use-capacity-reservations-first" | ||
} | ||
}, | ||
"TargetCapacitySpecification":{ | ||
"TotalTargetCapacity":5, | ||
"DefaultTargetCapacityType":"capacity-block" | ||
}, | ||
"Type":"instant" | ||
} |