inspec/test/integration/azure/verify/controls/resources.rb
Russell Seymour 7842d37fb3 Renamed azure_rg resource
Closes #25

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

19 lines
No EOL
494 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_resource_group(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