Sha256: d7506dcf6ffc6b16b2efb1bd4b8addd44889247e57177d28f551aca75c36a585

Contents?: true

Size: 1.12 KB

Versions: 12

Compression:

Stored size: 1.12 KB

Contents

require 'fog/xml'
require 'fog/aws/parsers/elbv2/describe_tags'

DESCRIBE_TAGS_RESULT = <<-EOF
<DescribeTagsResponse xmlns="http://elasticloadbalancing.amazonaws.com/doc/2015-12-01/">
  <DescribeTagsResult>
    <TagDescriptions>
      <member>
        <ResourceArn>arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-load-balancer/50dc6c495c0c9188</ResourceArn>
        <Tags>
          <member>
            <Value>lima</Value>
            <Key>project</Key>
          </member>
          <member>
            <Value>digital-media</Value>
            <Key>department</Key>
          </member>
        </Tags>
      </member>
    </TagDescriptions>
  </DescribeTagsResult>
  <ResponseMetadata>
    <RequestId>34f144db-f2d9-11e5-a53c-67205c0d10fd</RequestId> 
  </ResponseMetadata>
</DescribeTagsResponse>
EOF

Shindo.tests('AWS::ELBV2 | parsers | describe_tags', %w[aws elb parser]) do
  tests('parses the xml').formats(AWS::ELBV2::Formats::DESCRIBE_TAGS) do
    parser = Nokogiri::XML::SAX::Parser.new(Fog::Parsers::AWS::ELBV2::DescribeTags.new)
    parser.parse(DESCRIBE_TAGS_RESULT)
    parser.document.response
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
fog-aws-3.12.0 tests/parsers/elbv2/describe_tags_tests.rb
fog-aws-3.11.0 tests/parsers/elbv2/describe_tags_tests.rb
fog-aws-3.10.0 tests/parsers/elbv2/describe_tags_tests.rb
fog-aws-3.9.0 tests/parsers/elbv2/describe_tags_tests.rb
fog-aws-3.8.0 tests/parsers/elbv2/describe_tags_tests.rb
fog-aws-3.7.0 tests/parsers/elbv2/describe_tags_tests.rb
fog-aws-3.6.7 tests/parsers/elbv2/describe_tags_tests.rb
fog-aws-3.6.6 tests/parsers/elbv2/describe_tags_tests.rb
fog-aws-3.6.5 tests/parsers/elbv2/describe_tags_tests.rb
fog-aws-3.6.4 tests/parsers/elbv2/describe_tags_tests.rb
fog-aws-3.6.3 tests/parsers/elbv2/describe_tags_tests.rb
fog-aws-3.6.2 tests/parsers/elbv2/describe_tags_tests.rb