In order to allow for dynamic tests, exposed these instance variables

Signed-off-by: yarick <yarick@yarick.net>
This commit is contained in:
yarick 2021-02-28 17:47:17 -05:00
parent 77b29d7550
commit 181a924ddd

View file

@ -16,6 +16,8 @@ module Inspec::Resources
include FileReader include FileReader
attr_reader :conf_path, :content, :params
def initialize(path = nil) def initialize(path = nil)
@conf_path = path || "/etc/audit/auditd.conf" @conf_path = path || "/etc/audit/auditd.conf"
@content = read_file_content(@conf_path) @content = read_file_content(@conf_path)