mirror of
https://github.com/inspec/inspec
synced 2024-11-10 07:04:15 +00:00
fix errors introduced in #593
This commit is contained in:
parent
ceb7286175
commit
7112ebbfec
3 changed files with 5 additions and 5 deletions
|
@ -20,7 +20,7 @@ A complete InSpec rule looks like:
|
|||
insecure SSHv1 connections anymore."
|
||||
tag security: "level-1"
|
||||
tag "openssh-server"
|
||||
ref "Server Security Guide v.1.0" url: "http://..."
|
||||
ref "Server Security Guide v.1.0", url: "http://..."
|
||||
|
||||
describe sshd_config do
|
||||
its('Protocol') { should eq('2') }
|
||||
|
@ -66,7 +66,7 @@ One of the key differences is that InSpec targets more user groups. It is optimi
|
|||
tag security: "level-1"
|
||||
tag "openssh-server"
|
||||
ref "Server Security Guide v.1.0" url: "http://..."
|
||||
|
||||
|
||||
describe sshd_config do
|
||||
its('Protocol') { should cmp 2 }
|
||||
end
|
||||
|
|
|
@ -26,7 +26,7 @@ We add a control to this file, to check the ``/tmp`` path in our system:
|
|||
desc "An optional description..."
|
||||
tag mygroup: "tag" # A tag can be a simple value or
|
||||
tag "tag" # can have a more complex key/value pair.
|
||||
ref "name" url: "http://..." # A reference to a document, uri: is optional
|
||||
ref "name", url: "http://..." # A reference to a document, uri: is optional
|
||||
describe file('/tmp') do # The actual test
|
||||
it { should be_mounted }
|
||||
end
|
||||
|
@ -71,7 +71,7 @@ It will contain:
|
|||
or vulnerabilities), do not allow login as root with password"
|
||||
tag security: "openssh-server"
|
||||
ref "Document A-12"
|
||||
|
||||
|
||||
describe sshd_config do
|
||||
its('PermitRootLogin') { should match(/no|without-password/) }
|
||||
end
|
||||
|
|
|
@ -16,7 +16,7 @@ control 'gordon-1.0' do
|
|||
title 'Verify the version number of Gordon'
|
||||
desc 'An optional description...'
|
||||
tag 'gordon'
|
||||
ref 'Gordon Requirements 1.0' uri: 'http://...'
|
||||
ref 'Gordon Requirements 1.0', uri: 'http://...'
|
||||
|
||||
describe gordon_config do
|
||||
its('version') { should eq('1.0') }
|
||||
|
|
Loading…
Reference in a new issue