inspec/test/integration/azure/verify/controls/resources.rb
Russell Seymour ec072cadd3 Added integration tests for current resources
Closes #19

Signed-off-by: Russell Seymour <russell.seymour@turtlesystems.co.uk>
2017-03-01 16:00:19 +01:00

19 lines
No EOL
482 B
Ruby

title 'Check Azure Resources'
control 'azure-resources-1.0' do
impact 1.0
title 'Check that the resource group has the correct resources'
# Ensure that the expected resources have been deployed
describe azure_rg(name: 'Inspec-Azure') do
its('total') { should eq 7 }
its('vm_count') { should eq 2 }
its('nic_count') { should eq 2 }
its('public_ip_count') { should eq 1 }
its('sa_count') { should eq 1 }
its('vnet_count') { should eq 1 }
end
end