mirror of
https://github.com/inspec/inspec
synced 2024-11-26 22:50:36 +00:00
Add resource support declarations for Azure
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
This commit is contained in:
parent
5751bad11c
commit
ded1394e8b
4 changed files with 8 additions and 0 deletions
|
@ -11,6 +11,8 @@ module Inspec::Resources
|
|||
Inspec Resource to interrogate any Resource type in Azure
|
||||
'
|
||||
|
||||
supports platform: 'azure'
|
||||
|
||||
attr_accessor :filter, :total, :counts, :name, :type, :location, :probes
|
||||
|
||||
def initialize(opts = {})
|
||||
|
|
|
@ -10,6 +10,8 @@ module Inspec::Resources
|
|||
Inspec Resource to get metadata about a specific Resource Group
|
||||
'
|
||||
|
||||
supports platform: 'azure'
|
||||
|
||||
attr_reader :name, :location, :id, :total, :counts, :mapping
|
||||
|
||||
# Constructor to get the resource group itself and perform some analysis on the
|
||||
|
|
|
@ -10,6 +10,8 @@ module Inspec::Resources
|
|||
Inspec Resource to test Azure Virtual Machines
|
||||
'
|
||||
|
||||
supports platform: 'azure'
|
||||
|
||||
# Constructor for the resource. This calls the parent constructor to
|
||||
# get the generic resource for the specified machine. This will provide
|
||||
# static methods that are documented
|
||||
|
|
|
@ -11,6 +11,8 @@ module Inspec::Resources
|
|||
Inspec Resource to ensure that the data disks attached to a machine are correct
|
||||
'
|
||||
|
||||
supports platform: 'azure'
|
||||
|
||||
# Create a filter table so that tests on the disk can be performed
|
||||
filter = FilterTable.create
|
||||
filter.add_accessor(:where)
|
||||
|
|
Loading…
Reference in a new issue