mirror of
https://github.com/inspec/inspec
synced 2024-12-22 11:03:11 +00:00
ec072cadd3
Closes #19 Signed-off-by: Russell Seymour <russell.seymour@turtlesystems.co.uk>
19 lines
No EOL
482 B
Ruby
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 |