stelligent / serverspec-aws-resources

Some serverspec resources to allow testing AWS resources. This repository is deprecated - you should instead use: https://github.com/k1LoW/awspec
27 stars 24 forks source link

This fixes specify version of aws-sdk #2

Closed lorentzca closed 8 years ago

lorentzca commented 9 years ago

I found that it does not work with aws-sdk 2.x.

This is the result of the try in the aws-sdk 2.1.14. It was the same result even in the aws-sdk 2.0.22.

Failures:

  1) hogehoge behaves like test-aws-resources::hogehoge vpc vpc: vpc-1234 should be default tenancy
     Failure/Error: it { should be_default_tenancy }
     NameError:
       uninitialized constant Serverspec::Type::VPC::AWS
     Shared Example Group: "test-aws-resources::hogehoge" called from ./spec/role/hogehoge_spec.rb:4
     # ./vendor/bundle/ruby/2.2.0/bundler/gems/serverspec-aws-resources-ccb8a62b71d9/lib/resources/vpc_resource.rb:57:in `content'
     # ./vendor/bundle/ruby/2.2.0/bundler/gems/serverspec-aws-resources-ccb8a62b71d9/lib/resources/vpc_resource.rb:67:in `default_tenancy?'
     # ./spec/shared/test-aws-resources.rb:4:in `block (4 levels) in <top (required)>'
arothian commented 8 years ago

@Lorentzca thanks for the PR. I believe this was resolved in PR #7. If I'm not mistaken there is some work ongoing to be able to use aws sdk v2.