mirror of
https://github.com/inspec/inspec
synced 2024-11-23 05:03:07 +00:00
kernel_module: correct docs style for code boxes (#2348)
Signed-off-by: Patrick Münch <patrick.muench1111@gmail.com>
This commit is contained in:
parent
30fd2b669b
commit
bd6a8fd980
1 changed files with 27 additions and 27 deletions
|
@ -41,51 +41,51 @@ The following examples show how to use this InSpec audit resource.
|
|||
|
||||
### Test a modules 'version'
|
||||
|
||||
describe kernel_module('bridge') do
|
||||
it { should be_loaded }
|
||||
its(:version) { should cmp >= '2.2.2' }
|
||||
end
|
||||
describe kernel_module('bridge') do
|
||||
it { should be_loaded }
|
||||
its(:version) { should cmp >= '2.2.2' }
|
||||
end
|
||||
|
||||
### Test if a module is loaded, not disabled and not blacklisted
|
||||
|
||||
describe kernel_module('video') do
|
||||
it { should be_loaded }
|
||||
it { should_not be_disabled }
|
||||
it { should_not be_blacklisted }
|
||||
end
|
||||
describe kernel_module('video') do
|
||||
it { should be_loaded }
|
||||
it { should_not be_disabled }
|
||||
it { should_not be_blacklisted }
|
||||
end
|
||||
|
||||
### Check if a module is blacklisted
|
||||
|
||||
describe kernel_module('floppy') do
|
||||
it { should be_blacklisted }
|
||||
end
|
||||
describe kernel_module('floppy') do
|
||||
it { should be_blacklisted }
|
||||
end
|
||||
|
||||
### Ensure a module is *not* blacklisted and it is loaded
|
||||
|
||||
describe kernel_module('video') do
|
||||
it { should_not be_blacklisted }
|
||||
it { should be_loaded }
|
||||
end
|
||||
describe kernel_module('video') do
|
||||
it { should_not be_blacklisted }
|
||||
it { should be_loaded }
|
||||
end
|
||||
|
||||
### Ensure a module is disabled via 'bin_false'
|
||||
|
||||
describe kernel_module('sstfb') do
|
||||
it { should_not be_loaded }
|
||||
it { should be_disabled }
|
||||
end
|
||||
describe kernel_module('sstfb') do
|
||||
it { should_not be_loaded }
|
||||
it { should be_disabled }
|
||||
end
|
||||
|
||||
### Ensure a module is 'blacklisted'/'disabled' via 'bin_true'
|
||||
|
||||
describe kernel_module('nvidiafb') do
|
||||
it { should_not be_loaded }
|
||||
it { should be_blacklisted }
|
||||
end
|
||||
describe kernel_module('nvidiafb') do
|
||||
it { should_not be_loaded }
|
||||
it { should be_blacklisted }
|
||||
end
|
||||
|
||||
### Ensure a module is not loaded
|
||||
|
||||
describe kernel_module('dhcp') do
|
||||
it { should_not be_loaded }
|
||||
end
|
||||
describe kernel_module('dhcp') do
|
||||
it { should_not be_loaded }
|
||||
end
|
||||
|
||||
<br>
|
||||
|
||||
|
|
Loading…
Reference in a new issue