mirror of
https://github.com/dev-sec/linux-baseline
synced 2024-11-10 13:44:14 +00:00
Fixed rubocop issues, Travis run failed
Signed-off-by: Patrick Meier <patrick.meier111@googlemail.com>
This commit is contained in:
parent
0b7986100b
commit
fb8e4a7d18
1 changed files with 6 additions and 6 deletions
|
@ -210,12 +210,12 @@ end
|
|||
|
||||
# GIS: Req 3.21-4
|
||||
describe command('find / -name \'.rhosts\' | wc -l ') do
|
||||
its(:stdout) { should match /0/ }
|
||||
its(:stdout) { should match (/^0/) }
|
||||
end
|
||||
|
||||
# GIS: Req 3.21-4
|
||||
describe command('find / -name \'hosts.equiv\' | wc -l ') do
|
||||
its(:stdout) { should match /0/ }
|
||||
its(:stdout) { should match (/^0/) }
|
||||
end
|
||||
|
||||
# GIS: Req 3.21-7
|
||||
|
@ -230,20 +230,20 @@ end
|
|||
|
||||
# GIS: Req 3.21-8
|
||||
describe command('echo $PATH | grep -ci \'\.\'') do
|
||||
its(:stdout) { should match /0/ }
|
||||
its(:stdout) { should match (/^0/) }
|
||||
end
|
||||
|
||||
# GIS: Req 3.21-8
|
||||
describe file('/etc/login.defs') do
|
||||
its(:content) { should match /^ENV_SUPATH\s+PATH=\/usr\/local\/sbin:\/usr\/local\/bin:\/usr\/sbin:\/usr\/bin:\/sbin:\/bin:/ }
|
||||
its(:content) { should match (/^ENV_SUPATH\s+PATH=\/usr\/local\/sbin:\/usr\/local\/bin:\/usr\/sbin:\/usr\/bin:\/sbin:\/bin:/) }
|
||||
end
|
||||
|
||||
# GIS: Req 3.21-8
|
||||
describe file('/etc/login.defs') do
|
||||
its(:content) { should match /^ENV_PATH\s+PATH=\/usr\/local\/bin:\/usr\/bin:\/bin:/ }
|
||||
its(:content) { should match (/^ENV_PATH\s+PATH=\/usr\/local\/bin:\/usr\/bin:\/bin:/) }
|
||||
end
|
||||
|
||||
# GIS: Req 3.21-10
|
||||
describe file('/etc/login.defs') do
|
||||
its(:content) { should match /^UMASK +027/ }
|
||||
its(:content) { should match (/^UMASK +027/) }
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue