Set tags in response, fix tests for tags
This commit is contained in:
parent
3c38a551b2
commit
b3096af098
3 changed files with 31 additions and 19 deletions
|
|
@ -113,7 +113,7 @@ class FakeAutoScalingGroup(object):
|
|||
def __init__(self, name, availability_zones, desired_capacity, max_size,
|
||||
min_size, launch_config_name, vpc_zone_identifier,
|
||||
default_cooldown, health_check_period, health_check_type,
|
||||
load_balancers, placement_group, termination_policies,
|
||||
load_balancers, placement_group, termination_policies,
|
||||
autoscaling_backend, tags):
|
||||
self.autoscaling_backend = autoscaling_backend
|
||||
self.name = name
|
||||
|
|
@ -158,6 +158,7 @@ class FakeAutoScalingGroup(object):
|
|||
load_balancers=load_balancer_names,
|
||||
placement_group=None,
|
||||
termination_policies=properties.get("TerminationPolicies", []),
|
||||
tags=properties.get("Tags", []),
|
||||
)
|
||||
return group
|
||||
|
||||
|
|
@ -263,7 +264,7 @@ class AutoScalingBackend(BaseBackend):
|
|||
launch_config_name, vpc_zone_identifier,
|
||||
default_cooldown, health_check_period,
|
||||
health_check_type, load_balancers,
|
||||
placement_group, termination_policies):
|
||||
placement_group, termination_policies, tags):
|
||||
|
||||
def make_int(value):
|
||||
return int(value) if value is not None else value
|
||||
|
|
@ -288,6 +289,7 @@ class AutoScalingBackend(BaseBackend):
|
|||
placement_group=placement_group,
|
||||
termination_policies=termination_policies,
|
||||
autoscaling_backend=self,
|
||||
tags=tags,
|
||||
)
|
||||
self.autoscaling_groups[name] = group
|
||||
return group
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue