From 871625998c41bf90233c294382976c2554206a39 Mon Sep 17 00:00:00 2001 From: Toshiya Kawasaki Date: Tue, 21 Nov 2017 02:13:47 +0900 Subject: [PATCH] tweak ecrv2 FakeTargetgroups's default value (#1351) --- moto/elbv2/models.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/moto/elbv2/models.py b/moto/elbv2/models.py index 52bef1d3..726b1a16 100644 --- a/moto/elbv2/models.py +++ b/moto/elbv2/models.py @@ -52,13 +52,13 @@ class FakeTargetGroup(BaseModel): vpc_id, protocol, port, - healthcheck_protocol='HTTP', - healthcheck_port='traffic-port', - healthcheck_path='/', - healthcheck_interval_seconds='30', - healthcheck_timeout_seconds='5', - healthy_threshold_count='5', - unhealthy_threshold_count='2', + healthcheck_protocol=None, + healthcheck_port=None, + healthcheck_path=None, + healthcheck_interval_seconds=None, + healthcheck_timeout_seconds=None, + healthy_threshold_count=None, + unhealthy_threshold_count=None, matcher=None, target_type=None): @@ -69,7 +69,7 @@ class FakeTargetGroup(BaseModel): self.protocol = protocol self.port = port self.healthcheck_protocol = healthcheck_protocol or 'HTTP' - self.healthcheck_port = healthcheck_port + self.healthcheck_port = healthcheck_port or 'traffic-port' self.healthcheck_path = healthcheck_path or '/' self.healthcheck_interval_seconds = healthcheck_interval_seconds or 30 self.healthcheck_timeout_seconds = healthcheck_timeout_seconds or 5