mirror of
https://github.com/inspec/inspec
synced 2024-11-26 22:50:36 +00:00
No tabs.
Signed-off-by: Ryan Davis <zenspider@chef.io>
This commit is contained in:
parent
06e517ba07
commit
f36a7c8061
4 changed files with 9 additions and 9 deletions
|
@ -94,7 +94,7 @@ The following examples show how to use this Chef InSpec audit resource.
|
|||
|
||||
sql.query('SELECT * FROM files;').rows.each do |file_row|
|
||||
describe file(file_row['path']) do
|
||||
its('owner') { should eq file_row['owner']}
|
||||
its('owner') { should eq file_row['owner']}
|
||||
end
|
||||
end
|
||||
<br>
|
||||
|
|
|
@ -523,10 +523,10 @@ module Inspec::Resources
|
|||
# @see: https://www.freebsd.org/doc/handbook/users-synopsis.html
|
||||
# @see: https://www.freebsd.org/cgi/man.cgi?pw(8)
|
||||
# It offers the following commands:
|
||||
# - adduser(8) The recommended command-line application for adding new users.
|
||||
# - rmuser(8) The recommended command-line application for removing users.
|
||||
# - chpass(1) A flexible tool for changing user database information.
|
||||
# - passwd(1) The command-line tool to change user passwords.
|
||||
# - adduser(8) The recommended command-line application for adding new users.
|
||||
# - rmuser(8) The recommended command-line application for removing users.
|
||||
# - chpass(1) A flexible tool for changing user database information.
|
||||
# - passwd(1) The command-line tool to change user passwords.
|
||||
class FreeBSDUser < UnixUser
|
||||
include PasswdParser
|
||||
|
||||
|
|
|
@ -11,6 +11,6 @@ describe Inspec::Resources::ZfsPool do
|
|||
tank_resource.send(:health).must_equal('ONLINE')
|
||||
tank_resource.send(:guid).must_equal('4711279777582057513')
|
||||
tank_resource.send(:failmode).must_equal('continue')
|
||||
tank_resource.send(:'feature@lz4_compress').must_equal('active')
|
||||
tank_resource.send(:'feature@lz4_compress').must_equal('active')
|
||||
end
|
||||
end
|
||||
|
|
|
@ -16,9 +16,9 @@ describe BsdMountParser do
|
|||
|
||||
it 'parses a valid mount line' do
|
||||
info = {
|
||||
:device => 'tank/tmp',
|
||||
:type => 'zfs',
|
||||
:options => ['local', 'noexec', 'nosuid', 'nfsv4acls'],
|
||||
:device => 'tank/tmp',
|
||||
:type => 'zfs',
|
||||
:options => ['local', 'noexec', 'nosuid', 'nfsv4acls'],
|
||||
}
|
||||
parser.parse_mount_options('tank/tmp on /tmp (zfs, local, noexec, nosuid, nfsv4acls)').must_equal(info)
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue