Moto ecs create_task_set does not result in running tasks.
Additionally, it should propagate tags to the tasks, depending on service PropagateTags setting.
Pseudo context
Given service propagateTags is configured to "TASK_DEFINITION"
and task definition has TASK_DEF_TAGS
and os.environ["MOTO_ECS_SERVICE_RUNNING"] == "1"
ecs.create_task_set(...)
tasks = ecs.list_tasks(...), followed by ecs.describe_tasks(...)
assert one task is running
assert the task has TASK_DEF_TAGS
Moto ecs
create_task_set
does not result in running tasks. Additionally, it should propagate tags to the tasks, depending on service PropagateTags setting.Pseudo context
how to reproduce the issue
Mock aws, and then follow this:
what you expected to happen
These assertions should be true:
what actually happens
Tasks are not created. That's easily explained by looking at the code that does not create any.
what version of Moto you're using
5.0.18, via pip