Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing inspec tests for ubuntu hosts #63

Merged
merged 1 commit into from
Aug 19, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions libraries/ssh_crypto.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def valid_ciphers
ciphers = ciphers53

# adjust ciphers based on OS + release
case inspec.os[:family]
case inspec.os[:name]
when 'ubuntu'
case inspec.os[:release]
when '12.04'
Expand Down Expand Up @@ -62,7 +62,7 @@ def valid_kexs
kex = kex59

# adjust KEXs based on OS + release
case inspec.os[:family]
case inspec.os[:name]
when 'ubuntu'
case inspec.os[:release]
when '12.04'
Expand Down Expand Up @@ -99,7 +99,7 @@ def valid_macs
macs = macs59

# adjust MACs based on OS + release
case inspec.os[:family]
case inspec.os[:name]
when 'ubuntu'
case inspec.os[:release]
when '12.04'
Expand Down Expand Up @@ -137,7 +137,7 @@ def valid_privseparation
# debian 7.x and newer has ssh 5.9+
# ubuntu 12.04 and newer has ssh 5.9+

case inspec.os[:family]
case inspec.os[:name]
when 'debian'
case inspec.os[:release]
when /6\./
Expand Down