Skip to content

Commit

Permalink
style: apply rubocop recommendations
Browse files Browse the repository at this point in the history
  • Loading branch information
genaumann committed Jan 29, 2024
1 parent 58a89ad commit c1f605d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions test/integration/default/controls/cert.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
crts = {
'standalone.gn98.de' => {
'alias' => 'www.standalone.gn98.de',
'keylength' => 2048,
'keylength' => 2048
},
'alpn.gn98.de' => {
'keylength' => 4096,
'keylength' => 4096
}
}
crts.each do |cn, conf|
Expand All @@ -19,7 +19,9 @@
it { should be_certificate }
its('subject.CN') { should eq cn }
its('keylength') { should eq conf['keylength'] }
its('subject_alt_names') { should include "DNS:#{conf['alias']}" } if conf['alias']
if conf['alias']
its('subject_alt_names') { should include "DNS:#{conf['alias']}" }
end
its('validity_in_days') { should be > 30 }
end
end
Expand Down
2 changes: 1 addition & 1 deletion test/integration/default/controls/file.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
title 'Test cert files'

crts = ['standalone.gn98.de', 'alpn.gn98.de']

crts.each do |crt|
dir = "/home/vagrant/crt/#{crt}"

Expand Down

0 comments on commit c1f605d

Please sign in to comment.