mirror of
https://github.com/floci-io/floci.git
synced 2026-11-22 21:50:46 -05:00
* fix(cloudformation): register an ECS task definition's containers with their LinuxParameters An AWS::ECS::TaskDefinition dropped its containers' LinuxParameters, so a container CloudFormation registered ran without the init process, capabilities, devices, shared memory, swap or tmpfs mounts the template asked for, and the Fargate rules on them never applied. They are now read from the task definition as the ECS handler converts it and kept where RegisterTaskDefinition keeps them, among the container's unparsed members under linuxParameters, so DescribeTaskDefinition returns them in the API's shape and the same validation, normalisation and Fargate checks apply as for a definition registered through the API. As CloudFormation's handler does (measured), the devices and tmpfs lists are sent empty when the template has none. * test(compat): wait for the LinuxParameters stacks through TestFixtures Review of #6027: the test's private waitForTerminal and waitForDeleted repeated TestFixtures.awaitStackTerminal. It now waits through that, and deletes its two stacks with a plain DeleteStack after the class, as CloudFormationEcsTaskDefinitionModelTest does. * test(compat): give the ECS CloudFormation stacks Floci's and AWS's own timeouts Review of #6027: DEPLOY_TIMEOUT was 30 seconds against both targets. These stacks finish in milliseconds on Floci, so it is now 10 seconds there and 10 minutes on real AWS, as CloudFormationEventsRuleTargetTest splits it. CloudFormationEcsTaskDefinitionModelTest, from #6018, had the same single 60 seconds and splits the same way.