mirror of
https://github.com/inspec/inspec
synced 2024-11-23 13:13:22 +00:00
Renamed public ip address test
Removed debugging flag Signed-off-by: Russell Seymour <russell.seymour@turtlesystems.co.uk>
This commit is contained in:
parent
ef323e3b31
commit
ff4a1ba200
3 changed files with 4 additions and 3 deletions
|
@ -196,7 +196,7 @@ class AzureVm < Inspec.resource(1)
|
|||
#
|
||||
# @return [boolean]
|
||||
#
|
||||
def has_public_ip_address?
|
||||
def has_public_ipaddress?
|
||||
# Define the test value
|
||||
test = false
|
||||
|
||||
|
|
|
@ -92,6 +92,7 @@ class AzureVmDataDisks < Inspec.resource(1)
|
|||
# @return [Hash] Data disk information
|
||||
#
|
||||
def parse_data_disk_item(disk, index)
|
||||
|
||||
# Parse the uri of the disk so that the storage account can be retrieved
|
||||
uri = URI.parse(disk.vhd.uri)
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@ control 'azure-vm-internal-1.0' do
|
|||
its('ssh_key_count') { should eq 0 }
|
||||
its('os_type') { should eq 'Linux' }
|
||||
its('private_ipaddresses') { should include '10.1.1.10' }
|
||||
it { should_not have_public_ip_address }
|
||||
it { should_not have_public_ipaddress }
|
||||
end
|
||||
|
||||
end
|
||||
|
@ -31,7 +31,7 @@ control 'azure-vm-external-1.0' do
|
|||
title 'Ensure External VM has external access'
|
||||
|
||||
describe azure_virtual_machine(name: 'Linux-External-VM', resource_group: 'Inspec-Azure') do
|
||||
it { should have_public_ip_address }
|
||||
it { should have_public_ipaddress }
|
||||
its('domain_name_label') { should eq 'linux-external-1' }
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue