Using AWS/Azure/VMWare Resources


#1

Hi guys,

Sorry, super dumb question. But, how do I use the new resources for testing azure/aws/vmware? I’ve unzip the release to a folder, amended the inspec.yml and created an rb test file based on the example on the page. I get the error below. Running using Inspec 1.31.1 and on Windows. Most likely me doing something wrong, but i’m pretty stuck, could someone take pity and help me? Apologies again if i’m doing something especially stupid, just starting out with Inspec.

cd C:\inspec-azure-0.6.1
inspec exec azure_spec.rb
C:/opscode/chefdk/embedded/lib/ruby/gems/2.3.0/gems/rspec-expectations-3.6.0/lib/rspec/matchers.rb:954:in `method_missing': undefined method `azure_virtual_machine' for #<#<Class:0x4761b88>:0x4703f88> (NoMethodError)
        from azure_hpc_spec.rb:5:in `block in load_with_context'
...
...

#2

I got it working once I installed the required gems mentioned in the gemfile. Sorry for the hassle.

gem 'inifile'
gem 'azure_mgmt_compute'
gem 'azure_mgmt_resources'
gem 'azure_mgmt_network'
gem 'bundle'