Sha256: bab9c2a7cae06f2fecd618be8c687b8faacc3124ff502cd59ea98931d4449d00

Contents?: true

Size: 924 Bytes

Versions: 96

Compression:

Stored size: 924 Bytes

Contents

require 'spec_helper'

set :os, :family => 'linux'

describe linux_kernel_parameter('net.ipv4.tcp_syncookies') do
  let(:stdout) { "1\n" }
  its(:value) { should eq 1 }
end

describe linux_kernel_parameter('net.ipv4.tcp_syncookies') do
  let(:stdout) { "1\n" }
  its(:value) { should_not eq 2 }
end

describe linux_kernel_parameter('kernel.osrelease') do
  let(:stdout) { "2.6.32-131.0.15.el6.x86_64\n" }
  its(:value) { should eq "2.6.32-131.0.15.el6.x86_64" }
end

describe linux_kernel_parameter('kernel.osrelease') do
  let(:stdout) { "2.6.32-131.0.15.el6.x86_64\n" }
  its(:value) { should_not eq "2.6.32-131.0.15.el6.i386" }
end

describe linux_kernel_parameter('net.ipv4.tcp_wmem') do
  let(:stdout) { "4096	16384	4194304\n" }
  its(:value) { should match /16384/ }
end

describe linux_kernel_parameter('net.ipv4.tcp_wmem') do
  let(:stdout) { "4096	16384	4194304\n" }
  its(:value) { should_not match /123456/ }
end

Version data entries

96 entries across 96 versions & 4 rubygems

Version Path
serverspec-2.12.0 spec/type/linux/linux_kernel_parameter_spec.rb
serverspec-2.11.0 spec/type/linux/linux_kernel_parameter_spec.rb
serverspec-2.10.2 spec/type/linux/linux_kernel_parameter_spec.rb
serverspec-2.10.1 spec/type/linux/linux_kernel_parameter_spec.rb
serverspec-2.10.0 spec/type/linux/linux_kernel_parameter_spec.rb
serverspec-2.9.1 spec/type/linux/linux_kernel_parameter_spec.rb
serverspec-2.9.0 spec/type/linux/linux_kernel_parameter_spec.rb
serverspec-2.8.2 spec/type/linux/linux_kernel_parameter_spec.rb
serverspec-2.8.1 spec/type/linux/linux_kernel_parameter_spec.rb
serverspec-2.8.0 spec/type/linux/linux_kernel_parameter_spec.rb
serverspec-2.7.2 spec/type/linux/linux_kernel_parameter_spec.rb
serverspec-2.7.1 spec/type/linux/linux_kernel_parameter_spec.rb
serverspec-2.7.0 spec/type/linux/linux_kernel_parameter_spec.rb
serverspec-2.6.0 spec/type/linux/linux_kernel_parameter_spec.rb
serverspec-2.5.0 spec/type/linux/linux_kernel_parameter_spec.rb
serverspec-2.4.0 spec/type/linux/linux_kernel_parameter_spec.rb
serverspec-2.3.1 spec/type/linux/linux_kernel_parameter_spec.rb
serverspec-2.3.0 spec/type/linux/linux_kernel_parameter_spec.rb
serverspec-2.2.0 spec/type/linux/linux_kernel_parameter_spec.rb
serverspec-clc-2.1.0 spec/type/linux/linux_kernel_parameter_spec.rb