From 152a488834eee7d63a05fff27909f55787e0d200 Mon Sep 17 00:00:00 2001 From: KevinLoiseau Date: Tue, 26 Nov 2019 16:33:50 +0100 Subject: [PATCH] Take care of FixedResponseConfig in listeners parser --- lib/fog/aws/parsers/elbv2/describe_listeners.rb | 5 +++-- tests/requests/elbv2/helper.rb | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/fog/aws/parsers/elbv2/describe_listeners.rb b/lib/fog/aws/parsers/elbv2/describe_listeners.rb index c92d8c7b1..3e683a133 100644 --- a/lib/fog/aws/parsers/elbv2/describe_listeners.rb +++ b/lib/fog/aws/parsers/elbv2/describe_listeners.rb @@ -54,9 +54,10 @@ module Fog @target_group[name] = value when 'Type', 'Order' @default_action[name] = value - when 'Path', 'Protocol', 'Port', 'Query', 'Host', 'StatusCode' + when 'Path', 'Protocol', 'Port', 'Query', 'Host', 'StatusCode', 'ContentType', + 'MessageBody', 'StatusCode' @config[name] = value - when 'RedirectConfig', 'ForwardConfig' + when 'RedirectConfig', 'ForwardConfig', 'FixedResponseConfig' @default_action[name] = @config @config = {} when 'DurationSeconds', 'Enabled' diff --git a/tests/requests/elbv2/helper.rb b/tests/requests/elbv2/helper.rb index 0617c852f..c1d03242c 100644 --- a/tests/requests/elbv2/helper.rb +++ b/tests/requests/elbv2/helper.rb @@ -35,7 +35,8 @@ class AWS "Order" => String, "TargetGroupArn" => String, "RedirectConfig" => Fog::Nullable::Hash, - "ForwardConfig" => Fog::Nullable::Hash + "ForwardConfig" => Fog::Nullable::Hash, + "FixedResponseConfig" => Fog::Nullable::Hash }] LISTENER = {