k1LoW / awspec

RSpec tests for your AWS resources.
MIT License
1.17k stars 192 forks source link

have_tag with alb resource type throws error #479

Closed giovtorres closed 5 years ago

giovtorres commented 5 years ago

Local Versions

$ awspec --version
1.17.4
$ gem --version
2.6.14.4
$ ruby --version
ruby 2.4.6p354 (2019-04-01 revision 67394) [x86_64-darwin18]

Problem Summary

I get the following error when trying to test tags against an alb:

Failures:

  1) alb 'test-tf-alb' should have tag "kitchen-test" value "test-kitchen"
     Failure/Error: it { should have_tag('kitchen-test').value('test-kitchen') }

     ArgumentError:
       wrong number of arguments (given 3, expected 1)
     # ./tests/spec/alb_spec.rb:10:in `block (2 levels) in <top (required)>'
giovtorres commented 5 years ago

@k1LoW This is not a bug. The changes to make this work are in master, but not in the latest release, 1.17.4. The docs, however, were updated without the code change. If you do a new release, the have_tags for alb will work. I tested it locally.

Thanks.