{"action":"created","issue":{"url":"https://api.github.com/repos/k1LoW/awspec/issues/368","repository_url":"https://api.github.com/repos/k1LoW/awspec","labels_url":"https://api.github.com/repos/k1LoW/awspec/issues/368/labels{/name}","comments_url":"https://api.github.com/repos/k1LoW/awspec/issues/368/comments","events_url":"https://api.github.com/repos/k1LoW/awspec/issues/368/events","html_url":"https://github.com/k1LoW/awspec/issues/368","id":324406787,"number":368,"title":"Duplicate errors","user":{"login":"jbruett","id":6981222,"avatar_url":"https://avatars2.githubusercontent.com/u/6981222?v=4","gravatar_id":"","url":"https://api.github.com/users/jbruett","html_url":"https://github.com/jbruett","followers_url":"https://api.github.com/users/jbruett/followers","following_url":"https://api.github.com/users/jbruett/following{/other_user}","gists_url":"https://api.github.com/users/jbruett/gists{/gist_id}","starred_url":"https://api.github.com/users/jbruett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbruett/subscriptions","organizations_url":"https://api.github.com/users/jbruett/orgs","repos_url":"https://api.github.com/users/jbruett/repos","events_url":"https://api.github.com/users/jbruett/events{/privacy}","received_events_url":"https://api.github.com/users/jbruett/received_events","type":"User","site_admin":false},"labels":[{"id":241093113,"url":"https://api.github.com/repos/k1LoW/awspec/labels/help%20wanted","name":"help wanted","color":"159818","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-05-18T13:16:59Z","updated_at":"2018-05-19T04:01:03Z","closed_at":null,"author_association":"NONE","body":"Just getting start using this.  Wrote a spec file, imported a bunch of ALBs and hand wrote a single EC2 instance block, everything seems to be working, except that it looks like its pulling in the file twice.  I have scrubbed some data out of the errors, anything <like this> has normal acceptable text in reality.  I used `awspec init` to build out the awspec part of the project.  My local workstation is a windows system and i'm executing from Chef DK since it has all the ruby based stuff I need to make this work (for the most part)\r\n\r\n```\r\nFailed examples:\r\n\r\nrspec ./spec/dev_spec.rb:187 # ec2 '<servername>' should be disabled api termination\r\nrspec C:/Users/jbruett/Documents/repos/<project>/terraform/dev/spec/dev_spec.rb:187 # ec2 '<servername>' should be disabled api termination\r\n```"},"comment":{"url":"https://api.github.com/repos/k1LoW/awspec/issues/comments/390376616","html_url":"https://github.com/k1LoW/awspec/issues/368#issuecomment-390376616","issue_url":"https://api.github.com/repos/k1LoW/awspec/issues/368","id":390376616,"user":{"login":"jbruett","id":6981222,"avatar_url":"https://avatars2.githubusercontent.com/u/6981222?v=4","gravatar_id":"","url":"https://api.github.com/users/jbruett","html_url":"https://github.com/jbruett","followers_url":"https://api.github.com/users/jbruett/followers","following_url":"https://api.github.com/users/jbruett/following{/other_user}","gists_url":"https://api.github.com/users/jbruett/gists{/gist_id}","starred_url":"https://api.github.com/users/jbruett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbruett/subscriptions","organizations_url":"https://api.github.com/users/jbruett/orgs","repos_url":"https://api.github.com/users/jbruett/repos","events_url":"https://api.github.com/users/jbruett/events{/privacy}","received_events_url":"https://api.github.com/users/jbruett/received_events","type":"User","site_admin":false},"created_at":"2018-05-19T04:01:03Z","updated_at":"2018-05-19T04:01:03Z","author_association":"NONE","body":"**awspec --version**\r\n```terraform\\dev [master ≡ +5 ~0 -0 !]> awspec --version\r\n1.5.2\r\n```\r\n**ruby --version**\r\n```\r\nterraform\\dev [master ≡ +5 ~0 -0 !]> ruby --version\r\nruby 2.4.3p205 (2017-12-14 revision 61247) [x64-mingw32]\r\n```\r\n**AWS Resources** in the test file include 16 ALBs (code generated with awspec) and 1 EC2 instance, handwritten based on the example in the awspec docs and updated with accurate information for my infrastructure.\r\n\r\nHere's an example of the code (this is for a client so I have stripped out a bunch of the values, but the structure is exactly the same.\r\n```\r\ndescribe alb('loadbalancername'), region: 'us-east-1' do\r\n  it { should exist }\r\n  its(:load_balancer_arn) { should eq 'loadbalancerarn' }\r\n  its(:dns_name) { should eq 'loadbalancerdns' }\r\n  its(:load_balancer_name) { should eq 'loadbalancername' }\r\n  its(:scheme) { should eq 'internal' }\r\n  its(:vpc_id) { should eq 'vpcid' }\r\n  its(:type) { should eq 'application' }\r\n  its(:ip_address_type) { should eq 'ipv4' }\r\nend\r\n\r\ndescribe ec2('servername'), region: 'us-east-1' do\r\n  it { should be_running }\r\n  its(:instance_id) { should eq 'instanceid' }\r\n  its(:image_id) { should eq 'amiid' }\r\n  its(:private_ip_address) { should eq 'ipaddress' }\r\n  it { should have_security_groups(['list', 'of', 'securitygroups']) }\r\n  it { should belong_to_vpc('vpcid') }\r\n  it { should belong_to_subnet('subnetid') }\r\n  it { should be_disabled_api_termination }\r\nend\r\n```\r\nThere is no real error code, but as you can see in the output in the first post it's calling the same file twice, and the full output indicates the same.  The first path is relative and the second is the absolute path to the same file.  I can't imagine that's expected.  One part of my output that I think indicates the issue is below, I think that the `--pattern 'spec/**{,/*/**}/*_spec.rb'` is somehow matching both paths\r\n```\r\nterraform\\dev [master ≡ +5 ~0 -0 !]> bundle exec rake spec\r\nC:/opscode/chefdk/embedded/bin/ruby.exe -I'C:/opscode/chefdk/embedded/lib/ruby/gems/2.4.0/gems/rspec-core-3.7.1/lib';'C:/opscode/chefdk/embedded/lib/ruby/gems/2.4.0/gems/rspec-support-3.7.1/lib' 'C:/opscode/chefdk/embedded/lib/ruby/gems/2.4.0/gems/rspec-core-3.7.1/exe/rspec' --pattern 'spec/**{,/*/**}/*_spec.rb'\r\n```\r\n"}}
{"actor":{"display_login":"jbruett"}}